请问PbootCMS附件上传失败报错UNKNOW_ Code_ 8192; Desc_ stripos()_
当遇到上传失败报错 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;
时,可以通过修改代码来解决该问题。
解决方案
- 定位问题代码
- 修改代码
- 验证结果
详细步骤
1. 定位问题代码
- 打开文件:
- 打开
/core/function/file.php
文件。 - 查找以下代码行:
if (stripos($types, $ext) !== false)
- 打开
2. 修改代码
- 替换代码:
- 将上述代码替换为:
if (stripos($types, chr($ext)) !== false)
- 将上述代码替换为:
更新时间:2025-04-11 00:01:57
上一篇:请问pbootcms模板英文站搜索效果页面包屑显示优化
下一篇:请问phpcms 后台修改网站备案号,如何在 PHPCMS 中更改网站备案信息
转载请注明原文链接:https://www.muzicopy.com/suibi/4428.html