unserialize(): Error at offset 0 of 10898 bytes

thinkphp5 unserialize(): Error at offset 0 of 932 bytes

ThinkPHP5框架

该问题一般是用了git导致的

方案一

在thinkphp\library\think\cache\driver\Flie.php中,

找到下面一句 大约120行左右

$content  =  substr($content, 32)
先修32 为大写的数字

$content = substr($content, 32000);

正常显示后可改回原来的值即可。

一般解决完,后续就ok了

方案二(亲测也可以)

删除 /runtime/cache 下的所有文件

THE END