去评论
dz插件网

PHP message: PHP Warning: Declaration of table_forum_post::update

婷姐
2024/03/19 13:02:23
[error] 3573#0: *894031 FastCGI sent in stderr: "PHP message: PHP Warning:  Declaration of table_forum_post::update($tableid, $pid, $data, $unbuffered = false, $low_priority = false, $first = NULL, $invisible = NULL, $fid = NULL, $status = NULL) should be compatible with discuz_table::update($val, $data, $unbuffered = false, $low_priority = false) in /bbs/source/class/table/table_forum_post.php on line 442PHP message: PHP Warning:  Declaration of table_forum_post::delete($tableid, $pid, $unbuffered = false) should be compatible with discuz_table::delete($val, $unbuffered = false) in /bbs/source/class/table/table_forum_post.php on line 611PHP message: PHP Warning:  Declaration of table_forum_post::insert($tableid, $data, $return_insert_id = false, $replace = false, $silent = false) should be compatible with discuz_table::insert($data, $return_insert_id = false, $replace = false, $silent = false) in /bbs/source/class/table/table_forum_post.php on line 607PHP message: PHP Warning:  Declaration of table_forum_post::fetch($tableid, $pid, $outmsg = true) should be compatible with discuz_table::fetch($id, $force_from_db = false) in /bbs/source/class/table/table_forum_post.php on line 133PHP message: PHP Warning:  Declaration of table_forum_post::fetch_all($tableid, $pids, $outmsg = true) should be compatible with discuz_table::fetch_all($ids, $force_from_db = false) in /bbs/source/class/table/table_forum_post.php on line 177PHP message: PHP Warning:  Declaration of table_forum_post::update_cache($tableid, $id, $idtype, $data, $condition = Array, $glue = 'merge') should be compatible with discuz_table::update_cache($id, $data, $cache_ttl = NULL, $pre_cache_key = NULL) in /bbs/source/class/table/table_forum_post.php on line 495" while reading response header from upstream, client: 51.222.253.20, server: bbs.test.net$, request: "GET /forum.php?mod=rss&fid=71&auth=0 HTTP/1.1", u



table_forum_post::update($tableid, $pid, $data, $unbuffered = false, $low_priority = false, $first = NULL, $invisible = NULL, $fid = NULL, $status = NULL)
discuz_table::update($val, $data, $unbuffered = false, $low_priority = false)
          DB::update(self::get_tablename($tableid), $data, implode(' AND ', $where), $unbuffered, $low_priority)



    delete($tableid, $pid, $unbuffered = false)
discuz_table::delete($val, $unbuffered = false)


table_forum_post::insert($tableid, $data, $return_insert_id = false, $replace = false, $silent = false)
              discuz_table::insert($data, $return_insert_id = false, $replace = false, $silent = false)


table_forum_post::fetch($tableid, $pid, $outmsg = true)
         discuz_table::fetch($id, $force_from_db = false)


table_forum_post::fetch_all($tableid, $pids, $outmsg = true)
      discuz_table::fetch_all($ids, $force_from_db = false)




table_forum_post::update_cache($tableid, $id, $idtype, $data, $condition = Array, $glue = 'merge')
      discuz_table::update_cache($id, $data, $cache_ttl = NULL, $pre_cache_key = NULL)




discuz x3.4
php7.4.5

代码子类重写方法的参数和基类不一样报错?


我知道答案 回答被采纳将会获得1 贡献 已有0人回答