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
JUN 17 2020

OpenMage: Invalid attribute name: main_table.store_id

The following exception is thrown on attempt to load catalog after migration/upgrade to OpenMage 19.4.3: Invalid attribute name: main_table.store_id Solution Apply the very next commit after OpenMage v19.4.3 release: Source: https://github.com/OpenMage/magento-lts/issues/939
JAN 26 2020

Fatal error: Cannot redeclare Mage_Adminhtml_Model_LayoutUpdate_Validator::$_validator in app/code/core/Mage/Adminhtml/Model/LayoutUpdate/Validator.php on line 80

Editing any CMS page in Magento 1.7.0.2 results in a blank page or the following fatal error is shown after hitting Save button at CMS > Pages > Home or any other CMS page: Fatal error: Cannot redeclare Mage_Adminhtml_Model_LayoutUpdate_Validator::$_validator in app/code/core/Mage/Adminhtml/Model/LayoutUpdate/Validator.php on line 80 It simply does not allow to edit any CMS page with custom XML layouts. Cause The was a bug in previous version of SUPEE-11219 where $_validator was defined twice. Solution Rollback… Read the rest
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 28 2019

Magento Checkout is broken after SUPEE-11085 with PHP<5.5

Magento checkout page is broken after installing SUPEE-11085 (Authorize.net Direct Post Signature Key patch). Proceed to Checkout button results in a blank page, PHP fatal error is thrown: Fatal error: Can’t use method return value in write context in app/code/core/Mage/Authorizenet/Model/Directpost.php on line 392 Cause empty() function used in the patch with a function return value. As per official PHP documentation:Prior to PHP 5.5, empty() function only supports variables; anything else will result in a parse… Read the rest
SEP 09 2021

Known issues after Magento 1.x patch installation or upgrades

Issues that can arise after any patch/update Could not determine temp directory, please specify a cache_dir manually Changes not applied Unknown SSL protocol error in connection to connect20.magentocommerce.com:443 upgrade-all: Package community/Lib_Varien 1.9.4.5 depends on PHP extensions: Array Fatal PHP error is triggered on attempt to place order or send order confirmation email after upgrade to PHP 7.2 User Notice: ‘hashed_directory_umask’ is deprecated -> please use ‘hashed_directory_perm’ instead in lib/Zend/Cache/Backend/File.php on line 143 Middle Name on… Read the rest
MAY 28 2019

Call to undefined method Mage_Checkout_OnepageController::isFormkeyValidationOnCheckoutEnabled()

At Magento Onepage Checkout page nothing happens after clicking [Continue] button at Billing information step. It is not possible to proceed to Shipping, Magento checkout just stuck. The following error logged in PHP error log: PHP Fatal error: Call to undefined method Mage_Checkout_OnepageController::isFormkeyValidationOnCheckoutEnabled() in app/code/core/Mage/Checkout/controllers/OnepageController.php on line 374 Cause SUPEE-9767v2 (and v1 as well) added isFormkeyValidationOnCheckoutEnabled() function into app/code/core/Mage/Core/Controller/Front/Action.php file: Solution As the error says isFormkeyValidationOnCheckoutEnabled() is undefined: check if SUPEE-9767v2 was applied properly and… Read the rest
MAY 28 2019

Magento Checkout show blank page after SUPEE-10570 security patch

