Errors reported under PHP 7.1.12 and Yii Framework/1.1.16: PHP Notice Unserialize(): Unexpected End of Serialized Data The solution of

报错:unserialize(): Unexpected end of serialized data

1. Error report: unserialize(): unexpected end of serialized data, as shown in Figure 1

报错:unserialize(): Unexpected end of serialized data
Figure 1
2. Edit \framework\caching\ccache.php to print out $value , as shown in Figure 2
编辑 \framework\caching\CCache.php,打印出 $value
Figure 2
3. Print the result, its value is:}, as shown in Figure 3

 

打印结果,其值为:}
Figure 3

4. Edit \framework\web\CurlManager.php, and print out self::cache_key, as shown in Figure 4

编辑 \framework\web\CUrlManager.php,打印出 self::CACHE_KEY
Figure 4

5. Print the result, its value is: yii.curlmanager.rules, as shown in Figure 5

打印结果,其值为:Yii.CUrlManager.rules
Figure 5

6. Open the URL: https://github.com/yiisoft/yii/issues/4137 and find that there is the same problem, as shown in Figure 6

打开网址:https://github.com/yiisoft/yii/issues/4137 ,发现有一样的问题
Figure 6

7. Follow the instructions to solve the problem, upgrade the Yii Framework to 1.1.19, as shown in Figure 7

按照问题解决的说明,将 Yii Framework 升级至 1.1.19
Figure 7

8. Delete the framework directory in the program, and copy the downloaded framework directory to the program, as shown in Figure 8

删除程序中的 framework 目录,将下载的 framework 目录,复制至程序中
8

9. After the upgrade, the problem is solved.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.