Published: January 14, 2020
Last updated:

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 previous version of SUPEE-11219 and install the latest one (v13 at the moment):
$ bash ./PATCH_SUPEE-11219_CE_1.7.0.2_v9.sh --revert
Checking if patch can be applied/reverted successfully...
Patch was applied/reverted successfully.
$ bash ./PATCH_SUPEE-11219_CE_1.7.0.2_v13.sh 
Checking if patch can be applied/reverted successfully...
Patch was applied/reverted successfully.


Posted in: Fatal errors, Known issues, supee-11219

43 votes, 4.77 avg. rating (94% score)