编程那点事编程那点事

专注编程入门及提高
探究程序员职业规划之道!

大商创 Illegal string offset 'name' in temp\compiled\admin\shop_banner.lbi.php

今天在大商创可视化装修的时候,在编辑导航的时候报错,具体报错如下

PHP Warning:  Illegal string offset 'name' in E:\Website\codingwhy\temp\compiled\admin\shop_banner.lbi.php on line 2515

PHP Stack trace:

PHP   1. {main}() E:\Website\codingwhy\admin\dialog.php:0

PHP   2. cls_template->fetch($filename = 'library/shop_banner.lbi', $cache_id = *uninitialized*, $not_cache = *uninitialized*) E:\Website\codingwhy\admin\dialog.php:2148

PHP   3. cls_template->make_compiled($filename = 'E:/Website/codingwhy/admin/templates/library/shop_banner.lbi', $not_cache = 'yes') E:\Website\codingwhy\includes\cls_template.php:113

PHP   4. cls_template->_require($filename = 'E:/Website/codingwhy/temp/compiled/admin/shop_banner.lbi.php') E:\Website\codingwhy\includes\cls_template.php:175

PHP   5. include() E:\Website\codingwhy\includes\cls_template.php:899

PHP Warning:  Illegal string offset 'url' in E:\Website\codingwhy\temp\compiled\admin\shop_banner.lbi.php on line 2516

PHP Stack trace:

PHP   1. {main}() E:\Website\codingwhy\admin\dialog.php:0

PHP   2. cls_template->fetch($filename = 'library/shop_banner.lbi', $cache_id = *uninitialized*, $not_cache = *uninitialized*) E:\Website\codingwhy\admin\dialog.php:2148

PHP   3. cls_template->make_compiled($filename = 'E:/Website/codingwhy/admin/templates/library/shop_banner.lbi', $not_cache = 'yes') E:\Website\codingwhy\includes\cls_template.php:113

PHP   4. cls_template->_require($filename = 'E:/Website/codingwhy/temp/compiled/admin/shop_banner.lbi.php') E:\Website\codingwhy\includes\cls_template.php:175

PHP   5. include() E:\Website\codingwhy\includes\cls_template.php:899

PHP Warning:  Illegal string offset 'vieworder' in E:\Website\codingwhy\temp\compiled\admin\shop_banner.lbi.php on line 2517

PHP Stack trace:

PHP   1. {main}() E:\Website\codingwhy\admin\dialog.php:0

PHP   2. cls_template->fetch($filename = 'library/shop_banner.lbi', $cache_id = *uninitialized*, $not_cache = *uninitialized*) E:\Website\codingwhy\admin\dialog.php:2148

PHP   3. cls_template->make_compiled($filename = 'E:/Website/codingwhy/admin/templates/library/shop_banner.lbi', $not_cache = 'yes') E:\Website\codingwhy\includes\cls_template.php:113

PHP   4. cls_template->_require($filename = 'E:/Website/codingwhy/temp/compiled/admin/shop_banner.lbi.php') E:\Website\codingwhy\includes\cls_template.php:175

PHP   5. include() E:\Website\codingwhy\includes\cls_template.php:899

大商创导航编辑器

最后有测试了下,在linux下,同样的源代码下,linux不抱错,初步估计是因为linux屏蔽了php waring。

其实要修改这个错误还是很简单的,如果你是默认的模板,来到pc_page.html页面,替换如下代码即可。

首页        食品特产        服装城        大家电        批发商城        品牌专区        聚划算        积分商城        预售        店铺街                                            编辑


未经允许不得转载: 技术文章 » PHP编程 » 大商创 Illegal string offset 'name' in temp\compiled\admin\shop_banner.lbi.php