Error after latest update
-
I applied the latest Woocommerce update to my environment and received this error in my email –
‘
Error Details
=============
An error of type E_ERROR was caused in line 360 of the file /home/mysite/public_html/wp-content/plugins/woocommerce/includes/class-wc-api.php. Error message: Uncaught Error: Class ‘WC_REST_Coupons_V1_Controller’ not found in /home/mysite/public_html/wp-content/plugins/woocommerce/includes/class-wc-api.php:360
Stack trace:
#0 /home/mysite/public_html/wp-includes/class-wp-hook.php(286): WC_API->register_rest_routes(Object(WP_REST_Server))
#1 /home/mysite/public_html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array)
#2 /home/mysite/public_html/wp-includes/plugin.php(465): WP_Hook->do_action(Array)
#3 /home/mysite/public_html/wp-includes/rest-api.php(475): do_action(‘rest_api_init’, Object(WP_REST_Server))
#4 /home/mysite/public_html/wp-includes/rest-api.php(433): rest_get_server()
#5 /home/mysite/public_html/wp-includes/rest-api.php(1394): rest_do_request(Object(WP_REST_Request))
#6 [internal function]: rest_preload_api_request(Array, ‘/wc/v3’)
#7 /home/mysite/public_html/wp-content/plugins/woocommerce-admin/includes/class-wc-admin-loader.php(521): array_reduce(Array, ‘rest_preload_ap…’)
#8 /home/mysite/public_html/wp-include
‘
I’m not experiencing any problems with my site right now. Everything appears to be fine. I didn’t get the WSOD and can access the dashboard and website just fine. My URL is https://www.dtlart.com
-
Hi @katrinadtl, would you mind posting your system status report so we can take a deeper look? You can find it under WooCommerce -> Status in WP-Admin
Sure, here you go.
### WordPress Environment ### WordPress address (URL): https://dtlart.com Site address (URL): https://dtlart.com WC Version: 3.7.0 REST API Version: ? 1.0.2 Log Directory Writable: ? WP Version: 5.2.2 WP Multisite: – WP Memory Limit: 768 MB WP Debug Mode: – WP Cron: ? Language: en_US External object cache: – ### Server Environment ### Server Info: Apache PHP Version: 7.1.30 - We recommend using PHP version 7.2 or above for greater performance and security. How to update your PHP version PHP Post Max Size: 128 MB PHP Time Limit: 300 PHP Max Input Vars: 3000 cURL Version: 7.59.0 OpenSSL/1.0.2r SUHOSIN Installed: – MySQL Version: 5.6.40-84.0-log Max Upload Size: 128 MB Default Timezone is UTC: ? fsockopen/cURL: ? SoapClient: ? DOMDocument: ? GZip: ? Multibyte String: ? Remote Post: ? Remote Get: ? ### Database ### WC Database Version: 3.7.0 WC Database Prefix: wptw_ Total Database Size: 11.43MB Database Data Size: 9.34MB Database Index Size: 2.09MB wptw_woocommerce_sessions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wptw_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wptw_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wptw_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wptw_woocommerce_order_items: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wptw_woocommerce_order_itemmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wptw_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wptw_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wptw_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wptw_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wptw_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wptw_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wptw_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wptw_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wptw_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wptw_comments: Data: 0.36MB + Index: 0.52MB + Engine InnoDB wptw_failed_jobs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wptw_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wptw_mailchimp_carts: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wptw_options: Data: 2.16MB + Index: 0.06MB + Engine InnoDB wptw_postmeta: Data: 3.50MB + Index: 0.28MB + Engine InnoDB wptw_posts: Data: 2.52MB + Index: 0.20MB + Engine InnoDB wptw_queue: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wptw_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wptw_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wptw_term_relationships: Data: 0.06MB + Index: 0.05MB + Engine InnoDB wptw_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wptw_usermeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wptw_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wptw_wc_admin_notes: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wptw_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wptw_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wptw_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wptw_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wptw_wc_order_product_lookup: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wptw_wc_order_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wptw_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wptw_wc_product_meta_lookup: Data: 0.02MB + Index: 0.09MB + Engine InnoDB wptw_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wptw_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wptw_yoast_seo_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wptw_yoast_seo_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB ### Security ### Secure connection (HTTPS): ? Hide errors from visitors: ? ### Active Plugins (21) ### BLB ScriptTagger: by Blue Letter Bible – 1.07 All-in-One WP Migration File Extension: by ServMask Inc. – 1.5 All-in-One WP Migration: by ServMask – 7.4 Better Click To Tweet: by Ben Meredith – 5.8.2 Contact Form 7: by Takayuki Miyoshi – 5.1.4 Flamingo: by Takayuki Miyoshi – 2.0 Health Check & Troubleshooting: by The www.ads-software.com community – 1.3.2 Jetpack by WordPress.com: by Automattic – 7.6 Mailchimp for WooCommerce: by Mailchimp – 2.1.17 – Not tested with the active version of WooCommerce Mailchimp for WordPress: by ibericode – 4.5.3 SG Optimizer: by SiteGround – 5.2.4 Themify Popup: by Themify – 1.1.6 Themify Updater: by Themify – 1.1.3 WooCommerce Blocks: by Automattic – 2.3.0 WooCommerce Admin: by WooCommerce – 0.16.0 – Not tested with the active version of WooCommerce WooCommerce Google Analytics Integration: by WooCommerce – 1.4.11 – Not tested with the active version of WooCommerce WooCommerce Services: by Automattic – 1.21.0 – Not tested with the active version of WooCommerce WooCommerce Square: by WooCommerce – 2.0.1 – Not tested with the active version of WooCommerce WooCommerce: by Automattic – 3.7.0 WordPress Importer: by wordpressdotorg – 0.6.4 Yoast SEO: by Team Yoast – 11.8 – Not tested with the active version of WooCommerce ### Inactive Plugins (0) ### ### Settings ### API Enabled: ? Force SSL: ? Currency: USD ($) Currency Position: left Thousand Separator: , Decimal Separator: . Number of Decimals: 2 Taxonomies: Product Types: external (external) grouped (grouped) simple (simple) variable (variable) Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog) exclude-from-search (exclude-from-search) featured (featured) outofstock (outofstock) rated-1 (rated-1) rated-2 (rated-2) rated-3 (rated-3) rated-4 (rated-4) rated-5 (rated-5) Connected to WooCommerce.com: ? ### WC Pages ### Shop base: #2340 - /shop/ Cart: #2341 - /cart/ Checkout: #2342 - /checkout/ My account: #2343 - /my-account/ Terms and conditions: #2876 - /privacy-policy/ ### Theme ### Name: Themify Simple Child Version: 1.3.4 Author URL: https://www.dtlconsult.com/team/katrina-yancey/ Child Theme: ? Parent Theme Name: Themify Simple Parent Theme Version: 1.6.0 Parent Theme Author URL: https://www.themify.me WooCommerce Support: ? ### Templates ### Overrides: themify-simple-child/woocommerce/cart/cart-totals.php themify-simple-child/woocommerce/cart/cart.php version 3.5.0 is out of date. The core version is 3.7.0 themify-simple-child/woocommerce/cart/proceed-to-checkout-button.php themify-simple-child/woocommerce/checkout/form-coupon.php themify-simple-child/woocommerce/myaccount/form-login.php version 3.5.0 is out of date. The core version is 3.6.0 themify-simple-child/woocommerce/single-product/related.php themify-simple-child/woocommerce/single-product/tabs/additional-information.php themify-simple-child/woocommerce/single-product/tabs/description.php themify-simple-child/woocommerce/single-product/tabs/tabs.php themify-simple-child/woocommerce/single-product/title.php themify-simple-child/woocommerce/single-product/up-sells.php themify-simple-child/woocommerce/single-product-reviews.php version 3.5.0 is out of date. The core version is 3.6.0 Outdated Templates: ? Learn how to update ### Square ### Environment: Production Tokenization Enabled: ? Debug Mode: Off ### Action Scheduler ### Complete: 822 Oldest: 2019-07-12 16:56:55 +0000 Newest: 2019-08-12 16:01:28 +0000 Pending: 4 Oldest: 2019-08-12 16:55:10 +0000 Newest: 2019-08-15 19:10:48 +0000 Canceled: 4 Oldest: 2019-07-24 19:42:05 +0000 Newest: 2019-08-14 20:00:42 +0000 In-progress: 0 Oldest: – Newest: – Failed: 0 Oldest: – Newest: –
Thanks, @katrinadtl, I had a look and everything seems in order on your site. The reported error was perhaps falsely reported by WordPress site health while the update was in progress.
Looking at the reported error there is no line 360 in the WC_API class in WooCommerce 3.7 which again makes me suspect this was reported while the plugin was busy updating. Also visiting your site the API pages load fine https://www.dtlart.com/wp-json/wc/v3 which confirms that the API classes are all loading fine.
Please keep monitoring your site for any issues and do let us know here if something pops up again.
Just FYI, one of my client sites threw the same error. Site seems to be working fine as well.
Thanks a bunch. I thought it was odd that the site was fine, but thought it would be best to report this, as you all know what the code should be. Thanks for taking a look. I’ll file this as unimportant.
Enjoy the rest of your day.
Just throwing my info in to help others that find this thread. I had this error occur on one of my client’s sites as well, down to the same line number (360). Everything seems to be working properly. Although, under System Status, there is a red exclamation point beside WooCommerce Admin. It reads:
WooCommerce Admin by WooCommerce – 0.16.0 ! Not Tested with the active version of WooCommerce
This is the plugin that threw the error for me.
- This reply was modified 5 years, 3 months ago by captconstruct.
I got the same error today while updating. Everything seems to be working, although it struggled to save a new shipping class earlier – not sure if it’s related.
Howdy!
Since WordPress 5.2 there is a built-in feature that detects when a plugin or theme causes a fatal error on your site, and notifies you with this automated email.
In this case, WordPress caught an error with one of your plugins, WooCommerce.
First, visit your website (https://rareout.com/) and check for any visible issues. Next, visit the page where the error was caught (https://rareout.com/wp-admin/themes.php?page=tgmpa-install-plugins&plugin=woocommerce&tgmpa-update=update-plugin&tgmpa-nonce=e0b8285be7) and check for any visible issues.
Please contact your host for assistance with investigating this issue further.
If your site appears broken and you can’t access your dashboard normally, WordPress now has a special “recovery mode”. This lets you safely login to your dashboard and investigate further.
To keep your site safe, this link will expire in 1 day. Don’t worry about that, though: a new link will be emailed to you if the error occurs again after it expires.
Error Details
=============
An error of type E_ERROR was caused in line 360 of the file /home/rareocfh/public_html/wp-content/plugins/woocommerce/includes/class-wc-api.php. Error message: Uncaught Error: Class ‘WC_REST_Coupons_V1_Controller’ not found in /home/rareocfh/public_html/wp-content/plugins/woocommerce/includes/class-wc-api.php:360
Stack trace:
#0 /home/rareocfh/public_html/wp-includes/class-wp-hook.php(286): WC_API->register_rest_routes(Object(WP_REST_Server))
#1 /home/rareocfh/public_html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array)
#2 /home/rareocfh/public_html/wp-includes/plugin.php(465): WP_Hook->do_action(Array)
#3 /home/rareocfh/public_html/wp-includes/rest-api.php(475): do_action(‘rest_api_init’, Object(WP_REST_Server))
#4 /home/rareocfh/public_html/wp-includes/rest-api.php(433): rest_get_server()
#5 /home/rareocfh/public_html/wp-includes/rest-api.php(1394): rest_do_request(Object(WP_REST_Request))
#6 [internal function]: rest_preload_api_request(Array, ‘/wc/v3’)
#7 /home/rareocfh/public_html/wp-content/plugins/woocommerce-admin/includes/class-wc-admin-loader.php(521): array_reduce(Array, ‘rest_preload_ap…’)
#8 /home/rareocfh/public_html/wp-includeplease help with this
I got this same error today when a client tried to purchase a product online and it kept coming up with an error. Then I found that when she was trying to purchase a product, it created 6 user accounts in Stripe through WooCommerce. Has anyone figured out why this is happening?
For what it’s worth, I’ll chime back in with some new insights.
After I experienced this error on my own site, I hesitated to update a live client site. Instead, I updated their Woocommerce in my development environment first. To do so, I followed to same procedures as with my own website – go to Dashboard > Updates and select all of the updates and bulk update.
This time, I got the WSOD and was unable to access the Dashboard or anything else. I examined the debug log and noticed that an error was thrown on a function in the child theme, related to where the Stripe payments button display. This worked fine previously. I commented out this line and copied the plugins folder (not updated) to development and was able to return to the dashboard.
There were all sorts of notices about Woocommerce not being activated. So, I go to Installed Plugins and the plugins that were set to update – Woocommerce, Woocommerce Admin and Woocommerce Blocks – were all deactivated.
I activated them one-at-a-time, starting with Woocommerce. Once activated, I updated them in the same sequence as activation – Woocommerce, Woocommerce Admin, Woocommerce Blocks – and all went well.
It seems that there may be an issue with the order that the updates applied. I’m not certain, btw. But, an exception in one update caused the plugins to get caught in a deactivated state – again, just a guess – until things were corrected.
Afterward, I applied the same logic to the live site and applied each update individually. It went super smooth and I did not receive the line 360 error at all.
Just an additional 2 cents worth of observation. Hope it helps someone.
Yeah, I got this error too… So basically, everything should be fine, right? That’s the general consensus.
</panic>
Gerhard Potgieter
(@kloon)
2 weeks ago
Thanks, @katrinadtl, I had a look and everything seems in order on your site. The reported error was perhaps falsely reported by WordPress site health while the update was in progress.
We have a situation here .website works fine but in admin ens we have issue
WooCommerce database update required
WooCommerce has been updated! To keep things running smoothly, we have to update your database to the newest version. The database update process runs in the background and may take a little while, so please be patient. Advanced users can alternatively update via WP CLI.
Update WooCommerce Database
if we update we get error.
Fatal error: Uncaught RuntimeException: Error saving action: Unable to save action. in C:\wamp\www\wordpress\wp-content\plugins\woocommerce\includes\libraries\action-scheduler\classes\ActionScheduler_wpPostStore.php on line 33
( ! ) RuntimeException: Error saving action: Unable to save action. in C:\wamp\www\wordpress\wp-content\plugins\woocommerce\includes\libraries\action-scheduler\classes\ActionScheduler_wpPostStore.php on line 33All plugins are disabled .theme and woocommerce updated to latest version
Same issue here with 3.7 and I’m also having problems with the Square payment gateway.
I just updated to 3.7 and got this same message from WordPress. I can not see any issues at the moment, back or front end. Are there any things to specifically check for. I am not using square.
Just throwing my observing into this issue.
I got similar error because I did some customization at child theme function file ..
It seems the call functions have been changed with latest update (WooCommerce update)“Uncaught Error: Call to a member function get_billing_country() on null in ”
once commented this snapit code, the admin panel works perfectly
- The topic ‘Error after latest update’ is closed to new replies.