在服務器之間遷移 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']);
1 回答

陪伴而非守候
TA貢獻1757條經驗 獲得超8個贊
可能這篇文章有幫助,類似于你的問題錯誤 https://www.key2goal.com/article/wordpress-error-php-71-php-fatal-error-uncaught-error-operator-not-supported-strings
如果您使用 php 7.1,那么您需要正確的數組定義..
可以這樣定義
$this->_categoriesTree = array();
- 1 回答
- 0 關注
- 258 瀏覽
添加回答
舉報
0/150
提交
取消