本文来自实际建站过程中的记录,步骤可直接照做;环境不同导致的报错,见文末说明。

上传失败: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;
if (stripos($types, $ext) !== false)
替换成
if (stripos($types, chr($ext)) !== false)