Frequently Asked Questions

General Debugging issues for Layout problems.
Last Updated 5 years ago

If you need to locate the actual files for layout issues. Do the following in the update.php file. Before the call for the file name. 

The following is the path to where Update.php file can be found


mage::log(__METHOD__ . __LINE__ . "Looking for files $filename");
$fileStr = file_get_contents($filename);
$fileStr = str_replace($this->_subst['from'], $this->_subst['to'], $fileStr);
$fileXml = simplexml_load_string($fileStr, $elementClass);
if (!$fileXml instanceof SimpleXMLElement) {
$layoutStr .= $fileXml->innerXml();

In the system log you will see the following explaining which files are the ones with issues. 

2015-07-07T22:38:21+00:00 DEBUG (7): Mage_Core_Model_Layout_Update::getFileLayoutUpdatesXml448Looking for files /var/www/app/design/frontend/default/sm_saphi/layout/checkout.xml
2015-07-07T22:38:21+00:00 DEBUG (7): Mage_Core_Model_Layout_Update::getFileLayoutUpdatesXml448<span style="background-color:rgb(255, 255, 0)">Looking for files</span> /var/www/app/design/frontend/default/sm_saphi/layout/paypal.xml<br />2015-07-07T22:38:21+00:00 ERR (3): Warning: simplexml_load_string(): Entity: line 101: parser error : Opening and ending tag mismatch: reference line 98 and block  in /var/www/app/code/core/Mage/Core/Model/Layout/Update.php on line 451

Please Wait!

Please wait... it will take a second!