How to get more detailed logs for errors in magento

If your getting this error:

 ERR (3): Warning: simplexml_load_string() 

It dosent actually give you very many details but – if you add a line of code to a file you can get a more detailed error.

Open: /lib/Varien/Simplexml/Config.php and go to line 510:

You will see this:

$xml = simplexml_load_string($string, $this->_elementClass);

add this under that line:

if(!$xml){ Mage::log($string); } 

Leave a Reply

Your email address will not be published. Required fields are marked *