#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

  1. return $serialize($data);
  2. }

  3. /**
  4. * 反序列化数据
  5. * @access protected
  6. * @param string $data 缓存数据
  7. * @return mixed
  8. */
  9. protected function unserialize(string $data)
  10. {
  11. if (is_numeric($data)) {
  12. return $data;
  13. }

  14. $unserialize = $this->options['serialize'][1] ?? "unserialize";

  15. return $unserialize($data);
  16. }

意思是参数的类型使用错误 unserialize反序列化参数是字符串

具体原因不知道,莫名其妙的玩意

重新覆盖程序和数据库就莫名奇妙的好了

真的搞不懂,看不懂thinkphp报的错误,只报错不给出具体原因的解决方案

百度也没有答案