Re: Magento - Error in the Log!
Posted: 21 Aug 2015, 17:37
Hi guys
I'm struggling to correct various issues with my Magento based website.
Today I was browsing around the hosted files and noticed the system.log
/public_html/magento/var/log/system.log
This is an error that appears regularly and wonder if it's possible to work out what the heck is wrong?
2015-08-20T18:46:57+00:00 ERR (3): Warning: simplexml_load_string() [function.simplexml-load-string]: ^ in /home/stitchup/public_html/magento/lib/Varien/Simplexml/Config.php on line 510
This is from line 507 onwards of the file config.php - double-dutch to me!!!
public function loadString($string)
{
if (is_string($string)) {
$xml = simplexml_load_string($string, $this->_elementClass);
if ($xml instanceof Varien_Simplexml_Element) {
$this->_xml = $xml;
return true;
}
} else {
Mage::logException(new Exception('"$string" parameter for simplexml_load_string is not a string'));
}
return false;
}
Regards
John
I'm struggling to correct various issues with my Magento based website.
Today I was browsing around the hosted files and noticed the system.log
/public_html/magento/var/log/system.log
This is an error that appears regularly and wonder if it's possible to work out what the heck is wrong?
2015-08-20T18:46:57+00:00 ERR (3): Warning: simplexml_load_string() [function.simplexml-load-string]: ^ in /home/stitchup/public_html/magento/lib/Varien/Simplexml/Config.php on line 510
This is from line 507 onwards of the file config.php - double-dutch to me!!!
public function loadString($string)
{
if (is_string($string)) {
$xml = simplexml_load_string($string, $this->_elementClass);
if ($xml instanceof Varien_Simplexml_Element) {
$this->_xml = $xml;
return true;
}
} else {
Mage::logException(new Exception('"$string" parameter for simplexml_load_string is not a string'));
}
return false;
}
Regards
John