建站教程thinkphp5出现[8] ErrorException in Template.php line 276 unserialize(): Error at offset 146 of 158 bytes菜鸟教程出现,error - Powered by Discuz!
<link rel="stylesheet" type="text/css" href="source/plugin/qzom_thread/styles/4/styles.css"><font style="color:rgb(0, 0, 0)"><font face="黑体"><font style="font-size:25px"><font face="Consolas, Liberation Mono, Courier, Verdana, 微软雅黑"><font color="#4288ce"><font style="font-size:18px">thinkphp5出现 ErrorException in Template.php line 276 unserialize(): Error at offset 146 of 158 bytes</font></font></font></font></font></font><font face="Consolas, Liberation Mono, Courier, Verdana, 微软雅黑"><font style="color:rgb(0, 0, 0)"><font style="font-size:25px"><font color="#4288ce"><font style="font-size:18px"><br /></font></font></font></font></font><br /><font face="Consolas, Liberation Mono, Courier, Verdana, 微软雅黑"><font style="color:rgb(0, 0, 0)"><font style="font-size:25px"><font color="#4288ce"><font style="font-size:18px"><br /></font></font></font></font></font><br /><font color="#000"></font><br /><br /><font style="color:rgb(0, 0, 0)"><font face="黑体"><font style="font-size:25px">发现问题</font></font></font><font style="color:rgb(0, 0, 0)"><font face="黑体"><font style="font-size:25px"><font style="color:rgb(44, 44, 44)"><font face="&quot"><font style="font-size:15px">dump一下出错的位置的变量,可以发现是缓存出了问题,改了名字的文件的路径对不上</font></font></font></font></font></font><font style="color:rgb(0, 0, 0)"><font face="黑体"><font style="font-size:25px"><font style="color:rgb(44, 44, 44)"><font face="&quot"><font style="font-size:15px"></font></font></font></font></font></font><font style="color:rgb(0, 0, 0)"><font face="黑体"><font style="font-size:25px">解决--清缓存</font></font></font><font color="#000"><font face="黑体"><font style="font-size:25px"> </font></font></font><font face="Arial">0.png (9.34 KB, 下载次数: 0)<a href="https://bbs.moboge.com/forum.php?mod=attachment&aid=MzcwM3w4OGY4NDhkNXwxNjQ3NTEyMTk2fDF8MjMzNQ%3D%3D&nothumb=yes" target="_blank">下载附件</a> 保存到相册 <a href="https://bbs.moboge.com/forum.php?mod=ajax&action=setthreadcover&aid=3703&fid=94" target="_blank">设为封面</a><span style="float:right;margin-left:5px">2021-10-12 13:54 上传</font></span></font></font><br /><br /><br /><font color="#000"></font><br /><font style="color:rgb(0, 0, 0)"><font face="黑体"><font style="font-size:25px"><font style="color:rgb(44, 44, 44)"><font face="&quot"><font style="font-size:15px">所有框架代码在别人那能运行,到自己这就不行了,况且环境是一致的,这是可以考虑清楚一下缓存</font></font></font></font></font></font><font style="color:rgb(0, 0, 0)"><font face="黑体"><font style="font-size:25px">ThinkPHP5框架直接删除 runtime文件夹下所有文件然后重新运行项目</font></font></font><font style="color:rgb(0, 0, 0)"><font face="黑体"><font style="font-size:25px">总结</font></font></font><font style="color:rgb(0, 0, 0)"><font face="黑体"><font style="font-size:25px"><font style="color:rgb(44, 44, 44)"><font face="&quot"><font style="font-size:15px">本次问题主要是因为在git仓库中上传了runtime目录文件,所以导致在重新拉去项目的时候会出现unserialize()报错,所以在git仓库中最好不要上传缓存文件,毕竟没有什么实际用处</font></font></font></font></font></font><font style="color:rgb(0, 0, 0)"><font face="黑体"><font style="font-size:25px"><font style="color:rgb(44, 44, 44)"><font face="&quot"><font style="font-size:15px">参考文章:<font color="inherit"><font style="background-color:transparent"><a href="https://www.cnblogs.com/Renyi-Fan/p/10652715.html" target="_blank">https://www.cnblogs.com/Renyi-Fan/p/10652715.html</a></font></font></font></font></font></font></font></font><br /> <h3>版权声明</h3> <p>1、本站所有资源来源于网络搜集和会员分享</p><p>2、本站所有程序仅供大家学习和参考,不得进行商业用途</p><p>3、如果觉得程序还可以、请购买官方正版</p><p>4、对不遵守本声明或其他违法、恶意使用本网站内容者,本网站保留追究其法律责任的权利。</p> <p>唯一网址: <a target="_blank" href='https://bbs.zonghengtx.cn/thread-2216-1-1.html' title='thinkphp5出现 ErrorException in Template.php line 276 unserialize(): Error at offset 146 of 158 bytes'>https://bbs.zonghengtx.cn/thread-2216-1-1.html</a></p> <link rel="stylesheet" type="text/css" href="source/plugin/qzom_thread/styles/4/styles.css">学习了,不错,讲的太有道理了 <link rel="stylesheet" type="text/css" href="source/plugin/qzom_thread/styles/4/styles.css">不错不错,楼主您辛苦了。。。 <link rel="stylesheet" type="text/css" href="source/plugin/qzom_thread/styles/4/styles.css">支持一下
页:
[1]