久久久久av_欧美日韩一区二区在线_国产精品三区四区_日韩中字在线

Discuz! 官方交流社區

標題: 回復帖子偶爾出現count(): Argument #1 ($value) must be of type Countable|array, null given [打印本頁]

作者: datou    時間: 2023-5-5 02:13
標題: 回復帖子偶爾出現count(): Argument #1 ($value) must be of type Countable|array, null given
Discuz! X3.5 Release 20230316 PHP8.2環境下載回復帖子有時候偶爾出現此錯誤,切換到php7.4不會出現。
count(): Argument #1 ($value) must be of type Countable|array, null given
PHP:forum.php#require(%s):0071
source/module/forum/forum_post.php#require_once(%s):0364
source/include/post/post_newreply.php#discuz_container->discuz_container->__call():0420
source/class/discuz/discuz_container.php#discuz_container->discuz_container->_call():0055
source/class/discuz/discuz_container.php#extend_thread_allowat->extend_thread_allowat->before_newreply():0084
source/class/extend/extend_thread_allowat.php#break():0084


作者: 1314學習網    時間: 2023-5-5 03:18
source\class\extend\extend_thread_allowat.php

  1. $atlist_tmp = $ateduids = array();
復制代碼
改為
  1. $this->atlist = $atlist_tmp = $ateduids = array();
復制代碼


作者: datou    時間: 2023-5-5 15:36
謝謝樓上的大神,您的方法解決了此問題。




歡迎光臨 Discuz! 官方交流社區 (http://www.9999xn.com/) Powered by Discuz! W1.0