• Resolved Dradden

    (@dradden)


    Hello,

    I am getting a warning and fatal error when using this with Genesis.

    The Warning

    file_get_contents(https://api.uptimerobot.com/getMonitors?apiKey=REMOVED&customUptimeRatio=1-7-30-365&format=xml&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

    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.

    Fatal Error

    Uncaught exception 'Exception' with message 'String could not be parsed as XML' 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->__construct('') #1 [internal function]: uptime_robot_nh_widget(Array) #2 /home/wrecked23/public_html/wp-includes/widgets.php(1319): call_user_func_array('uptime_robot_nh...', Array) #3 /home/wrecked23/public_html/wp-content/themes/genesis/lib/structure/sidebar.php(26): dynamic_sidebar('sidebar') #4 [internal function]: genesis_do_sidebar('') #5 /home/wrecked23/public_html/wp-includes/plugin.php(503): call_user_func_array('genesis_do_side...', Array) #6 /home/wrecked23/public_html/wp-content/themes/genesis/sidebar.php(22): do_action('genesis_sidebar') #7 /home/wrecked23/public_html/wp-includes/template.php(555): require_once('/home/wrecked23...') #8 /home/wrecked23/public_html/wp-includes/template.php(514): load_template('/hom in /home/wrecked23/public_html/wp-content/plugins/uptime-robot-monitor/ur-status.php on line 34

    I do have root to the server so if a config change to php or something is needed I can do that.

    This is only for widgets, shortcodes seem to work fine.

    https://www.ads-software.com/plugins/uptime-robot-monitor/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Aphotrax

    (@vlijmen)

    Hi Dradden,

    I will be looking into the reason why you get this error in a widget and hope to push an update that solves this soon. But first of all an advice.

    disable error display
    Added this (or update) to your wp-config.php

    define('WP_DEBUG', true);
    define('WP_DEBUG_LOG', false);
    define('WP_DEBUG_DISPLAY', false);

    This prevents people seeing errors especially on a live site it’s never a good idea to do enable this. The fact your mainkey is in it is something difficult to prevent using the uptimerobot API.

    I’ll keep you informed.

    Regards, Niels

    Plugin Author Aphotrax

    (@vlijmen)

    I just updated the plugin, found out the problem but the solution is just adding the widget by using the shortcode for now.

    Currently I’m preparing a v2 because of uptimerobot changes so have to keep this as a low priority. Still follow my advice to make the earlier mentioned changes to prevent error display.

    Sorry for the inconvinience.

    Regards, Niels

    Thread Starter Dradden

    (@dradden)

    Thanks for this and I look forward to v2!

    Cheers,
    Dradden

    Thread Starter Dradden

    (@dradden)

    I see an update is available so I updated the plugin today and it actually broke my entire site until disabled. Haven’t had time to look at it yet but wanted to let you know.

    Thread Starter Dradden

    (@dradden)

    The error is:

    Fatal error: Call to undefined function get_plugin_data() in wp-content/plugins/uptime-robot-monitor/uptime-robot-nh.php on line 16

    Plugin Author Aphotrax

    (@vlijmen)

    Hi,

    Could you please let me know of 1.7.7.1 solved botth issues?

    Regards,
    Niels

    Thread Starter Dradden

    (@dradden)

    It is working fine now on both issues. Thanks!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Warning And Fatal Error’ is closed to new replies.