{"id":6681952,"date":"2015-10-24T21:18:07","date_gmt":"2015-10-24T21:18:07","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/warning-and-fatal-error-10\/"},"modified":"2016-08-30T19:29:35","modified_gmt":"2016-08-30T19:29:35","slug":"warning-and-fatal-error-10","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/warning-and-fatal-error-10\/","title":{"rendered":"Warning And Fatal Error"},"content":{"rendered":"<p>Hello,<\/p>\n<p>I am getting a warning and fatal error when using this with Genesis.<\/p>\n<p><strong>The Warning<\/strong><\/p>\n<p><code>file_get_contents(http:\/\/api.uptimerobot.com\/getMonitors?apiKey=REMOVED&amp;customUptimeRatio=1-7-30-365&amp;format=xml&amp;monitors=sidebar): failed to open stream: HTTP request failed! HTTP\/1.1 500 Internal Server Error in \/home\/wrecked23\/public_html\/wp-content\/plugins\/uptime-robot-monitor\/ur-status.php on line 33<\/code><\/p>\n<p>Note: This warning includes the main key so if somebody else runs into this on a live site it would kinda suck since it is the master for their account.<\/p>\n<p><strong>Fatal Error<\/strong><\/p>\n<p><code>Uncaught exception &#039;Exception&#039; with message &#039;String could not be parsed as XML&#039; in \/home\/wrecked23\/public_html\/wp-content\/plugins\/uptime-robot-monitor\/ur-status.php:34 Stack trace: #0 \/home\/wrecked23\/public_html\/wp-content\/plugins\/uptime-robot-monitor\/ur-status.php(34): SimpleXMLElement-&gt;__construct(&#039;&#039;) #1 [internal function]: uptime_robot_nh_widget(Array) #2 \/home\/wrecked23\/public_html\/wp-includes\/widgets.php(1319): call_user_func_array(&#039;uptime_robot_nh...&#039;, Array) #3 \/home\/wrecked23\/public_html\/wp-content\/themes\/genesis\/lib\/structure\/sidebar.php(26): dynamic_sidebar(&#039;sidebar&#039;) #4 [internal function]: genesis_do_sidebar(&#039;&#039;) #5 \/home\/wrecked23\/public_html\/wp-includes\/plugin.php(503): call_user_func_array(&#039;genesis_do_side...&#039;, Array) #6 \/home\/wrecked23\/public_html\/wp-content\/themes\/genesis\/sidebar.php(22): do_action(&#039;genesis_sidebar&#039;) #7 \/home\/wrecked23\/public_html\/wp-includes\/template.php(555): require_once(&#039;\/home\/wrecked23...&#039;) #8 \/home\/wrecked23\/public_html\/wp-includes\/template.php(514): load_template(&#039;\/hom in \/home\/wrecked23\/public_html\/wp-content\/plugins\/uptime-robot-monitor\/ur-status.php on line 34<\/code><\/p>\n<p>I do have root to the server so if a config change to php or something is needed I can do that.<\/p>\n<p>This is only for widgets, shortcodes seem to work fine.<\/p>\n<p>https:\/\/wordpress.org\/plugins\/uptime-robot-monitor\/<\/p>\n","protected":false},"template":"","class_list":["post-6681952","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/6681952","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/6681952\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=6681952"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}