所有分类
  • 所有分类
  • Pbootcms模板
  • 迅睿CMS模板
  • 站长学院

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

pbootcms附件上传时报错:

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

 

常见问题
原文链接:https://www.mubanbaba.com/7171.html,转载请注明出处。
0

评论0

站点提示

各位用户新年好,今日正式开工,欢迎大家咨询

显示验证码

社交账号快速登录

微信扫一扫关注
扫码关注后会自动登录