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

PHP Warning: Declaration of table_forum_thread

  •  
  •   aaabababa · 10 天前 · 558 次点击

    腾讯云最新优惠活动来了:云产品限时1折,云服务器低至88元/年 ,点击这里立即抢购:9i0i.cn/qcloud,更有2860元代金券免费领取,付款直接抵现金用,点击这里立即领取:9i0i.cn/qcloudquan

    (福利推荐:你还在原价购买阿里云服务器?现在阿里云0.8折限时抢购活动来啦!4核8G企业云服务器仅2998元/3年,立即抢购>>>:9i0i.cn/aliyun

    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  
       10 天前 via iPhone
    修改成兼容?
    BeijingBaby
        2
    BeijingBaby  
       10 天前
    只是警告,简单屏蔽就可以了
    aaabababa
        3
    aaabababa  
    OP
       9 天前
    @BeijingBaby 屏蔽感觉有点不好
    aaabababa
        4
    aaabababa  
    OP
       9 天前
    @via 改成兼容,代码改动量大?
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2326 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 1573ms · UTC 05:30 · PVG 13:30 · LAX 22:30 · JFK 01:30
    Developed with CodeLauncher
    ? Do have faith in what you're doing.


    http://www.vxiaotou.com