18922311568
首页 / 资讯中心 / PbootCMS教程

PbootCMS附件上传失败报错UNKNOW: Code: 8192; Desc: stripos():

2023-09-03PbootCMS教程阅读约 3 分钟
本文来自实际建站过程中的记录,步骤可直接照做;环境不同导致的报错,见文末说明。
\n \n
\n
\n PbootCMS附件上传时报错:
\n
\n
\n
\n上传失败:UNKNOW: Code: 8192; Desc: stripos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior; File: /www/wwwroot/aaa.xxxx.com/core/function/file.php; Line: 176;
\n
\n\n\t解决办法:\n\n\t打开/core/function/file.php,搜索以下
\n\t 

\n\n\t\n\t\t\n\t\t\t\n\t\t\t\t
\nif (stripos($types, $ext) !== false)
\n\t\t\t\n\t\t\n\t\n\n
\n替换成
\n
\n\n\t\n\t\t\n\t\t\t\n\t\t\t\t
\nif (stripos($types, chr($ext)) !== false)
\n\t\t\t\n\t\t\n\t\n\n
\n \n
\n\n
需要这套模板 / 要做成自己的站?电话/微信 18922311568