Warning: unserialize() expects parameter 一 to be string, array given in.

Warning: unserialize() expects parameter 1 to be string, array given in…
源程序的小问题,修改 _get_apps()方法
首先根据所指的警示路径找到你的uc_client/mondel/cache.php文件的第89行

function _get_apps() {
                $this->base->load('app');
                $apps = $_ENV['app']->get_apps();
                $apps2 = array();
                if(is_array($apps)) {
                        foreach($apps as $v) {
//要替换部分
                         if(!is_array($v['extra'])){
                               $v['extra'] = unserialize($v['extra']);
                                }
                         $apps2[$v['appid']] = $v;
                        }
                }
                return $apps2;
        }
此条目发表在 服务器 分类目录。将固定链接加入收藏夹。

发表评论