3

I am having problem with Magento log

There are many log that say simplexml_load_string (): parser error. I have spend 4H to find the issue and finally got the issue.

Issue with Magento cache if Configuration cache is enable magento log entry for simplexml_load_string error.

can you suggest me how to fix this issue without disable cache

error log:

2016-12-26T10:29:19+00:00 ERR (3): Warning: simplexml_load_string(): Entity: line 88: parser error : error parsing attribute name  in /var/www/html/bookyourcatalog/lib/Varien/Simplexml/Config.php on line 383
2016-12-26T10:29:19+00:00 ERR (3): Warning: simplexml_load_string(): l/><specificcountry/><debug>0</debug><showmethod>0</showmethod><sort_order/><all  in /var/www/html/bookyourcatalog/lib/Varien/Simplexml/Config.php on line 383
2016-12-26T10:29:19+00:00 ERR (3): Warning: simplexml_load_string():                                                                                ^  in /var/www/html/bookyourcatalog/lib/Varien/Simplexml/Config.php on line 383
2016-12-26T10:29:19+00:00 ERR (3): Warning: simplexml_load_string(): Entity: line 88: parser error : attributes construct error  in /var/www/html/bookyourcatalog/lib/Varien/Simplexml/Config.php on line 383
2016-12-26T10:29:19+00:00 ERR (3): Warning: simplexml_load_string(): l/><specificcountry/><debug>0</debug><showmethod>0</showmethod><sort_order/><all  in /var/www/html/bookyourcatalog/lib/Varien/Simplexml/Config.php on line 383
2016-12-26T10:29:19+00:00 ERR (3): Warning: simplexml_load_string():                                                                                ^  in /var/www/html/bookyourcatalog/lib/Varien/Simplexml/Config.php on line 383
2016-12-26T10:29:19+00:00 ERR (3): Warning: simplexml_load_string(): Entity: line 88: parser error : Couldn't find end of Start Tag all line 88  in /var/www/html/bookyourcatalog/lib/Varien/Simplexml/Config.php on line 383
2016-12-26T10:29:19+00:00 ERR (3): Warning: simplexml_load_string(): l/><specificcountry/><debug>0</debug><showmethod>0</showmethod><sort_order/><all  in /var/www/html/bookyourcatalog/lib/Varien/Simplexml/Config.php on line 383
2016-12-26T10:29:19+00:00 ERR (3): Warning: simplexml_load_string():                                                                                ^  in /var/www/html/bookyourcatalog/lib/Varien/Simplexml/Config.php on line 383
2016-12-26T10:29:19+00:00 ERR (3): Warning: simplexml_load_string(): Entity: line 88: parser error : expected '>'  in /var/www/html/bookyourcatalog/lib/Varien/Simplexml/Config.php on line 383
2016-12-26T10:29:19+00:00 ERR (3): Warning: simplexml_load_string(): <debug>0</debug><showmethod>0</showmethod><sort_order/><allwed_methods>2DA</all  in /var/www/html/bookyourcatalog/lib/Varien/Simplexml/Config.php on line 383
2016-12-26T10:29:19+00:00 ERR (3): Warning: simplexml_load_string():                                                                                ^  in /var/www/html/bookyourcatalog/lib/Varien/Simplexml/Config.php on line 383
2016-12-26T10:29:19+00:00 ERR (3): Warning: simplexml_load_string(): Entity: line 88: parser error : Opening and ending tag mismatch: ups line 88 and all  in /var/www/html/bookyourcatalog/lib/Varien/Simplexml/Config.php on line 383
2016-12-26T10:29:19+00:00 ERR (3): Warning: simplexml_load_string(): <debug>0</debug><showmethod>0</showmethod><sort_order/><allwed_methods>2DA</all  in /var/www/html/bookyourcatalog/lib/Varien/Simplexml/Config.php on line 383
2016-12-26T10:29:19+00:00 ERR (3): Warning: simplexml_load_string():                                                                                ^  in /var/www/html/bookyourcatalog/lib/Varien/Simplexml/Config.php on line 383
2016-12-26T10:29:19+00:00 ERR (3): Warning: simplexml_load_string(): Entity: line 88: parser error : Opening and ending tag mismatch: carriers line 88 and ups  in /var/www/html/bookyourcatalog/lib/Varien/Simplexml/Config.php on line 383
2016-12-26T10:29:19+00:00 ERR (3): Warning: simplexml_load_string(): owmethod>0</showmethod><sort_order/><allwed_methods>2DA</allwed_methods></ups>  in /var/www/html/bookyourcatalog/lib/Varien/Simplexml/Config.php on line 383
2016-12-26T10:29:19+00:00 ERR (3): Warning: simplexml_load_string():                                                                                ^  in /var/www/html/bookyourcatalog/lib/Varien/Simplexml/Config.php on line 383
2016-12-26T10:29:19+00:00 ERR (3): Warning: simplexml_load_string(): Entity: line 88: parser error : error parsing attribute name  in /var/www/html/bookyourcatalog/lib/Varien/Simplexml/Config.php on line 383
2016-12-26T10:29:19+00:00 ERR (3): Warning: simplexml_load_string(): ccountry>IN</specificcountry><showmethod>0</showmethod><sort_order/><free_shippi  in /var/www/html/bookyourcatalog/lib/Varien/Simplexml/Config.php on line 383
2016-12-26T10:29:19+00:00 ERR (3): Warning: simplexml_load_string():                                                                                ^  in /var/www/html/bookyourcatalog/lib/Varien/Simplexml/Config.php on line 383
2016-12-26T10:29:19+00:00 ERR (3): Warning: simplexml_load_string(): Entity: line 88: parser error : attributes construct error  in /var/www/html/bookyourcatalog/lib/Varien/Simplexml/Config.php on line 383
2016-12-26T10:29:19+00:00 ERR (3): Warning: simplexml_load_string(): ccountry>IN</specificcountry><showmethod>0</showmethod><sort_order/><free_shippi  in /var/www/html/bookyourcatalog/lib/Varien/Simplexml/Config.php on line 383
2016-12-26T10:29:19+00:00 ERR (3): Warning: simplexml_load_string():                                                                                ^  in /var/www/html/bookyourcatalog/lib/Varien/Simplexml/Config.php on line 383
2016-12-26T10:29:19+00:00 ERR (3): Warning: simplexml_load_string(): Entity: line 88: parser error : Couldn't find end of Start Tag free_shippi line 88  in /var/www/html/bookyourcatalog/lib/Varien/Simplexml/Config.php on line 383
2016-12-26T10:29:19+00:00 ERR (3): Warning: simplexml_load_string(): ccountry>IN</specificcountry><showmethod>0</showmethod><sort_order/><free_shippi  in /var/www/html/bookyourcatalog/lib/Varien/Simplexml/Config.php on line 383
2016-12-26T10:29:19+00:00 ERR (3): Warning: simplexml_load_string():                                                                                ^  in /var/www/html/bookyourcatalog/lib/Varien/Simplexml/Config.php on line 383
2016-12-26T10:29:19+00:00 ERR (3): Warning: simplexml_load_string(): Entity: line 88: parser error : Opening and ending tag mismatch: default line 2 and carriers  in /var/www/html/bookyourcatalog/lib/Varien/Simplexml/Config.php on line 383
2016-12-26T10:29:19+00:00 ERR (3): Warning: simplexml_load_string(): od>0</showmethod><sort_order/><free_shippi~g_threshold/></matrixrate></carriers>  in /var/www/html/bookyourcatalog/lib/Varien/Simplexml/Config.php on line 383
2016-12-26T10:29:19+00:00 ERR (3): Warning: simplexml_load_string():                                                                                ^  in /var/www/html/bookyourcatalog/lib/Varien/Simplexml/Config.php on line 383
2016-12-26T10:29:19+00:00 ERR (3): Warning: simplexml_load_string(): Entity: line 128: parser error : Opening and ending tag mismatch: config line 1 and default  in /var/www/html/bookyourcatalog/lib/Varien/Simplexml/Config.php on line 383
2016-12-26T10:29:19+00:00 ERR (3): Warning: simplexml_load_string(): st.</p></remindermessage></ipsecuritymaintetance></etipsecurity></default>  in /var/www/html/bookyourcatalog/lib/Varien/Simplexml/Config.php on line 383
2016-12-26T10:29:19+00:00 ERR (3): Warning: simplexml_load_string():                                                                                ^  in /var/www/html/bookyourcatalog/lib/Varien/Simplexml/Config.php on line 383
2016-12-26T10:29:19+00:00 ERR (3): Warning: simplexml_load_string(): Entity: line 128: parser error : Extra content at the end of the document  in /var/www/html/bookyourcatalog/lib/Varien/Simplexml/Config.php on line 383
2016-12-26T10:29:19+00:00 ERR (3): Warning: simplexml_load_string(): st.</p></remindermessage></ipsecuritymaintetance></etipsecurity></default>  in /var/www/html/bookyourcatalog/lib/Varien/Simplexml/Config.php on line 383
2016-12-26T10:29:19+00:00 ERR (3): Warning: simplexml_load_string():                                                                                ^  in /var/www/html/bookyourcatalog/lib/Varien/Simplexml/Config.php on line 383
0

you have invalid config.xml or system.xml file somewhere. maybe custom module you recently installed has it.

ssh to server then:

  1. cd magento_root
    
  2. find app -type f -exec grep -iHn --color=always 'showmethod' {} \;
    

showmethod I took from this line:

2016-12-26T10:29:19+00:00 ERR (3): Warning: simplexml_load_string(): Entity: line 88: parser error : error parsing attribute name in /var/www/html/bookyourcatalog/lib/Varien/Simplexml/Config.php on line 383 2016-12-26T10:29:19+00:00 ERR (3): Warning: simplexml_load_string(): l/><specificcountry/><debug>0</debug><showmethod>0</showmethod><sort_order/><all in /var/www/html/bookyourcatalog/lib/Varien/Simplexml/Config.php on line 383

once you find XML check it for validity, you can use online xml validator or just scan through it and you will find mismatched or missed opening or closing tag.

repeat this operation for every log error line.

  • I will try it.but what is relation with cache because if i disable cache then warnings are hide – Vaibhav Ahalpara Dec 26 '16 at 15:36
  • if you disable cache magento doesn't read modules .xml files. – Konstantin Gerasimov Dec 26 '16 at 15:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.