V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
aaabababa
V2EX  ›  PHP

PHP Warning: Declaration of table_forum_thread

  •  
  •   aaabababa · 224 天前 · 1194 次点击
    这是一个创建于 224 天前的主题,其中的信息可能已经有所发展或是发生改变。

    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:

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

    4 条回复    2024-04-25 13:36:56 +08:00
    via
        1
    via  
       224 天前 via iPhone
    修改成兼容?
    BeijingBaby
        2
    BeijingBaby  
       224 天前
    只是警告,简单屏蔽就可以了
    aaabababa
        3
    aaabababa  
    OP
       223 天前
    @BeijingBaby 屏蔽感觉有点不好
    aaabababa
        4
    aaabababa  
    OP
       223 天前
    @via 改成兼容,代码改动量大?
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   6019 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 02:08 · PVG 10:08 · LAX 18:08 · JFK 21:08
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.