開啟緩存點測試報錯:php7.3的
{ "title": "ErrorException", "type": "ErrorException", "code": 500, "message": "Uncaught CodeIgniter\\Format\\Exceptions\\FormatException: Failed to parse json string, error: \"Malformed UTF-8 characters, possibly incorrectly encoded\". in C:\\wwwroot\\cclmi.com\\dayrui\\System\\Format\\Exceptions\\FormatException.php:44\nStack trace:\n#0 C:\\wwwroot\\cclmi.com\\dayrui\\System\\Format\\JSONFormatter.php(42): CodeIgniter\\Format\\Exceptions\\FormatException::forInvalidJSON('Malformed UTF-8...')\n#1 C:\\wwwroot\\cclmi.com\\dayrui\\System\\API\\ResponseTrait.php(407): CodeIgniter\\Format\\JSONFormatter->format(Array)\n#2 C:\\wwwroot\\cclmi.com\\dayrui\\System\\API\\ResponseTrait.php(114): CodeIgniter\\Debug\\Exceptions->format(Array)\n#3 C:\\wwwroot\\cclmi.com\\dayrui\\Fcms\\Extend\\Exceptions.php(55): CodeIgniter\\Debug\\Exceptions->respond(Array, 500)\n#4 [internal function]: Phpcmf\\Extend\\Exceptions->exceptionHandler(Object(CodeIgniter\\Exceptions\\CriticalError))\n#5 {main}\n thrown", "file": "C:\\wwwroot\\cclmi.com\\dayrui\\System\\Format\\Exceptions\\FormatException.php", "line": 44, "trace": [ { "function": "shutdownHandler", "class": "CodeIgniter\\Debug\\Exceptions", "type": "->", "args": [] } ] }

你選的是什么類型的緩存,點測試呢
開源是一種精神,但不是義務(wù),幫忙是情分,不幫也不要抱怨,建議大家多研究代碼、多閱讀代碼、多翻閱社區(qū)歷史問題!
回復(fù)@迅??蚣芗夹g(shù)-陳澤希 每個類型的緩存都是這個錯誤
運行下test.php看看有沒有紅色提示
開源是一種精神,但不是義務(wù),幫忙是情分,不幫也不要抱怨,建議大家多研究代碼、多閱讀代碼、多翻閱社區(qū)歷史問題!
我感覺是文件編碼問題,是不是你私自改了系統(tǒng)的某些文件導(dǎo)致編碼不對呢
回復(fù)@韋爵爺 沒改,就把網(wǎng)站從Linux遷移到Windows里面的就是這個樣子
回復(fù)@迅??蚣芗夹g(shù)-陳澤希 沒有紅色標(biāo)記,都正常
這個錯誤從來沒有遇到過,可能是文件原因,新版文件覆蓋一下試一試
覆蓋前需要提前備份好本網(wǎng)站的文件,覆蓋動作不可逆轉(zhuǎn),萬一覆蓋后遇到致命故障就徹底完蛋了,需要提前備份好,以免出現(xiàn)故障可以恢復(fù)到之前的文件
開源是一種精神,但不是義務(wù),幫忙是情分,不幫也不要抱怨,建議大家多研究代碼、多閱讀代碼、多翻閱社區(qū)歷史問題!