WordPress.org

Support

Support » Plugins and Hacks » [Plugin: Geolocation] fatal error (another)

[Plugin: Geolocation] fatal error (another)

Viewing 4 replies - 1 through 4 (of 4 total)
  • Since $result contained:

    WP_Error Object ( [errors] => Array ( [http_request_failed] => Array ( [0] => Connection time-out ) ) [error_data] => Array ( ) )

    I’ve inserted at line 509:

    if (isset($result['error']))
    	return print_r($result, true);

    In the above replace ‘error’ by ‘errors’.

    Since the above is not working, I am trying this now:

    if (gettype($result) == 'WP_Error')
    	return print_r($result, true);

    Still not fixed 🙁 maybe this works:

    if (is_wp_error($result))
    	return print_r($result, true);

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: Geolocation] fatal error (another)’ is closed to new replies.