JUN
16
2021
Uncaught Error: [] operator not supported for strings in app/code/local/Codazon/Themeframework/Model/System/Config/Source/Categoriestree.php
The following uncaught fatal error is thrown after upgrade to PHP7.x Magento 1.x Codazon theme: Fatal error: Uncaught Error: [] operator not supported for strings in app/code/local/Codazon/Themeframework/Model/System/Config/Source/Categoriestree.php:28 Full stack strace is Cause $_categoriesTree is initially defined as string and array is assigned later: This is not allowed in PHP7. Solution The following patch against app/code/local/Codazon/Themeframework/Model/System/Config/Source/Categoriestree.php should help: