国产+高潮+在线,国产 av 仑乱内谢,www国产亚洲精品久久,51国产偷自视频区视频,成人午夜精品网站在线观看

think-cache報錯think\cache\Driver::unserialize()

原地漫步

問題描述

think-cache : Argument 1 passed to think\cache\Driver::unserialize()
讀取緩存think-cache報錯
偶爾會報default.ERROR: TypeError: Argument 1 passed to think\cache\Driver::unserialize() must be of the type string, bool given

然后造成程序堵塞,和數(shù)據(jù)鎖定,webman一直報錯無法正常運行。

程序代碼

\think\facade\Cache::get('config')

截圖報錯信息里報錯文件相關代碼

操作系統(tǒng)及workerman/webman等框架組件具體版本

Ubuntu 20.04.6
php 7.4.33
Nginx 1.22.1
MySQL 5.6.50

2066 4 0
4個回答

xiuwang

think-cache bug得找tp官方

  • 暫無評論
lethe

你這個問題解決了嗎

  • 暫無評論
liziyu

這個問題我也遇到過。是tp與php版本兼容問題好像。

default.ERROR: TypeError: Argument 1 passed to think\cache\Driver::unserialize() must be of the type string, bool given.

具體我不記得是怎么解決的了,按照這個來就行了。

  • 暫無評論
ric

代碼問題吧,\think\facade\Cache::get('config')值有問題,導致反系列化的時候失敗,看看是不是為null或者空、false了

  • 原地漫步 2023-09-19

    Cache 這個應該不是最新的,自己改了核銷代碼搞定了

年代過于久遠,無法發(fā)表回答
??