所有分類
  • 所有分類
  • 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.cloudflar.hk/7171.html,转载请注明出处。
0

評論0

請先
沒有帳號?註冊  忘記密碼?
在线留言
在线留言
客服不在线,请点击添加QQ
客服QQ
新服务
定制开发服务
需要定制开发或修改现有模板?
请联系我们获取专业解决方案
加QQ