Unable to add products after woocommerce 6.5.1 update
-
After the WooCommerce 6.5.1 update, I am unable to add products to my store. Error code:
Fatal error: Uncaught TypeError: in_array(): Argument #2 ($haystack) must be of type array, null given in /homepages/28/d901789451/htdocs/app901790327/wp-content/plugins/woocommerce/includes/admin/class-wc-admin-meta-boxes.php:279 Stack trace: #0 /homepages/28/d901789451/htdocs/app901790327/wp-content/plugins/woocommerce/includes/admin/class-wc-admin-meta-boxes.php(279): in_array('product', NULL) #1 /homepages/28/d901789451/htdocs/app901790327/wp-includes/class-wp-hook.php(309): WC_Admin_Meta_Boxes->remove_block_templates(Array) #2 /homepages/28/d901789451/htdocs/app901790327/wp-includes/plugin.php(189): WP_Hook->apply_filters(Array, Array) #3 /homepages/28/d901789451/htdocs/app901790327/wp-includes/class-wp-theme.php(1334): apply_filters('theme_product_t...', Array, Object(WP_Theme), Object(WP_Post), 'product') #4 /homepages/28/d901789451/htdocs/app901790327/wp-admin/includes/theme.php(145): WP_Theme->get_page_templates(Object(WP_Post), 'product') #5 /homepages/28/d901789451/htdocs/app901790327/wp-admin/includes/meta-boxes.php(1504): get_page_templates(Object(WP_Post)) #6 /homepages/28/d901789451/htdocs/app901790327/wp-admin/edit-form-advanced.php(271): register_and_do_post_meta_boxes(Object(WP_Post)) #7 /homepages/28/d901789451/htdocs/app901790327/wp-admin/post-new.php(75): require('/homepages/28/d...') #8 {main} thrown in /homepages/28/d901789451/htdocs/app901790327/wp-content/plugins/woocommerce/includes/admin/class-wc-admin-meta-boxes.php on line 279
Status Report:
### WordPress Environment ### WordPress address (URL): https://stringscapes.us Site address (URL): https://stringscapes.us 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 WP Multisite: – WP Memory Limit: 1 GB WP Debug Mode: – WP Cron: ? Language: en_US External object cache: – ### Server Environment ### Server Info: Apache PHP Version: 8.0.19 PHP Post Max Size: 128 MB PHP Time Limit: 30 PHP Max Input Vars: 1000 cURL Version: 7.64.0 OpenSSL/1.1.1n SUHOSIN Installed: – MySQL Version: 10.5.12-MariaDB-1:10.5.12+maria~buster-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: 6.5.1 WC Database Prefix: xer7lv61km Total Database Size: 24.83MB Database Data Size: 19.85MB Database Index Size: 4.98MB xer7lv61kmwoocommerce_sessions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB xer7lv61kmwoocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB xer7lv61kmwoocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB xer7lv61kmwoocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB xer7lv61kmwoocommerce_order_items: Data: 0.02MB + Index: 0.02MB + Engine InnoDB xer7lv61kmwoocommerce_order_itemmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB xer7lv61kmwoocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB xer7lv61kmwoocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB xer7lv61kmwoocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB xer7lv61kmwoocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB xer7lv61kmwoocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB xer7lv61kmwoocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB xer7lv61kmwoocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB xer7lv61kmwoocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB xer7lv61kmactionscheduler_actions: Data: 0.13MB + Index: 0.11MB + Engine InnoDB xer7lv61kmactionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB xer7lv61kmactionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB xer7lv61kmactionscheduler_logs: Data: 0.08MB + Index: 0.06MB + Engine InnoDB xer7lv61kmaioseo_cache: Data: 0.11MB + Index: 0.03MB + Engine InnoDB xer7lv61kmaioseo_notifications: Data: 0.02MB + Index: 0.06MB + Engine InnoDB xer7lv61kmaioseo_posts: Data: 0.03MB + Index: 0.02MB + Engine InnoDB xer7lv61kmblc_filters: Data: 0.02MB + Index: 0.00MB + Engine InnoDB xer7lv61kmblc_instances: Data: 0.02MB + Index: 0.05MB + Engine InnoDB xer7lv61kmblc_links: Data: 0.28MB + Index: 0.06MB + Engine InnoDB xer7lv61kmblc_synch: Data: 0.02MB + Index: 0.02MB + Engine InnoDB xer7lv61kmce4wp_abandoned_checkout: Data: 0.02MB + Index: 0.02MB + Engine InnoDB xer7lv61kmce4wp_contacts: Data: 0.02MB + Index: 0.02MB + Engine InnoDB xer7lv61kmcommentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB xer7lv61kmcomments: Data: 0.02MB + Index: 0.09MB + Engine InnoDB xer7lv61kmgla_budget_recommendations: Data: 0.22MB + Index: 0.14MB + Engine InnoDB xer7lv61kmgla_merchant_issues: Data: 0.02MB + Index: 0.00MB + Engine InnoDB xer7lv61kmgla_shipping_rates: Data: 0.02MB + Index: 0.05MB + Engine InnoDB xer7lv61kmgla_shipping_times: Data: 0.02MB + Index: 0.02MB + Engine InnoDB xer7lv61kmlinks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB xer7lv61kmmailchimp_carts: Data: 0.02MB + Index: 0.00MB + Engine InnoDB xer7lv61kmmailchimp_jobs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB xer7lv61kmmailpoet_custom_fields: Data: 0.02MB + Index: 0.02MB + Engine InnoDB xer7lv61kmmailpoet_dynamic_segment_filters: Data: 0.02MB + Index: 0.02MB + Engine InnoDB xer7lv61kmmailpoet_feature_flags: Data: 0.02MB + Index: 0.02MB + Engine InnoDB xer7lv61kmmailpoet_forms: Data: 0.02MB + Index: 0.00MB + Engine InnoDB xer7lv61kmmailpoet_log: Data: 0.02MB + Index: 0.00MB + Engine InnoDB xer7lv61kmmailpoet_mapping_to_external_entities: Data: 0.02MB + Index: 0.02MB + Engine InnoDB xer7lv61kmmailpoet_newsletters: Data: 0.02MB + Index: 0.03MB + Engine InnoDB xer7lv61kmmailpoet_newsletter_links: Data: 0.02MB + Index: 0.05MB + Engine InnoDB xer7lv61kmmailpoet_newsletter_option: Data: 0.02MB + Index: 0.02MB + Engine InnoDB xer7lv61kmmailpoet_newsletter_option_fields: Data: 0.02MB + Index: 0.02MB + Engine InnoDB xer7lv61kmmailpoet_newsletter_posts: Data: 0.02MB + Index: 0.02MB + Engine InnoDB xer7lv61kmmailpoet_newsletter_segment: Data: 0.02MB + Index: 0.02MB + Engine InnoDB xer7lv61kmmailpoet_newsletter_templates: Data: 2.52MB + Index: 0.00MB + Engine InnoDB xer7lv61kmmailpoet_scheduled_tasks: Data: 0.02MB + Index: 0.03MB + Engine InnoDB xer7lv61kmmailpoet_scheduled_task_subscribers: Data: 0.02MB + Index: 0.02MB + Engine InnoDB xer7lv61kmmailpoet_segments: Data: 0.02MB + Index: 0.03MB + Engine InnoDB xer7lv61kmmailpoet_sending_queues: Data: 0.02MB + Index: 0.03MB + Engine InnoDB xer7lv61kmmailpoet_settings: Data: 0.02MB + Index: 0.02MB + Engine InnoDB xer7lv61kmmailpoet_statistics_bounces: Data: 0.02MB + Index: 0.00MB + Engine InnoDB xer7lv61kmmailpoet_statistics_clicks: Data: 0.02MB + Index: 0.05MB + Engine InnoDB xer7lv61kmmailpoet_statistics_forms: Data: 0.02MB + Index: 0.02MB + Engine InnoDB xer7lv61kmmailpoet_statistics_newsletters: Data: 0.02MB + Index: 0.03MB + Engine InnoDB xer7lv61kmmailpoet_statistics_opens: Data: 0.02MB + Index: 0.08MB + Engine InnoDB xer7lv61kmmailpoet_statistics_unsubscribes: Data: 0.02MB + Index: 0.05MB + Engine InnoDB xer7lv61kmmailpoet_statistics_woocommerce_purchases: Data: 0.02MB + Index: 0.06MB + Engine InnoDB xer7lv61kmmailpoet_stats_notifications: Data: 0.02MB + Index: 0.03MB + Engine InnoDB xer7lv61kmmailpoet_subscribers: Data: 0.02MB + Index: 0.13MB + Engine InnoDB xer7lv61kmmailpoet_subscriber_custom_field: Data: 0.02MB + Index: 0.02MB + Engine InnoDB xer7lv61kmmailpoet_subscriber_ips: Data: 0.02MB + Index: 0.02MB + Engine InnoDB xer7lv61kmmailpoet_subscriber_segment: Data: 0.02MB + Index: 0.03MB + Engine InnoDB xer7lv61kmmailpoet_user_agents: Data: 0.02MB + Index: 0.02MB + Engine InnoDB xer7lv61kmmailpoet_user_flags: Data: 0.02MB + Index: 0.02MB + Engine InnoDB xer7lv61kmoptions: Data: 5.36MB + Index: 0.14MB + Engine InnoDB xer7lv61kmpostmeta: Data: 0.34MB + Index: 0.13MB + Engine InnoDB xer7lv61kmposts: Data: 6.13MB + Index: 0.13MB + Engine InnoDB xer7lv61kmrcb_asset_seo_redirect: Data: 0.02MB + Index: 0.00MB + Engine InnoDB xer7lv61kmrcb_blocker_thumbnails: Data: 0.02MB + Index: 0.02MB + Engine InnoDB xer7lv61kmrcb_consent: Data: 0.02MB + Index: 0.00MB + Engine InnoDB xer7lv61kmrcb_presets: Data: 0.14MB + Index: 0.02MB + Engine InnoDB xer7lv61kmrcb_revision: Data: 0.02MB + Index: 0.02MB + Engine InnoDB xer7lv61kmrcb_revision_independent: Data: 0.02MB + Index: 0.02MB + Engine InnoDB xer7lv61kmrcb_scan: Data: 2.03MB + Index: 1.41MB + Engine InnoDB xer7lv61kmrcb_scan_markup: Data: 0.19MB + Index: 0.02MB + Engine InnoDB xer7lv61kmrcb_stats: Data: 0.02MB + Index: 0.02MB + Engine InnoDB xer7lv61kmrcb_tcf_features: Data: 0.02MB + Index: 0.00MB + Engine InnoDB xer7lv61kmrcb_tcf_purposes: Data: 0.02MB + Index: 0.00MB + Engine InnoDB xer7lv61kmrcb_tcf_special_features: Data: 0.02MB + Index: 0.00MB + Engine InnoDB xer7lv61kmrcb_tcf_special_purposes: Data: 0.02MB + Index: 0.00MB + Engine InnoDB xer7lv61kmrcb_tcf_stacks: Data: 0.02MB + Index: 0.00MB + Engine InnoDB xer7lv61kmrcb_tcf_vendors: Data: 0.02MB + Index: 0.00MB + Engine InnoDB xer7lv61kmreal_queue: Data: 0.02MB + Index: 0.00MB + Engine InnoDB xer7lv61kmstatify: Data: 0.05MB + Index: 0.05MB + Engine InnoDB xer7lv61kmtermmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB xer7lv61kmterms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB xer7lv61kmterm_relationships: Data: 0.02MB + Index: 0.02MB + Engine InnoDB xer7lv61kmterm_taxonomy: Data: 0.05MB + Index: 0.03MB + Engine InnoDB xer7lv61kmusermeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB xer7lv61kmusers: Data: 0.02MB + Index: 0.05MB + Engine InnoDB xer7lv61kmwc_admin_notes: Data: 0.05MB + Index: 0.00MB + Engine InnoDB xer7lv61kmwc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB xer7lv61kmwc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB xer7lv61kmwc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB xer7lv61kmwc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB xer7lv61kmwc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB xer7lv61kmwc_order_product_lookup: Data: 0.02MB + Index: 0.06MB + Engine InnoDB xer7lv61kmwc_order_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDB xer7lv61kmwc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB xer7lv61kmwc_product_attributes_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB xer7lv61kmwc_product_download_directories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB xer7lv61kmwc_product_meta_lookup: Data: 0.02MB + Index: 0.09MB + Engine InnoDB xer7lv61kmwc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB xer7lv61kmwc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB xer7lv61kmwc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB xer7lv61kmwc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB xer7lv61kmwpforms_tasks_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB xer7lv61kmwpmm_subscribers: Data: 0.02MB + Index: 0.00MB + Engine InnoDB xer7lv61kmyoast_indexable: Data: 0.11MB + Index: 0.09MB + Engine InnoDB xer7lv61kmyoast_indexable_hierarchy: Data: 0.02MB + Index: 0.05MB + Engine InnoDB xer7lv61kmyoast_migrations: Data: 0.02MB + Index: 0.02MB + Engine InnoDB xer7lv61kmyoast_primary_term: Data: 0.02MB + Index: 0.03MB + Engine InnoDB xer7lv61kmyoast_seo_links: Data: 0.05MB + Index: 0.03MB + Engine InnoDB ### Post Type Counts ### attachment: 150 custom_css: 1 customize_changeset: 9 mailpoet_page: 1 nav_menu_item: 15 page: 16 post: 20 product: 34 rcb-cookie: 1 revision: 480 shop_order: 1 wp_block: 1 wp_global_styles: 4 wp_navigation: 3 wp_template: 7 wp_template_part: 2 ### Security ### Secure connection (HTTPS): ? Hide errors from visitors: ? ### Active Plugins (23) ### Antispam Bee: by pluginkollektiv – 2.11.0 Broken Link Checker: by WPMU DEV – 1.11.16 Insert Headers and Footers: by WPBeginner – 1.6.2 IONOS Assistant: by IONOS – 7.3.3 IONOS Help: by IONOS – 2.1.0 IONOS Navigation: by IONOS – 1.0.2 IONOS Login: by IONOS – 2.1.0 Jetpack: by Automattic – 10.9.1 Kadence Blocks – Gutenberg Blocks for Page Builder Features: by Kadence WP – 2.4.4 Limit Login Attempts Reloaded: by Limit Login Attempts Reloaded – 2.25.2 Mailchimp for WooCommerce: by Mailchimp – 2.6.2 Real Cookie Banner (Free): by devowl.io – 2.17.3 Regenerate Thumbnails Advanced: by ShortPixel – 2.4.0 Shariff Wrapper: by Jan-Peter Lambeck & 3UU – 4.6.7 Slim SEO: by eLightUp – 3.13.4 Statify: by pluginkollektiv – 1.8.3 Sticky Block: by Senff – 1.1 Advanced Editor Tools (previously TinyMCE Advanced): by Automattic – 5.6.0 WooCommerce Payments: by Automattic – 4.1.0 WooCommerce PayPal Payments: by WooCommerce – 1.8.0 WooCommerce Shipping & Tax: by WooCommerce – 1.25.28 WooCommerce: by Automattic – 6.5.1 WP Maintenance Mode & Coming Soon: by Themeisle – 2.4.4 ### Inactive Plugins (0) ### ### Must Use Plugins (3) ### 1&1 Managed WordPress: by 1&1 – 1.1.0 1&1 Product Subdomain: by 1&1 – 1.1.0 IONOS Marketplace: by <AUTHOR> – 1.1.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) subscription (subscription) variable (variable) variable subscription (variable-subscription) 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: #86 - /shop Cart: #88 - /cart Checkout: #90 - /checkout My account: #92 - /my-account Terms and conditions: ? Page not set ### Theme ### Name: Bricksy Version: 1.3.5 Author URL: https://anarieldesign.com/ Child Theme: ? – If you are modifying WooCommerce on a parent theme that you did not build personally we recommend using a child theme. See: How to create a child theme WooCommerce Support: ? Not declared ### Templates ### Overrides: – ### Subscriptions ### WCS_DEBUG: ? No Subscriptions Mode: ? Live Subscriptions Live URL: https://stringscapes.us/ Subscription Statuses: – WooCommerce Account Connected: ? No ### Store Setup ### Country / State: United States (US) — California ### Payment Gateway Support ### PayPal: refunds PayPal Card Processing: refunds ### WooCommerce PayPal Payments ### Onboarded: ? Shop country code: US WooCommerce currency supported: ? PayPal card processing available in country: ? Pay Later messaging available in country: ? Webhook status: – Vault enabled: ? Logging enabled: – Reference Transactions: – Used PayPal Checkout plugin: – ### WooCommerce Payments ### Version: 4.1.0 Connected to WPCOM: Yes Blog ID: 203612869 Account ID: - ### Action Scheduler ### Complete: 263 Oldest: 2022-04-21 23:50:05 -0400 Newest: 2022-05-20 08:10:06 -0400 Pending: 2 Oldest: 2022-05-20 14:48:09 -0400 Newest: 2022-05-21 08:10:06 -0400 ### Status report information ### Generated at: 2022-05-20 11:18:27 -04:00
- The topic ‘Unable to add products after woocommerce 6.5.1 update’ is closed to new replies.