Plugin error – breaks site
-
You need to check for valid xml on line 144 of class.wp_current_weather.php. It takes down the site otherwise. simplexml_load_string() returns false if the XML is not valid.
Errors generated:
Warning: simplexml_load_string(): Entity: line 2: parser error : Extra content at the end of the document in /home/tulsac/public_html/wp-content/plugins/current-weather/includes/class.wp_current_weather.php on line 144
Warning: simplexml_load_string(): in /home/tulsac/public_html/wp-content/plugins/current-weather/includes/class.wp_current_weather.php on line 144
Warning: simplexml_load_string(): ^ in /home/tulsac/public_html/wp-content/plugins/current-weather/includes/class.wp_current_weather.php on line 144
Notice: Trying to get property of non-object in /home/tulsac/public_html/wp-content/plugins/current-weather/includes/class.wp_current_weather.php on line 147
Fatal error: Call to a member function children() on a non-object in /home/tulsac/public_html/wp-content/plugins/current-weather/includes/class.wp_current_weather.php on line 147
XML Cache contents:
<HEAD><TITLE>Maximum Transaction Time Exceeded</TITLE></HEAD>
<BODY BGCOLOR=”white” FGCOLOR=”black”>
<FONT FACE=”Helvetica,Arial”><B>Maximum Transaction Time Exceeded</B></FONT>
<!—default “Maximum Transaction Time Exceeded” response (504)—>
</BODY>XML Cache contents:
<HEAD><TITLE>Maximum Transaction Time Exceeded</TITLE></HEAD>
<BODY BGCOLOR=”white” FGCOLOR=”black”>
<FONT FACE=”Helvetica,Arial”><B>Maximum Transaction Time Exceeded</B></FONT>
<!—default “Maximum Transaction Time Exceeded” response (504)—>
</BODY>
- The topic ‘Plugin error – breaks site’ is closed to new replies.