• The response from MPGS (line 386 to 429 of woo-mags.php) could really benefit from error handling.

    I would suggest to wrap it with if( !is_wp_error ( $response_json ) ) {...}

    This will prevent fatal error such as this one PHP Fatal error: Uncaught Error: Cannot use object of type WP_Error as array in /home/xxxxx/public_html/wp-content/plugins/woo-mpgs/woo-mpgs.php:405

    • This topic was modified 2 years, 3 months ago by divemasterza.
  • The topic ‘Lack of error handling on MPGS response’ is closed to new replies.