muban大师 发表于 2021-10-10 08:50:01

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

PbootCMS附件上传时报错:


https://www.adminbuy.cn/uploads/allimg/211010/1-2110100U01B22.png


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


        解决办法:
        打开/core/function/file.php,搜索以下
       

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

替换成


       
               
                       
                               
if (stripos($types, chr($ext)) !== false)
页: [1]
查看完整版本: PbootCMS附件上传失败报错UNKNOW: Code: 8192; Desc: stripos():