• Error after update WordPress to latest version

    2023-09-22T23:11:27+00:00 CRITICAL Uncaught Error: Call to a member function get_meta() on bool in /home/admin/web/website/public_html/content/plugins/coinbase-commerce/class-wc-gateway-coinbase.php:382
    Stack trace: 0 /home/admin/web/website/public_html/content/plugins/coinbase-commerce/class-wc-gateway-coinbase.php(332): WC_Gateway_Coinbase->_update_order_status() 1 /home/admin/web/website/public_html/wp-includes/class-wp-hook.php(310): WC_Gateway_Coinbase->handle_webhook() 2 /home/admin/web/website/public_html/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters() 3 /home/admin/web/website/public_html/wp-includes/plugin.php(517): WP_Hook->do_action() 4 /home/admin/web/website/public_html/content/plugins/woocommerce/includes/class-wc-api.php(161): do_action() 5 /home/admin/web/website/public_html/wp-includes/class-wp-hook.php(310): WC_API->handle_api_requests() 6 /home/admin/web/website/public_html/wp-includes/class-wp-hook.php in /home/admin/web/website/public_html/content/plugins/coinbase-commerce/class-wc-gateway-coinbase.php on line 382

Viewing 1 replies (of 1 total)
  • Thread Starter Marcus Karlos

    (@power2009)

    I have resolved the issue. The root cause was that the plugin was set to automatically change the order status based on a timer, and I had deleted the order manually before this timer expired. As a result, the plugin was throwing an error because it didn’t know which order to update or what status to change it to. The problem can be fixed by simply adding a check in the initial code. When the plugin can’t find the order, it should not generate a critical error but rather should check if the order exists. If it does exist, then it should proceed with its function. If it doesn’t find the order, it should just ignore it, understanding that it has already been manually deleted. This logic needs to be implemented in the code.

Viewing 1 replies (of 1 total)
  • The topic ‘CRITICAL Uncaught Error: Call to a member function get_meta() on bool in’ is closed to new replies.