上传错误的UNKNOWTCMS附件PbootCMS- Code- 8192; Desc- stripos()-

上传错误的UNKNOWTCMS附件PbootCMS: Code: 8192; Desc: stripos(): 上传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;

解决办法:

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

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

替换成

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