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

返回列表 發帖
查看: 1969|回復: 2

[已處理] 回復帖子偶爾出現count(): Argument #1 ($value) must be of type Countable|array, null given

7

主題

32

回帖

50

積分

漸入佳境

貢獻
0 點
金幣
5 個
樓主
發表于 2023-5-5 02:13:55 | 只看樓主 |倒序瀏覽 |閱讀模式
BUG反饋
程序版本: X3.5
瀏覽器: FireFox Chrome 
BUG地址: 隱藏內容
BUG截圖: -
測試用戶名: 隱藏內容
測試密碼: 隱藏內容
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

1 貢獻

最佳答案

source\class\extend\extend_thread_allowat.php

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

回復

使用道具 舉報

17

主題

590

回帖

1854

積分

應用開發者

貢獻
66 點
金幣
902 個
QQ
沙發
發表于 2023-5-5 03:18:04 | 只看Ta
source\class\extend\extend_thread_allowat.php

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

回復

使用道具 舉報

7

主題

32

回帖

50

積分

漸入佳境

貢獻
0 點
金幣
5 個
板凳
 樓主| 發表于 2023-5-5 15:36:58 | 只看Ta
謝謝樓上的大神,您的方法解決了此問題。
回復

使用道具 舉報

您需要登錄后才可以回帖 登錄 | 立即注冊

本版積分規則

  • 關注公眾號
  • 有償服務微信
  • 有償服務QQ

手機版|小黑屋|Discuz! 官方交流社區 ( 皖ICP備16010102號 |皖公網安備34010302002376號 )|網站地圖|star

GMT+8, 2025-9-18 16:04 , Processed in 0.078111 second(s), 33 queries .

Powered by Discuz! W1.0 Licensed

Copyright © 2001-2025 Discuz! Team.

關燈 在本版發帖
有償服務QQ
有償服務微信
返回頂部
快速回復 返回頂部 返回列表