PHP Warning: Declaration of table_forum_thread

30 天前
 aaabababa

discuz x3.4 php7.4.5 代码报错

2024/04/24 19:01:47 [error] 2093#0: *1754499 FastCGI sent in stderr: "PHP message: PHP Warning: Declaration of table_forum_thread::update($tid, $data, $unbuffered = false, $low_priority = false, $tableid = 0, $realdata = false) should be compatible with discuz_table::update($val, $data, $unbuffered = false, $low_priority = false, $first = NULL, $invisible = NULL, $fid = NULL, $status = NULL) in /bbs/source/class/table/table_forum_thread.php on line 841PHP 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, $first = NULL, $invisible = NULL, $fid = NULL, $status = NULL) 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:

方法声明与父类方法不兼容? 请教大佬,怎么简单修改好?

817 次点击
所在节点    PHP
4 条回复
via
30 天前
修改成兼容?
BeijingBaby
30 天前
只是警告,简单屏蔽就可以了
aaabababa
30 天前
@BeijingBaby 屏蔽感觉有点不好
aaabababa
30 天前
@via 改成兼容,代码改动量大?

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/1035384

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX