Woocommerce Fatal Error
-
Hi,
I would like to ask for assistance regarding Woocommerce Fatal Error. Recently we are getting this “CRITICAL Uncaught TypeError: method_exists(): Argument #1 ($object_or_class) must be of type object|string, int given in /wp-content/plugins/woocommerce/includes/class-wc-install.php:708”
We are not sure how did this occur. Another thing I would like to ask is the latest Woocommerce plugin compatible with the latest version of php(PHP 8)?
I’ve seen related issue in the other thread and they had it resolved by downgrading the php version. But in our case, we don’t want to downgrade the php version. I just hope woocommerce is compatible with php 8.
-
is the latest Woocommerce plugin compatible with the latest version of php(PHP 8)?
Yes, it is fully compatible. In the cases where it needed to be downgraded that has always been due to other incompatible tools (other plugins) interfering.
Recently we are getting this “CRITICAL Uncaught TypeError: method_exists(): Argument #1 ($object_or_class) must be of type object|string, int given in /wp-content/plugins/woocommerce/includes/class-wc-install.php:708”
If you are using any custom code on your site can you please disable those and check if the issue persists?
In your response please share a copy of your site’s System Status. You can find it via WooCommerce > Status. Select “Get system report” and then “Copy for support”. Once you’ve done that, paste it here in your response.
@margaretwporg here is the system status
### WordPress Environment ### WordPress address (URL): https://www.thehouseofmouth.com.au Site address (URL): https://www.thehouseofmouth.com.au WC Version: 6.5.1 REST API Version: ? 6.5.1 WC Blocks Version: ? 7.4.3 Action Scheduler Version: ? 3.4.0 Log Directory Writable: ? WP Version: ? 5.9.3 - There is a newer version of WordPress available (6.0) WP Multisite: – WP Memory Limit: 512 MB WP Debug Mode: – WP Cron: ? Language: en_AU External object cache: – ### Server Environment ### Server Info: Apache PHP Version: 8.0.17 PHP Post Max Size: 100 MB PHP Time Limit: 3600 PHP Max Input Vars: 10000 cURL Version: 7.74.0 OpenSSL/1.1.1n SUHOSIN Installed: – MySQL Version: 5.7.37-40-log Max Upload Size: 50 MB Default Timezone is UTC: ? fsockopen/cURL: ? SoapClient: ? DOMDocument: ? GZip: ? Multibyte String: ? Remote Post: ? Remote Get: ? ### Database ### WC Database Version: 6.5.1 WC Database Prefix: wp_ Total Database Size: 413.55MB Database Data Size: 275.40MB Database Index Size: 138.15MB wp_woocommerce_sessions: Data: 3.02MB + Index: 0.06MB + Engine InnoDB wp_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_woocommerce_order_items: Data: 2.52MB + Index: 1.52MB + Engine InnoDB wp_woocommerce_order_itemmeta: Data: 15.55MB + Index: 12.03MB + Engine InnoDB wp_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_payment_tokenmeta: Data: 0.08MB + Index: 0.09MB + Engine InnoDB wp_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB cerber_acl: Data: 0.02MB + Index: 0.02MB + Engine InnoDB cerber_blocks: Data: 0.02MB + Index: 0.00MB + Engine InnoDB cerber_countries: Data: 0.02MB + Index: 0.00MB + Engine InnoDB cerber_lab: Data: 0.02MB + Index: 0.00MB + Engine InnoDB cerber_lab_ip: Data: 0.02MB + Index: 0.00MB + Engine InnoDB cerber_lab_net: Data: 0.02MB + Index: 0.02MB + Engine InnoDB cerber_log: Data: 2.52MB + Index: 0.81MB + Engine InnoDB cerber_qmem: Data: 0.02MB + Index: 0.02MB + Engine InnoDB cerber_traffic: Data: 6.52MB + Index: 0.28MB + Engine InnoDB wp_actionscheduler_actions: Data: 9.02MB + Index: 11.02MB + Engine InnoDB wp_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_actionscheduler_logs: Data: 6.02MB + Index: 5.03MB + Engine InnoDB wp_addonlibrary_addons: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_addonlibrary_categories: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_cerber_files: Data: 21.59MB + Index: 0.00MB + Engine InnoDB wp_cerber_sets: Data: 1.52MB + Index: 0.00MB + Engine InnoDB wp_cerber_uss: Data: 0.08MB + Index: 0.02MB + Engine InnoDB wp_commentmeta: Data: 0.39MB + Index: 0.42MB + Engine InnoDB wp_comments: Data: 10.52MB + Index: 10.09MB + Engine InnoDB wp_e_events: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_e_notes: Data: 0.02MB + Index: 0.17MB + Engine InnoDB wp_e_notes_users_relations: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_e_submissions: Data: 0.02MB + Index: 0.27MB + Engine InnoDB wp_e_submissions_actions_log: Data: 0.02MB + Index: 0.11MB + Engine InnoDB wp_e_submissions_values: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_gf_addon_feed: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_gf_draft_submissions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_gf_entry: Data: 0.50MB + Index: 0.13MB + Engine InnoDB wp_gf_entry_meta: Data: 1.52MB + Index: 2.05MB + Engine InnoDB wp_gf_entry_notes: Data: 0.36MB + Index: 0.14MB + Engine InnoDB wp_gf_form: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_gf_form_meta: Data: 0.25MB + Index: 0.00MB + Engine InnoDB wp_gf_form_revisions: Data: 0.30MB + Index: 0.03MB + Engine InnoDB wp_gf_form_view: Data: 0.14MB + Index: 0.13MB + Engine InnoDB wp_gf_rest_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_grp_google_place: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_grp_google_review: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_mailchimp_carts: Data: 1.02MB + Index: 0.00MB + Engine InnoDB wp_mailchimp_jobs: Data: 2.52MB + Index: 0.00MB + Engine InnoDB wp_options: Data: 16.23MB + Index: 1.73MB + Engine InnoDB wp_pmxe_exports: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_pmxe_google_cats: Data: 0.39MB + Index: 0.00MB + Engine InnoDB wp_pmxe_posts: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_pmxe_templates: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_postmeta: Data: 88.58MB + Index: 70.20MB + Engine InnoDB wp_posts: Data: 7.36MB + Index: 3.70MB + Engine InnoDB wp_redirection_404: Data: 0.23MB + Index: 0.13MB + Engine InnoDB wp_redirection_groups: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_redirection_items: Data: 0.08MB + Index: 0.09MB + Engine InnoDB wp_redirection_logs: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_relevanssi: Data: 1.52MB + Index: 1.27MB + Engine InnoDB wp_relevanssi_log: Data: 0.27MB + Index: 0.22MB + Engine InnoDB wp_relevanssi_stopwords: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_social_users: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_termmeta: Data: 0.25MB + Index: 0.25MB + Engine InnoDB wp_terms: Data: 0.06MB + Index: 0.03MB + Engine InnoDB wp_term_relationships: Data: 0.38MB + Index: 0.28MB + Engine InnoDB wp_term_taxonomy: Data: 0.08MB + Index: 0.06MB + Engine InnoDB wp_usermeta: Data: 7.52MB + Index: 7.03MB + Engine InnoDB wp_users: Data: 0.31MB + Index: 0.28MB + Engine InnoDB wp_wc_admin_notes: Data: 0.06MB + Index: 0.00MB + Engine InnoDB wp_wc_admin_note_actions: Data: 0.05MB + Index: 0.02MB + Engine InnoDB wp_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wc_customer_lookup: Data: 1.52MB + Index: 0.42MB + Engine InnoDB wp_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_order_coupon_lookup: Data: 0.11MB + Index: 0.13MB + Engine InnoDB wp_wc_order_product_lookup: Data: 1.52MB + Index: 1.05MB + Engine InnoDB wp_wc_order_stats: Data: 1.52MB + Index: 0.61MB + Engine InnoDB wp_wc_order_tax_lookup: Data: 0.45MB + Index: 0.34MB + Engine InnoDB wp_wc_product_attributes_lookup: Data: 0.05MB + Index: 0.05MB + Engine InnoDB wp_wc_product_download_directories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_product_meta_lookup: Data: 0.28MB + Index: 0.53MB + Engine InnoDB wp_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_zapier_history: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wdr_order_discounts: Data: 0.08MB + Index: 0.00MB + Engine InnoDB wp_wdr_order_item_discounts: Data: 0.09MB + Index: 0.00MB + Engine InnoDB wp_wdr_rules: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wpml_mails: Data: 53.02MB + Index: 0.00MB + Engine InnoDB wp_yith_wapo_addons: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_yith_wapo_blocks: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_yith_wapo_groups: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_yith_wapo_types: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_yith_wccl_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_yoast_indexable: Data: 5.52MB + Index: 3.50MB + Engine InnoDB wp_yoast_indexable_hierarchy: Data: 0.33MB + Index: 0.44MB + Engine InnoDB wp_yoast_migrations: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_yoast_primary_term: Data: 0.13MB + Index: 0.16MB + Engine InnoDB wp_yoast_seo_links: Data: 0.31MB + Index: 0.34MB + Engine InnoDB wp_yoast_seo_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB ### Post Type Counts ### acf: 5 acf-field: 234 acf-field-group: 16 attachment: 3851 cwginstocknotifier: 79 elementor_library: 67 faq-item: 5 hmc_question: 29 locations: 99 nav_menu_item: 245 oembed_cache: 5 page: 37 post: 35 product: 814 product_variation: 1339 revision: 100 shop_coupon: 35 shop_order: 8836 shop_order_refund: 99 shop_quote: 30 team: 9 ### Security ### Secure connection (HTTPS): ? Hide errors from visitors: ? ### Active Plugins (43) ### Gravity Forms: by Gravity Forms – 2.6.3 ACF Content Analysis for Yoast SEO: by Thomas Kr?ftner ViktorFroberg marol87 pekz0r angrycreative Team Yoast – 3.0.1 Advanced Custom Fields PRO: by Delicious Brains – 5.12.2 Afterpay Gateway for WooCommerce: by Afterpay – 3.4.1 Autoship Cloud powered by QPilot: by Patterns In the Cloud LLC – 2.3.0 Back In Stock Notifier for WooCommerce | WooCommerce Waitlist Pro: by codewoogeek – 2.7 Categories Images: by Muhammad El Zahlan – 3.0.1 Custom Post Type UI: by WebDevStudios – 1.12.1 Yoast Duplicate Post: by Enrico Battocchi & Team Yoast – 4.4 Elementor Pro: by Elementor.com – 3.7.1 Elementor: by Elementor.com – 3.6.5 Essential Addons for Elementor: by WPDeveloper – 5.1.4 Five by Five Elementor Extensions: by Five by Five – 1.2.0 Five by Five Form Steps: by Five by Five – 1.0 Five by Five Media Boxes: by Five by Five – 4.0 Google Reviews Business: by RichPlugins – 1.4 Gravity Forms Mailchimp Add-On: by Gravity Forms – 5.1 Juicer: by saas.group LLC – 1.9.3 Mailchimp for WooCommerce: by Mailchimp – 2.6.2 Nextend Social Login: by Nextendweb – 3.1.4 Facebook for WordPress: by Facebook – 3.0.6 Redirection: by John Godley – 5.2.3 Relevanssi Live Ajax Search: by Mikko Saari – 1.2.2 Relevanssi: by Mikko Saari – 4.16.0 String Locator: by Clorith – 2.5.0 Unlimited Elements for Elementor: by Unlimited Elements – 1.5.14 CTX Feed Pro: by WebAppick – 5.3.28 Woo Discount Rules PRO 2.0: by Flycart – 2.4.1 Woo Discount Rules: by Flycart – 2.4.1 WooCommerce Stripe Gateway: by WooCommerce – 6.4.0 WooCommerce Google Analytics Integration: by WooCommerce – 1.5.9 WooCommerce Multi Currency Premium: by VillaTheme – 2.1.9.4 StarShipIT Services: by StarShipIT – 3.0.0 WooCommerce Zapier: by OM4 Software – 2.3.0 WooCommerce: by Automattic – 6.5.1 Yoast SEO: by Team Yoast – 18.9 WP Cerber Security, Anti-spam & Malware Scan: by Cerber Tech Inc. – 9.0 WP Crontrol: by John Blackbourn & crontributors – 1.12.1 Sequential Order Numbers for WooCommerce: by WebToffee – 1.4.6 YITH WooCommerce Product Add-ons & Extra Options: by YITH – 2.10.0 Yotpo Social Reviews for Woocommerce: by Yotpo – 1.1.8 Zapier for WordPress: by Zapier – 1.0.4 Zip - WooCommerce: by Zip – 2.3.13 ### Inactive Plugins (3) ### WooCommerce Address Validation: by SkyVerge – 2.8.1 WooCommerce Subscriptions: by WooCommerce – 3.0.13 Xsellco Google Campaigns: by xSellco – 1.0.1 ### Dropin Plugins (1) ### advanced-cache.php: advanced-cache.php ### Must Use Plugins (8) ### FF Plugin Disabler: by Five by Five – 1.0 FF SSO: by Five by Five – 1.0 Force Strong Passwords - WPE Edition: by Jason Cosper – 1.8.0 WPE ElasticPress Autosuggest Logger: by WP Engine – 1.0.0 WP Engine Cache Plugin: by WP Engine – 1.0.9 WP Engine Seamless Login Plugin: by WP Engine – 1.5.5 WP Engine Security Auditor: by wpengine – 1.0.10 WP Engine System: by WP Engine – 5.0.1 ### Settings ### API Enabled: ? Force SSL: – Currency: AUD ($) Currency Position: left Thousand Separator: , Decimal Separator: . Number of Decimals: 2 Taxonomies: Product Types: external (external) grouped (grouped) simple (simple) subscription (subscription) variable (variable) variable subscription (variable-subscription) woosb (woosb) 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: – Enforce Approved Product Download Directories: – ### WC Pages ### Shop base: #4374 - /products/ Cart: #654 - /cart/ Checkout: #655 - /checkout/ My account: #656 - /my-account/ Terms and conditions: ? Page not set ### Theme ### Name: The House Of Mouth Version: 4.0.2 Author URL: https://www.fivebyfive.com.au/ Child Theme: ? Parent Theme Name: Genesis Parent Theme Version: 3.3.5 Parent Theme Author URL: https://www.studiopress.com/ WooCommerce Support: ? ### Templates ### Overrides: thom/woocommerce/cart/mini-cart.php version 3.7.0 is out of date. The core version is 5.2.0 Outdated Templates: ? Learn how to update ### Action Scheduler ### Cancelled: 13 Oldest: 2022-05-03 12:27:47 +0000 Newest: 2022-05-30 01:41:21 +0000 Complete: 20,817 Oldest: 2022-04-30 01:08:16 +0000 Newest: 2022-05-31 01:04:32 +0000 Failed: 7 Oldest: 2021-10-23 01:42:03 +0000 Newest: 2022-03-31 03:47:06 +0000 Pending: 3 Oldest: 2022-05-31 01:09:27 +0000 Newest: 2022-05-31 14:50:11 +0000 ### WooCommerce Zapier ### Database Version: ? 14 Detailed Logging Enabled: No Legacy Mode Disabled: ? Yes SSL: ? Yes REST API Authentication Key(s): ? 46 Task History Record Count: ? 129 Webhook #1: WooCommerce Zapier - Status: active - Trigger: customer.created - Delivery Count: 129 ### Status report information ### Generated at: 2022-05-31 11:08:17 +10:00
Hi @problematichild,
Thanks for sending over your system status.
In order to figure out what’s causing the fatal error, you may want to proceed as follows:
➛ Update your theme and plugins
➛ Run a conflict testFor more detailed instructions about conflict testing, check out this – How to test for plugin and theme conflicts.
WP Version: ? 5.9.3 - There is a newer version of WordPress available (6.0)
It is also a good idea to update WordPress to the latest version. We do highly recommend a staging site for these tests and updates so that your live site remains unaffected. A staging site is a clone or copy of the live site, used for testing.
Many hosts provide staging facilities, so it’s worth checking in with your hosting company. It’s also possible to do it using the free WP Staging plugin. Link: https://www.ads-software.com/plugins/wp-staging/
Let us know how it goes.
Hi there,
It’s been a while since we last heard from you, so I’m marking this thread as resolved.
Hopefully, you’ve been able to resolve this, but we’ll be here if and/or when you are ready to continue.
Cheers.
- The topic ‘Woocommerce Fatal Error’ is closed to new replies.