Support » Plugin: WP Visited Countries Reloaded » WordPress API error

  • Resolved sandervink



    In the inc/class-wpvc-master.php file a call is done to the WordPress API to check the most recent version of this plugin. Sometimes that API returns a error message which results in the following fatal error:

    Fatal error: Uncaught Error: Cannot use object of type WP_Error as array in [...]/wp-visited-countries-reloaded/inc/class-wpvc-master.php:349

    I think this is fixable by adding a is_wp_error() on the $http_answer variable, and if true, just return the current state.

    Could you add this fix (or a similar one) to prevent this fatal error from occurring?


Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WordPress API error’ is closed to new replies.