php7.2升级到php8.0时访问首页出现下面报错 New
2024-11-08 17:34 来自 迪巴拉 发布@ Discuz!问题求助
求大佬帮看下,谢谢了!
implode(): Argument #1 ($pieces) must be of type array, string given
PHP Debug
No.FileLineCode1index.php136require(%s)2forum.php71require(%s)3source/module/forum/forum_index.php137include(%s)4data/template/2_diy_forum_discuz.tpl.php1include(%s)5data/template/2_2_common_header_forum_index.tpl.php151implode()6data/template/2_2_common_header_forum_index.tpl.php151break()
如果您是用户,建议您尝试刷新页面、关闭所有浏览器窗口重新进行操作。如果无法解决,建议您完整截图本页面并保存,随后向站点管理员反馈此问题
我知道答案 回答被采纳将会获得1 贡献 已有3人回答
implode(): Argument #1 ($pieces) must be of type array, string given
PHP Debug
No.FileLineCode1index.php136require(%s)2forum.php71require(%s)3source/module/forum/forum_index.php137include(%s)4data/template/2_diy_forum_discuz.tpl.php1include(%s)5data/template/2_2_common_header_forum_index.tpl.php151implode()6data/template/2_2_common_header_forum_index.tpl.php151break()
如果您是用户,建议您尝试刷新页面、关闭所有浏览器窗口重新进行操作。如果无法解决,建议您完整截图本页面并保存,随后向站点管理员反馈此问题
我知道答案 回答被采纳将会获得1 贡献 已有3人回答
登录/admin.php后台,几分钟不操作就会自动退出
2023-01-17 14:09 来自 哥斯拉 发布@ Discuz! X3.5专区
登录/admin.php后台,几分钟不操作就会自动退出,需要再次登录
再次登录不管输入多少次密码都不会登录进去后台也没有任何提示
需要重新换个浏览器或者清除掉所有浏览器缓存才可以
数据库用的UTF8mb4 PHP8.0 mysql5.7
不知道哪里的原因
再次登录不管输入多少次密码都不会登录进去后台也没有任何提示
需要重新换个浏览器或者清除掉所有浏览器缓存才可以
数据库用的UTF8mb4 PHP8.0 mysql5.7
不知道哪里的原因
PHP8.0 后台工具数据缓存更新时报错
2023-01-30 12:39 来自 惧愁人 发布@ Discuz! X3.5专区
如题:PHP8.0 后台工具数据缓存更新时报错
Discuz! System Errorfread(): Argument #2 ($length) must be greater than 0
PHP Debug
No.FileLineCode1admin.php58require(%s)2source/admincp/admincp_tools.php38updatecache()3source/function/function_cache.php20build_cache_setting()4source/function/cache/cache_setting.php390writetojscache()5source/function/cache/cache_setting.php1129fread()6source/function/cache/cache_setting.php1129break()
5 金币+1 金币最佳答案
您看一下 static/js 目录下面有没有空文件,正常来说应该没有,应该是这个导致的报错。
修正代码:
报错文件里面有
Discuz! System Errorfread(): Argument #2 ($length) must be greater than 0
PHP Debug
No.FileLineCode1admin.php58require(%s)2source/admincp/admincp_tools.php38updatecache()3source/function/function_cache.php20build_cache_setting()4source/function/cache/cache_setting.php390writetojscache()5source/function/cache/cache_setting.php1129fread()6source/function/cache/cache_setting.php1129break()
5 金币+1 金币最佳答案
您看一下 static/js 目录下面有没有空文件,正常来说应该没有,应该是这个导致的报错。
修正代码:
报错文件里面有



