Argument 1 passed to think\cache\Driver::unserialize() must be of the type string, boolean given, called in
#0 [0]TypeError in Driver.php line 242
Argument 1 passed to think\cache\Driver::unserialize() must be of the type string, boolean given, called in /www/wwwroot/xxxxx.com/vendor/topthink/framework/src/think/cache/driver/File.php on line 139
return $serialize($data);
}
/**
* 反序列化数据
* @access protected
* @param string $data 缓存数据
* @return mixed
*/
protected function unserialize(string $data)
{
if (is_numeric($data)) {
return $data;
}
$unserialize = $this->options['serialize'][1] ?? "unserialize";
return $unserialize($data);
}
意思是参数的类型使用错误 unserialize反序列化参数是字符串
具体原因不知道,莫名其妙的玩意
重新覆盖程序和数据库就莫名奇妙的好了
真的搞不懂,看不懂thinkphp报的错误,只报错不给出具体原因的解决方案
百度也没有答案