Woocommerce not working in php version 8
-
Hello Admin,
I am getting this error on my WP Engine logs when I upgrade to php version 8.
It seems WooCommerce is not working for me for PHP 8. I would appreciate your help in resolving this.Error Message:
PHP Fatal error: Uncaught TypeError: in_array(): Argument #2 ($haystack) must be of type array, null given in /wp-content/plugins/woocommerce/packages/woocommerce-admin/src/Features/Features.php:80\nStack trace:\n#0 /wp-content/plugins/woocommerce/packages/woocommerce-admin/src/Features/Features.php(80): in_array('coupons', NULL, true)\n#1 /wp-content/plugins/woocommerce/packages/woocommerce-admin/src/Features/Features.php(126): Automattic\\WooCommerce\\Admin\\Features\\Features::exists('coupons')\n#2 /wp-content/plugins/woocommerce/packages/woocommerce-admin/includes/connect-existing-pages.php(161): Automattic\\WooCommerce\\Admin\\Features\\Features::is_enabled('coupons')\n#3 /wp-content/plugins/woocommerce/packages/woocommerce-admin/src/Loader.php(302): require_once('/nas/content/li...')\n#4 /wp-includes/class-wp-hook.php(308): Automattic\\WooCommerce\\Admin\\Loader::register_page_handler('')\n#5 /wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array)\n#6 /wp-includes/plugin.php(517): WP_Hook->do_action(Array)\n#7 /wp-admin/includes/menu.php(155): do_action('admin_menu', '')\n#8 /wp-admin/menu.php(428): require_once('/nas/content/li...')\n#9 /wp-admin/admin.php(158): require('/nas/content/li...')\n#10 /wp-admin/tools.php(40): require_once('/nas/content/li...')\n#11 {main}\n thrown in /wp-content/plugins/woocommerce/packages/woocommerce-admin/src/Features/Features.php on line 80
System Report:
### WordPress Environment ### WordPress address (URL): [hidden] Site address (URL): [hidden] WC Version: 7.7.0 REST API Version: ? 7.7.0 WC Blocks Version: ? 10.0.4 Action Scheduler Version: ? 3.5.4 Log Directory Writable: ? WP Version: 6.2.2 WP Multisite: – WP Memory Limit: 512 MB WP Debug Mode: – WP Cron: ? Language: en_US External object cache: ? ### Server Environment ### Server Info: Apache PHP Version: 8.0.28 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.41-44-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: 7.7.0 WC Database Prefix: wp_ Total Database Size: 502.32MB Database Data Size: 328.01MB Database Index Size: 174.31MB wp_woocommerce_sessions: Data: 66.09MB + Index: 2.02MB + 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: 3.52MB + Index: 1.52MB + Engine InnoDB wp_woocommerce_order_itemmeta: Data: 24.56MB + Index: 24.09MB + Engine InnoDB wp_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_woocommerce_shipping_zone_locations: Data: 0.06MB + Index: 0.03MB + 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.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_actionscheduler_actions: Data: 1.52MB + Index: 0.78MB + 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: 0.47MB + Index: 0.41MB + Engine InnoDB wp_berocket_termmeta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_cli_cookie_scan: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_cli_cookie_scan_categories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_cli_cookie_scan_cookies: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_cli_cookie_scan_url: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_cli_scripts: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_comments: Data: 3.28MB + Index: 3.13MB + Engine InnoDB wp_ee_products_sync_list: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_ee_product_sync_call: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_ee_product_sync_data: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_ee_product_sync_profile: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_ee_prouct_pre_sync_data: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_eg_galleries: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_formlift_impressions: Data: 110.66MB + Index: 59.64MB + Engine InnoDB wp_formlift_sessions: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_formlift_submissions: Data: 0.22MB + Index: 0.13MB + 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.02MB + Index: 0.03MB + Engine InnoDB wp_gf_entry_meta: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_gf_entry_notes: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_gf_form: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_gf_form_meta: Data: 0.08MB + Index: 0.00MB + Engine InnoDB wp_gf_form_revisions: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_gf_form_view: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_gf_rest_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_hfcm_scripts: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_inf_infusionsoft_stats: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_litespeed_url: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_litespeed_url_file: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_loginizer_logs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_newsletter: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_newsletter_emails: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_newsletter_sent: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_newsletter_stats: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_newsletter_user_logs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_nextend2_image_storage: Data: 0.05MB + Index: 0.02MB + Engine InnoDB wp_nextend2_section_storage: Data: 0.03MB + Index: 0.06MB + Engine InnoDB wp_nextend2_smartslider3_generators: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_nextend2_smartslider3_sliders: Data: 0.11MB + Index: 0.03MB + Engine InnoDB wp_nextend2_smartslider3_sliders_xref: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_nextend2_smartslider3_slides: Data: 0.05MB + Index: 0.13MB + Engine InnoDB wp_options: Data: 3.48MB + Index: 0.16MB + Engine InnoDB wp_postmeta: Data: 60.59MB + Index: 51.19MB + Engine InnoDB wp_posts: Data: 9.52MB + Index: 3.73MB + Engine InnoDB wp_prflxtrflds_fields_meta: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_redirection_404: Data: 1.14MB + Index: 0.34MB + Engine InnoDB wp_redirection_groups: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_redirection_items: Data: 0.02MB + Index: 0.09MB + Engine InnoDB wp_redirection_logs: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_revslider_css: Data: 0.13MB + Index: 0.02MB + Engine InnoDB wp_revslider_css_bkp: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_revslider_layer_animations: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_revslider_layer_animations_bkp: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_revslider_navigations: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_revslider_navigations_bkp: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_revslider_sliders: Data: 0.06MB + Index: 0.02MB + Engine InnoDB wp_revslider_sliders_bkp: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_revslider_slides: Data: 0.19MB + Index: 0.02MB + Engine InnoDB wp_revslider_slides_bkp: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_revslider_static_slides: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_revslider_static_slides_bkp: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_signups: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_simple_history: Data: 0.14MB + Index: 0.09MB + Engine InnoDB wp_simple_history_contexts: Data: 1.52MB + Index: 0.55MB + Engine InnoDB wp_smush_dir_images: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_termmeta: Data: 0.22MB + Index: 0.33MB + Engine InnoDB wp_terms: Data: 0.13MB + Index: 0.16MB + Engine InnoDB wp_term_relationships: Data: 0.44MB + Index: 0.39MB + Engine InnoDB wp_term_taxonomy: Data: 0.13MB + Index: 0.14MB + Engine InnoDB wp_usermeta: Data: 8.50MB + Index: 7.98MB + Engine InnoDB wp_users: Data: 0.31MB + Index: 0.33MB + Engine InnoDB wp_wc_admin_notes: Data: 0.06MB + Index: 0.00MB + Engine InnoDB wp_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_cancel_orders: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wc_customer_lookup: Data: 0.27MB + Index: 0.23MB + Engine InnoDB wp_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_order_product_lookup: Data: 3.52MB + Index: 5.03MB + Engine InnoDB wp_wc_order_stats: Data: 1.52MB + Index: 0.63MB + Engine InnoDB wp_wc_order_tax_lookup: Data: 1.52MB + Index: 0.45MB + Engine InnoDB wp_wc_product_attributes_lookup: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_product_download_directories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_product_meta_lookup: Data: 0.27MB + Index: 0.47MB + 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_wfblockediplog: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wfblocks7: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_wfconfig: Data: 2.42MB + Index: 0.00MB + Engine InnoDB wp_wfcrawlers: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wffilechanges: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wffilemods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wfhits: Data: 1.02MB + Index: 0.20MB + Engine InnoDB wp_wfhoover: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wfissues: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_wfknownfilelist: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wflivetraffichuman: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wflocs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wflogins: Data: 0.44MB + Index: 0.16MB + Engine InnoDB wp_wfls_2fa_secrets: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wfls_role_counts: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wfls_settings: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wfnotifications: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wfpendingissues: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_wfreversecache: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wfsnipcache: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_wfstatus: Data: 0.13MB + Index: 0.11MB + Engine InnoDB wp_wftrafficrates: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wfwafconfig: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wpforms_entries: Data: 1.52MB + Index: 0.02MB + Engine InnoDB wp_wpforms_entry_fields: Data: 0.36MB + Index: 0.38MB + Engine InnoDB wp_wpforms_entry_meta: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wpforms_tasks_meta: Data: 0.06MB + Index: 0.00MB + Engine InnoDB wp_wpf_filters: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wpf_meta_data: Data: 1.52MB + Index: 1.28MB + Engine InnoDB wp_wpf_meta_keys: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wpf_meta_values: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wpf_meta_values_bk: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wpf_modules: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wpf_modules_type: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wpf_usage_stat: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wpmailsmtp_debug_events: Data: 0.11MB + Index: 0.00MB + Engine InnoDB wp_wpmailsmtp_emails_log: Data: 6.52MB + Index: 1.64MB + Engine InnoDB wp_wpmailsmtp_tasks_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wpr_rocket_cache: Data: 1.52MB + Index: 2.36MB + Engine InnoDB wp_wpr_rucss_used_css: Data: 0.02MB + Index: 0.09MB + Engine InnoDB wp_wt_iew_action_history: Data: 0.09MB + Index: 0.00MB + Engine InnoDB wp_wt_iew_cron: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wt_iew_ftp: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wt_iew_mapping_template: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_xyz_ips_short_code: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_yith_wcwl: Data: 0.39MB + Index: 0.17MB + Engine InnoDB wp_yith_wcwl_lists: Data: 0.28MB + Index: 0.22MB + Engine InnoDB wp_yoast_indexable: Data: 3.41MB + Index: 0.89MB + Engine InnoDB wp_yoast_indexable_hierarchy: Data: 0.17MB + Index: 0.27MB + Engine InnoDB wp_yoast_migrations: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_yoast_primary_term: Data: 0.05MB + Index: 0.03MB + Engine InnoDB wp_yoast_seo_links: Data: 1.48MB + Index: 0.41MB + Engine InnoDB ### Post Type Counts ### acf-field: 1 acf-field-group: 1 acoplw_badges: 1 acoplw_prod_list: 1 aoc_popup: 1 attachment: 3027 br_product_filter: 1 cookielawinfo: 6 custom_css: 4 customize_changeset: 50 ibfw_product_label: 1 infusion_form: 9 nav_menu_item: 59 page: 59 phoe_badge: 1 popup: 2 popup_theme: 8 post: 15 post-wcode: 9 product: 2408 pw_gift_rule: 12 revision: 4 sa_slider: 3 shop_coupon: 6 shop_order: 8574 shop_order_refund: 8 viwec_template: 14 wc_conditional_fee: 2 wp_global_styles: 1 wpcf7_contact_form: 3 wpforms: 5 yith_wcan_preset: 1 ### Security ### Secure connection (HTTPS): ? Hide errors from visitors: ? ### Active Plugins (68) ### ManageWP - Worker: by GoDaddy – 4.9.17 Gravity Forms: by Gravity Forms – 2.7.6 Redux Framework: by Team Redux – 4.4.1 Smart Custom 404 error page [404page]: by Peter Raschendorfer – 11.4.3 Payfirma Payments for WooCommerce: by Payfirma – 3.1 AgreeMe Checkboxes For WooCommerce: by Amin Y – 1.0.8 WP Engine Smart Plugin Manager: by WP Engine – 5.13.28 Contact Form 7: by Takayuki Miyoshi – 5.7.6 CookieYes | GDPR Cookie Consent: by CookieYes – 3.0.9 Custom Post Type UI: by WebDevStudios – 1.13.5 Duplicate Page: by mndpsingh287 – 4.5.2 ELEX WooCommerce Product Price Custom Text (Before & After Text) and Discount: by ELEXtensions – 2.0.6 Email Template Customizer for WooCommerce: by VillaTheme – 1.1.21 Everest Gallery: by AccessPress Themes – 1.0.4 FormLift: by Adrian Tobey – 7.5.17 Gravity Forms User Registration Add-On: by Gravity Forms – 5.1 Header Footer Code Manager: by 99robots – 1.1.32 Insert PHP Code Snippet: by xyzscripts.com – 1.3.3 WPBakery Page Builder: by Michael M - WPBakery.com – 6.13.0 Loginizer: by Softaculous – 1.7.9 MBStore Extra: by – 1.0 MBStore Shortcodes: by – 1.3 Members: by MemberPress – 3.2.5 Meta Box: by MetaBox.io – 5.6.18 Order Export & Order Import for WooCommerce: by WebToffee – 2.3.3 Pardot: by Salesforce – 2.0.0 Popup Anything - A Marketing Popup: by WP OnlineSupport Essential Plugin – 2.5 Really Simple SSL: by Really Simple Plugins – 6.2.5 reCaptcha for WooCommerce: by I Thirteen Web Solution – 2.18 Redirection: by John Godley – 5.3.10 Slider Revolution: by ThemePunch – 6.6.13 Simple History: by P?r Thernstr?m – 3.5.1 Simple Share Buttons Adder: by Simple Share Buttons – 8.4.7 Slide Anything - Responsive Content / HTML Slider and Carousel: by – 2.4.9 Smart Slider 3: by Nextend – 3.5.1.15 Super Socializer: by Team Heateor – 7.13.48 WooCommerce Tiered Price Table (Premium): by bycrik – 3.3.1 UpdraftPlus - Backup/Restore: by UpdraftPlus.Com DavidAnderson – 2.23.1.0 User Switching: by John Blackbourn & contributors – 1.7.0 Import Export WordPress Users and WooCommerce Customers: by WebToffee – 2.3.9 WC Cancel Order: by WpExperts Hub – 3.2 Weglot Translate: by Weglot Translate team – 4.0.1 WooCommerce Extra Fees Plugin: by theDotstore – 3.9.2 WooCommerce Mobile Bottom Bar: by Inform Media – 1.0.0 Product Filter by WBW: by WBW – 2.3.4 PW Woocommerce Advanced Gift Rules: by Proword – 5.4 Checkout Field Editor for WooCommerce (Pro): by ThemeHigh – 3.1.6 WooCommerce Google Analytics Integration: by WooCommerce – 1.8.1 WooCommerce Min/Max Quantities: by WooCommerce – 2.4.19 WooCommerce Multiple Customer Addresses & Shipping: by Lagudi Domenico – 20.9 WooCommerce PayPal Payments: by WooCommerce – 2.0.4 WooCommerce Role Based Methods: by WPBackOffice – 2.0.9 WooCommerce Smart Coupons: by StoreApps – 4.25.1 WooCommerce: by Automattic – 7.7.0 Wordfence Security: by Wordfence – 7.9.2 Yoast SEO: by Team Yoast – 20.7 WP Mail SMTP Pro: by WPForms – 3.6.1 WP Migrate: by Delicious Brains – 2.5.0 Multi-Step Checkout Pro for WooCommerce: by SilkyPress – 2.24.1 Smush Pro: by WPMU DEV – 3.8.3 WPForms Stripe: by WPForms – 2.3.3 WPForms: by WPForms – 1.6.0.2 YITH WooCommerce Added to Cart Popup: by YITH – 1.6.2 YITH WooCommerce Ajax Product Filter: by YITH – 4.21.0 YITH WooCommerce Ajax Search Premium: by YITH – 1.30.0 YITH WooCommerce Customize My Account Page Premium: by YITH – 3.23.0 YITH WooCommerce Wishlist: by YITH – 3.20.0 Advanced Custom Fields: by WP Engine – 6.1.6
Let me know if you want me to post the full environment information directly here or if there is a more secured way to pass that information across to your team.
Thank you
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Woocommerce not working in php version 8’ is closed to new replies.