Problem description Proceeding to Magento Checkout page when logged in as a customer results in a blank page after SUPEE-10570 or Magento upgrade with Magento Compiler enabled. There are no any PHP errors logged or shown unlike PHP Parse error: syntax error, unexpected ‘[‘ PHP incompatibility case with SUPEE-10752 patch. Cause The problem occurs on trying to load a customer object using any available Magento methods, be it via Mage::getModel(‘customer/customer’) or Mage::getSingleton (‘customer/session’) at getPasswordTimestamp()… Read the rest
MAY 28 2019

Undefined class constant ‘XML_NODE_PRODUCT_MAX_DIMENSION’ in app/design/adminhtml/default/default/template/catalog/product/helper/gallery.phtml on line 111


3 comments

Any attempt to edit product at Catalog > Manage Products in Magento backend results in a blank page and logs the following fatal error after SUPEE-8788 patch or Magento upgrade: Fatal error: Undefined class constant ‘XML_NODE_PRODUCT_MAX_DIMENSION’ in app/design/adminhtml/default/default/template/catalog/product/helper/gallery.phtml on line 111 Cause XML_NODE_PRODUCT_MAX_DIMENSION constant used in the new app/design/adminhtml/default/default/template/catalog/product/helper/gallery.phtml is defined in app/code/core/Mage/Catalog/Helper/Image.php with SUPEE-8788 applied: As the error says it can not find the constant definition, which may be possible due to one of… 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
MAY 26 2019

PHP Parse error: syntax error, unexpected ‘[‘ in app/code/core/Mage/Checkout/Model/Type/Onepage.php on line 691

Problem description Magento Onepage checkout page is blank after SUPEE-10752. The following fatal PHP error thrown at Magento Onepage Checkout page after installing SUPEE-10752 patch: PHP Parse error: syntax error, unexpected ‘[‘ in app/code/core/Mage/Checkout/Model/Type/Onepage.php on line 691 Cause Array de-referencing is used in the following line of code added in SUPEE-10752: Support of array de-referencing is added in PHP 5.4, older versions (PHP 5.3) will throw fatal error like above on attempt of array de-referencing…. Read the rest
MAR 16 2018

Call to undefined method Mage_Log_Helper_Data::isLogFileExtensionValid() in app/Mage.php on line 811

Problem description The following error is shown or logged after Magento upgrade or patch installation (SUPEE-10415): PHP Fatal error: Call to undefined method Mage_Log_Helper_Data::isLogFileExtensionValid() in app/Mage.php on line 811 Cause app/Mage.php was updated with isLogFileExtensionValid() function, but there is no such function in app/code/core/Mage/Log/Helper/Data.php or code is cached by Magento Compiler or Opcode Cache. Ensure that the following code is in app/code/core/Mage/Log/Helper/Data.php (at the very end of file) If the code above is there, proceed… Read the rest
SEP 09 2021

Call to a member function setUrl() on a non-object after SUPEE-8788


2 comments

Problem description After SUPEE-8788 patch bundle or upgrade to 1.9.3.0 edit product page is broken in backend at Catalog > Manage products > Edit product. The following error logged in PHP error log: Fatal error: Call to a member function setUrl() on a non-object in app/code/local/MagicToolbox/Magic360/Block/Adminhtml/Settings/Edit/Tab/Form/Element/Gallery/Content.php on line 16 or Fatal error: Call to a member function setUrl() on a non-object in app/code/community/Unirgy/Giftcert/Block/Adminhtml/Import.php on line 45 Fatal error: Call to a member function setUrl() on… Read the rest
NOV 01 2016

SQLSTATE[42S22]: Column not found: 1054 Unknown column ‘`group`’ in ‘where clause’

Problem description After SUPEE-6788 patch budnle or after upgrade to Magento 1.9.2.4 Ess/M2ePro extension is not updating products or cron execution results in SQL error like the following: SQLSTATE[42S22]: Column not found: 1054 Unknown column ‘`group`’ in ‘where clause’ Cause SUPEE-6788 patch bundle hardened requirements to SQL queries for third-party extensions and the extension is not properly updated to match all new requirements to Magento coding standards. Solution Update Ess/M2ePro extension to the latest version… Read the rest
SEP 17 2015

Call to undefined method Mage_Core_Controller_Request_Http::getInternallyForwarded()

Problem description The following PHP fatal error message appears on attempt to open Magento Backend after SUPEE-5344 patch installation: Call to undefined method Mage_Core_Controller_Request_Http::getInternallyForwarded() in app/code/core/Mage/Admin/Model/Observer.php on line 76 Cause getInternallyForwarded method is introduced in SUPEE-5344 patch. According to the error message it is referred in code, however Magento can not find its definition. It means that either SUPEE-5344 was not applied fully and app/code/core/Mage/Core/Controller/Request/Http.php file still contains unpatched code or old code is still… Read the rest