PbootCMS附件上传失败报错UNKNOW: Code: 8192; Desc: stripos(): Non-string needles will be interpreted as strings in the future.

2024-03-31 0 355

PbootCMS附件上传时报错:

PbootCMS附件上传失败报错UNKNOW: Code: 8192; Desc: stripos(): Non-string needles will be interpreted as strings in the future.

上传失败: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;

翻译过来就是字符串错误:上传失败:未知:代码:8192;描述:stripos():非字符串指针将来将被解释为字符串。使用显式的chr()调用来保留当前行为;文件:/www/wwwroot/aa.xxx.com/core/function/File.php;线路:176;

解决办法:

打开/core/function/file.php,搜索以下

if (stripos($types, $ext) !== false)

替换成

if (stripos($types, chr($ext)) !== false)

 

收藏 (0) 打赏

感谢您的支持,我会继续努力的!

打开微信/支付宝扫一扫,即可进行扫码打赏哦,分享从这里开始,精彩与您同在
点赞 (0)

模板巴巴 Pbootcms教程 PbootCMS附件上传失败报错UNKNOW: Code: 8192; Desc: stripos(): Non-string needles will be interpreted as strings in the future. https://www.mubanbaba.com/7171.html

相关文章

发表评论
暂无评论
官方客服团队

为您解决烦忧 - 24小时在线 专业服务