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

think-cache報(bào)錯(cuò)think\cache\Driver::unserialize()

原地漫步

問題描述

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

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

程序代碼

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

截圖報(bào)錯(cuò)信息里報(bào)錯(cuò)文件相關(guān)代碼

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

Ubuntu 20.04.6
php 7.4.33
Nginx 1.22.1
MySQL 5.6.50

2143 4 0
4個(gè)回答

xiuwang

think-cache bug得找tp官方

  • 暫無評論
lethe

你這個(gè)問題解決了嗎

  • 暫無評論
liziyu

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

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

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

  • 暫無評論
ric

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

  • 原地漫步 2023-09-19

    Cache 這個(gè)應(yīng)該不是最新的,自己改了核銷代碼搞定了

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