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
MAY 03 2020

Magento Checkout broken after SUPEE-10415, blank empty page

Problem description After installing SUPEE-10415 patch Magento Checkout page is broken, blank or empty. Cause and solution There are several possible cases caused by improper patch installation of SUPEE-10415 or earlier SUPEE-8788 patch, Please check the following articles for solution: Cannot redeclare Mage_Core_Helper_String::unserialize() Cannot redefine class constant Mage_Customer_Model_Customer::MAXIMUM_PASSWORD_LENGTH Unsupported data type N If you have any difficulties with solving this problem or got a similar one, please let us know in comments below, so we… Read the rest
MAY 03 2020

Cannot redeclare Mage_Core_Helper_String::unserialize() in app/code/core/Mage/Core/Helper/String.php

Problem description Magento Checkout is blank/empty after installing SUPEE-10415, the following error logged in PHP error log: PHP Fatal error: Cannot redeclare Mage_Core_Helper_String::unserialize() in app/code/core/Mage/Core/Helper/String.php on line 505 Cause app/code/core/Mage/Core/Helper/String.php file got patched twice (either due to manual action or by file upload from another Magento version). As result, unserialize() function is defined twice and causing fatal error. Solution Delete extra definition of unserialize() function in app/code/core/Mage/Core/Helper/String.php file: If you have any difficulties with solving… Read the rest
MAY 03 2020

Cannot redefine class constant Mage_Customer_Model_Customer::MAXIMUM_PASSWORD_LENGTH in app/code/core/Mage/Customer/Model/Customer.php on line 55

Problem description After installing SUPEE-10415 Magento Checkout page is blank/empty. The following error logged in PHP error log or shown (if display_errors is enabled): PHP Fatal error: Cannot redefine class constant Mage_Customer_Model_Customer::MAXIMUM_PASSWORD_LENGTH in app/code/core/Mage/Customer/Model/Customer.php on line 55 Cause app/code/core/Mage/Customer/Model/Customer.php have MAXIMUM_PASSWORD_LENGTH constant declared two or more times. It can happen if the file was patched manually earlier or uploaded from newer Magento version. Solution Edit app/code/core/Mage/Customer/Model/Customer.php and delete the extra declaration of MAXIMUM_PASSWORD_LENGTH around line… Read the rest
MAY 03 2020

Magento logging not working in 1.9.4.1 or after SUPEE-11086

After upgrade to Magento 1.9.4.1 or SUPEE-11086 Magento logging not working if log file does not exist. Cause In 1.9.4.1 (and SUPEE-11086) Magento added log validation function to validate extensions and it throws error on is_readable() function in case log file does not exist yet. Solution Use MPERF-10565 patch below to correct this issue. Note: This patch will be included in the next official SUPEE-release and should be reverted priot to next SUPEE-patch installation. If… Read the rest
MAY 03 2020

Middle Name on Magento Checkout page displayed after upgrade despite configuration

After Magento upgrade up to 1.9.2.1 or newer version you may notice Middle Name field is shown on Checkout, Customer Registration and other Frontend forms despite its configuration setting in Backend, at System > Configuration > Customers > Customer Configuration > Name and Address Options > Show Middle Name (Initial) option. Yet the option is set to “No“, Middle Name initial is still shown in every form on Frontend. Cause In newer Magento version (1.9.2.1… Read the rest