Title: Error report
Last modified: August 31, 2024

---

# Error report

 *  [jhmaths](https://wordpress.org/support/users/jhmaths/)
 * (@jhmaths)
 * [2 years ago](https://wordpress.org/support/topic/error-report-33/)
 * Hi Gazchap
 * Thanks for what seems to be a great plugin on the whole, one of my favourites.
 * Unfortunately just noticed an error report this morning, I’m sure you’ll know
   what all this means and have it sorted in the blink of an eye:
 * **2024-08-31T09:06:43+00:00****Critical** Uncaught Error: Cannot use object of
   type WP_Error as array in /home/customer/www/mightykidssupplements.co.uk/public_html/
   wp-content/plugins/gazchaps-woocommerce-getaddress-io/class.api-client.php:54
   Additional context{ “error”: { “type”: 1, “file”: “/home/customer/www/mightykidssupplements.
   co.uk/public_html/wp-content/plugins/gazchaps-woocommerce-getaddress-io/class.
   api-client.php”, “line”: 54 }, “backtrace”: [ “”, “#0 /home/customer/www/mightykidssupplements.
   co.uk/public_html/wp-content/plugins/gazchaps-woocommerce-getaddress-io/class.
   api-client.php(24): GazChap_WC_GetAddress_Plugin_API::request(‘autocomplete’,‘
   BB186RD’, Array)”, “#1 /home/customer/www/mightykidssupplements.co.uk/public_html/
   wp-content/plugins/gazchaps-woocommerce-getaddress-io/class.common.php(24): GazChap_WC_GetAddress_Plugin_API::
   autocomplete(‘BB186RD’)”, “#2 /home/customer/www/mightykidssupplements.co.uk/
   public_html/wp-content/plugins/gazchaps-woocommerce-getaddress-io/class.checkout.
   php(20): GazChap_WC_GetAddress_Plugin_Common::lookup_postcode(‘BB186RD’, ‘billing’)”,“#
   3 /home/customer/www/mightykidssupplements.co.uk/public_html/wp-includes/class-
   wp-hook.php(324): GazChap_WC_GetAddress_Plugin_Checkout->do_postcode_lookup(”)”,“#
   4 /home/customer/www/mightykidssupplements.co.uk/public_html/wp-includes/class-
   wp-hook.php(348): WP_Hook->apply_filters(”, Array)”, “#5 /home/customer/www/mightykidssupplements.
   co.uk/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)”, “#
   6 /home/customer/www/mightykidssupplements.co.uk/public_html/wp-admin/admin-ajax.
   php(207): do_action(‘wp_ajax_nopriv_…’)”, “#7 {main}”, “thrown” ] }[](https://mightykidssupplements.co.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=fatal-errors-2024-08-31#L3)**
   2024-08-31T09:35:08+00:00****Critical** Uncaught Error: Class “AutomateWoo\DateTime”
   not found in /home/customer/www/mightykidssupplements.co.uk/public_html/wp-content/
   plugins/automatewoo/includes/Jobs/Midnight.php:67 Additional context{ “error”:{“
   type”: 1, “file”: “/home/customer/www/mightykidssupplements.co.uk/public_html/
   wp-content/plugins/automatewoo/includes/Jobs/Midnight.php”, “line”: 67 }, “backtrace”:[“”,“#
   0 /home/customer/www/mightykidssupplements.co.uk/public_html/wp-includes/class-
   wp-hook.php(322): AutomateWoo\Jobs\Midnight->schedule_recurring()”, “#1 /home/
   customer/www/mightykidssupplements.co.uk/public_html/wp-includes/class-wp-hook.
   php(348): WP_Hook->apply_filters(NULL, Array)”, “#2 /home/customer/www/mightykidssupplements.
   co.uk/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)”, “#
   3 /home/customer/www/mightykidssupplements.co.uk/public_html/wp-admin/admin-ajax.
   php(45): do_action(‘admin_init’)”, “#4 {main}”, “thrown” ] }

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [gazchap](https://wordpress.org/support/users/gazchap/)
 * (@gazchap)
 * [2 years ago](https://wordpress.org/support/topic/error-report-33/#post-17993956)
 * Apologies for the delay responding to this, I tried replying while I was away
   on vacation last week but it clearly didn’t work.
 * Anyway, I’ve just pushed a minor update (v3.2.2) which should fix this error,
   at least in the sense that the error itself shouldn’t cause the plugin to fail
   and write an error to the error logs.
 * As to why the error was generated in the first place, are you sure that the API
   key/domain token in your plugin settings is correct and has not expired?
 *  Thread Starter [jhmaths](https://wordpress.org/support/users/jhmaths/)
 * (@jhmaths)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/error-report-33/#post-18054094)
 * Hi Gazchap, thanks for sorting that last issue. I just checked and the API key
   is correct and hasn’t expired. We’ve got another issue now unfortunately. This
   fatal error just occurred, I’m not sure if this is the same thing as before or
   something different?
 * **2024-10-02T09:13:23+00:00****Critical** Uncaught TypeError: Exception::__construct():
   Argument #2 ($code) must be of type int, string given in /home/customer/www/mightykidssupplements.
   co.uk/public_html/wp-content/plugins/gazchaps-woocommerce-getaddress-io/class.
   exception.php:11 Additional context{ “error”: { “type”: 1, “file”: “/home/customer/
   www/mightykidssupplements.co.uk/public_html/wp-content/plugins/gazchaps-woocommerce-
   getaddress-io/class.exception.php”, “line”: 11 }, “backtrace”: [ “”, “#0 /home/
   customer/www/mightykidssupplements.co.uk/public_html/wp-content/plugins/gazchaps-
   woocommerce-getaddress-io/class.exception.php(11): Exception->__construct(‘cURL
   error 6: g…’, ‘http_request_fa…’, NULL)”, “#1 /home/customer/www/mightykidssupplements.
   co.uk/public_html/wp-content/plugins/gazchaps-woocommerce-getaddress-io/class.
   api-client.php(61): GazChap_WC_GetAddress_Plugin_Exception->__construct(Object(
   WP_Error), ‘cURL error 6: g…’, ‘http_request_fa…’)”, “#2 /home/customer/www/mightykidssupplements.
   co.uk/public_html/wp-content/plugins/gazchaps-woocommerce-getaddress-io/class.
   api-client.php(24): GazChap_WC_GetAddress_Plugin_API::request(‘autocomplete’,‘
   E164DQ’, Array)”, “#3 /home/customer/www/mightykidssupplements.co.uk/public_html/
   wp-content/plugins/gazchaps-woocommerce-getaddress-io/class.common.php(24): GazChap_WC_GetAddress_Plugin_API::
   autocomplete(‘E164DQ’)”, “#4 /home/customer/www/mightykidssupplements.co.uk/public_html/
   wp-content/plugins/gazchaps-woocommerce-getaddress-io/class.checkout.php(20):
   GazChap_WC_GetAddress_Plugin_Common::lookup_postcode(‘E164DQ’, ‘billing’)”, “#
   5 /home/customer/www/mightykidssupplements.co.uk/public_html/wp-includes/class-
   wp-hook.php(324): GazChap_WC_GetAddress_Plugin_Checkout->do_postcode_lookup(”)”,“#
   6 /home/customer/www/mightykidssupplements.co.uk/public_html/wp-includes/class-
   wp-hook.php(348): WP_Hook->apply_filters(”, Array)”, “#7 /home/customer/www/mightykidssupplements.
   co.uk/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)”, “#
   8 /home/customer/www/mightykidssupplements.co.uk/public_html/wp-admin/admin-ajax.
   php(192): do_action(‘wp_ajax_gazchap…’)”, “#9 {main}”, “thrown” ] }
 *  Plugin Author [gazchap](https://wordpress.org/support/users/gazchap/)
 * (@gazchap)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/error-report-33/#post-18064855)
 * Apologies for the delay, I’ve been away! This error was caused by a similar issue
   to the previous one, I’ve fixed this in 3.2.3 which I’ve just pushed.
 * However, can you clarify if postcode lookups are still NOT working for you? If
   so, then before I mark this as resolved I’d like to get to the bottom of what’s
   happening with your specific case.

Viewing 3 replies - 1 through 3 (of 3 total)

 The topic ‘Error report’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/gazchaps-woocommerce-getaddress-io.
   svg)
 * [GazChap's WooCommerce getAddress.io Postcode Lookup](https://wordpress.org/plugins/gazchaps-woocommerce-getaddress-io/)
 * [Support Threads](https://wordpress.org/support/plugin/gazchaps-woocommerce-getaddress-io/)
 * [Active Topics](https://wordpress.org/support/plugin/gazchaps-woocommerce-getaddress-io/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/gazchaps-woocommerce-getaddress-io/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/gazchaps-woocommerce-getaddress-io/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [gazchap](https://wordpress.org/support/users/gazchap/)
 * Last activity: [1 year, 11 months ago](https://wordpress.org/support/topic/error-report-33/#post-18064855)
 * Status: not resolved