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:
SEP 09 2021

Blank screen & empty logs after upgrade to OpenMage

Blank screen or empty page is shown in Frontend or Backend after upgrade to OpenMage with PHP5.6. There are no any PHP errors logged, PHP error, system.log and exception.log are empty. Cause The cause is incompatibility with PHP5.6 introduced by replacing logging of Exceptions with Throwable in commit 5dee1c0988e5ebd7fb458d6b72163c69a545c53f merged into 1.9.4.x tree in November 2020 and included into v19.4.9 release: Solution Switch your PHP version to PHP 7.3+ (PHP7.0 is minimal version and PHP7.3… Read the rest
MAR 31 2021

PHP Parse error: syntax error, unexpected ‘:’, expecting ‘;’ or ‘{‘ in app/code/core/Mage/Core/Model/Cookie.php on line 183

The following fatal error logged after upgrade to OpenMage with PHP5.6: PHP Parse error: syntax error, unexpected ‘:’, expecting ‘;’ or ‘{‘ in app/code/core/Mage/Core/Model/Cookie.php on line 183 Errors parsing app/code/core/Mage/Core/Model/Cookie.php Cause The cause is PHP7 type declaration in getSameSite() function added in commit 26b9eee1275b882dac0a84adcf8e22ca643afb61 merged into 1.9.4x tree in December 2020 and included in v19.4.10 release: Type declaration is not supported in older PHP versions. Solution Switch your PHP version to PHP 7.3+ (PHP7.0 is… Read the rest
MAR 31 2021

OpenMage :: unserialize() expects exactly 1 parameter, 2 given in app/code/core/Mage/Core/Model/Cache.php on line 503

The following exception is printed after upgrade to OpenMage: Warning: unserialize() expects exactly 1 parameter, 2 given in app/code/core/Mage/Core/Model/Cache.php on line 503 #0 [internal function]: mageCoreErrorHandler(2, ‘unserialize() e…’, ‘app/co…’, 503, Array) #1 app/code/core/Mage/Core/Model/Cache.php(503): unserialize(‘a:8:{s:10:”bloc…’, Array) #2 app/code/core/Mage/Core/Model/Cache.php(537): Mage_Core_Model_Cache->_initOptions() #3 app/code/core/Mage/Core/Model/App.php(1240): Mage_Core_Model_Cache->canUse(‘config’) #4 app/code/core/Mage/Core/Model/Config.php(425): Mage_Core_Model_App->useCache(‘config’) #5 app/code/core/Mage/Core/Model/Config.php(305): Mage_Core_Model_Config->_canUseCacheForInit() #6 app/code/core/Mage/Core/Model/App.php(440): Mage_Core_Model_Config->loadModulesCache() #7 app/code/core/Mage/Core/Model/App.php(370): Mage_Core_Model_App->_initModules() #8 app/Mage.php(731): Mage_Core_Model_App->run(Array) #9 index.php(78): Mage::run(”, ‘store’) #10 {main} Other similar errors may be thrown from app/code/core/Mage/Core/Model/Store.php or app/code/core/Mage/Core/Model/Translate.php: Warning: unserialize() expects… Read the rest
MAY 03 2020

[M1] Uncaught DivisionByZeroError: Modulo by zero in downloader/Maged/BruteForce/Validator.php line 59


1 comments

The following fatal PHP error is thrown in PHP 7.x on attempt to login to Magento Connect Manager / Downloader: PHP Fatal error: Uncaught DivisionByZeroError: Modulo by zero in downloader/Maged/BruteForce/Validator.php:59 Cause Modulo by zero is used on line 59 of downloader/Maged/BruteForce/Validator.php when $configAttemptsCount is 0: Solution Add a check for non-zero $configAttemptsCount:
MAY 03 2020

Uncaught Error: Class Crypt_Rijndael not found in app/code/local/Ebizmarts/SagePaySuite/Model/SagePayForm.php

Magento Checkout page is blank on payment with SagePay after Magento update or PHP compatibility patch installation. The following PHP error logged: Fatal error: Uncaught Error: Class Crypt_Rijndael not found in app/code/local/Ebizmarts/SagePaySuite/Model/SagePayForm.php Cause Old versions of Ebizmarts/SagePaySuite extension (prior to 4.2.10) have direct calls to Crypt_Rijndael() class and are incompatible with PHP7.2 support. This class is replaced in Magento updates with PHP7.2 support/patch: lib/phpseclib/Crypt/Rijndael.php file is replaced with newer Rijndael implementation. Solution Update Ebizmarts/SagePaySuite extension… Read the rest
MAY 03 2020

PHP Fatal error: Uncaught Error: [] operator not supported for strings in app/code/core/Mage/Usa/sql/usa_setup/upgrade-1.6.0.1-1.6.0.2.php:93

On Magento 1.x upgrade the following error message is thrown: PHP Fatal error: Uncaught Error: [] operator not supported for strings in app/code/core/Mage/Usa/sql/usa_setup/upgrade-1.6.0.1-1.6.0.2.php:93 Stack trace: #0 app/code/core/Mage/Core/Model/Resource/Setup.php(624): include() #1 app/code/core/Mage/Core/Model/Resource/Setup.php(437): Mage_Core_Model_Resource_Setup->_modifyResourceDb(‘upgrade’, ‘1.6.0.1’, ‘1.6.0.3’) #2 app/code/core/Mage/Core/Model/Resource/Setup.php(320): Mage_Core_Model_Resource_Setup->_upgradeResourceDb(‘1.6.0.1′, ‘1.6.0.3’) #3 app/code/core/Mage/Core/Model/Resource/Setup.php(235): Mage_Core_Model_Resource_Setup->applyUpdates() #4 app/code/core/Mage/Core/Model/App.php(428): Mage_Core_Model_Resource_Setup::applyAllUpdates() #5 app/code/core/Mage/Core/Model/App.php(354): Mage_Core_Model_App->_initModules() #6 app/Mage.php(686): Mage_Core_Model_App->run(Array) #7 index.php(83): Mage::run(”, ‘store’) #8 {main} thrown in app/code/core/Mage/Usa/sql/usa_setup/upgrade-1.6.0.1-1.6.0.2.php on line 93 Cause PHP version 7.1 or newer is used for Magento upgrade, old Magento files… Read the rest
SEP 09 2021

PHP 7.2 patches for Magento 1.x without SSH

PHP 7.2 support patch for Magento provides compatibility with PHP 7.2 for core Magento. The patch was released in October 2018 and can be downloaded from https://magento.com/tech-resources/download#download2240. Note, that the patch is in unified diff? format and should be applied with patch command: Alternatively, you can upgrade Magento to 1.9.4.0 version which have announced PHP 7.2 support. Note: Now there is an option to upgrade your M1 store to the latest version of OpenMage LTS… Read the rest
MAY 28 2019

User Notice: ‘hashed_directory_umask’ is deprecated -> please use ‘hashed_directory_perm’ instead in lib/Zend/Cache/Backend/File.php on line 143

After PHP version upgrade Magento throws the following error message in log: User Notice: ‘hashed_directory_umask’ is deprecated -> please use ‘hashed_directory_perm’ instead in lib/Zend/Cache/Backend/File.php on line 143 Sometimes, such notice (actually, any notice) cause 404 error response for every Magento page due to early self::helper(‘log’) call added in SUPEE-10415. Cause hashed_directory_umask option is deprecated in newer PHP version and should be replaced with hashed_directory_perm. hashed_directory_umask option is not referred directly in Magento 1.x code, though… Read the rest
APR 04 2021

Uncaught ArgumentCountError: Too few arguments to function Mage_Sales_Model_Order::getCreatedAtFormated(), 0 passed

The following fatal PHP error is triggered on attempt to place order or send order confirmation email after upgrade to PHP 7.2 on Magento or OpenMage LTS stores: PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function Mage_Sales_Model_Order::getCreatedAtFormated(), 0 passed in lib/Varien/Filter/Template.php on line 301 and exactly 1 expected in app/code/core/Mage/Sales/Model/Order.php:2083 Cause There is a call to getCreatedAtFormated() function in somewhere in the order confirmation email templates and it is passed without any arguments,… Read the rest