致命错误:未捕获错误:字符串不支持 [] 运算符

在服务器之间迁移 Magento 1.9.3.7 站点后,我无法访问设置页面:导航到管理 > 系统 > 配置 显示以下错误:

致命错误:未捕获错误:[] 运算符不支持 /home/defaultwebsite/public/app/code/local/Codazon/Themeframework/Model/System/Config/Source/Categoriestree.php:28 中的字符串

Categoriestree.php:28 错误在这里 >>

$this->_categoriesTree[] = array('value' => $item['category_id'],'label' => str_repeat("–––", $level)." ".$item['name']);




皈依舞
浏览 221回答 1
1回答

陪伴而非守候

可能这篇文章有帮助,类似于你的问题错误 https://www.key2goal.com/article/wordpress-error-php-71-php-fatal-error-uncaught-error-operator-not-supported-strings如果您使用 php 7.1,那么您需要正确的数组定义..可以这样定义$this->_categoriesTree = array();
打开App,查看更多内容
随时随地看视频慕课网APP