Critical error when editing product
-
Hello
I developed a website with WordPress, LearnDash and WooCommerce, and everything worked fine, from front-end to purchase etc. Until one day I couldn’t edit products and started receiving email about critical error. I can duplicate, but still get an error and cannot edit or add new products. Please, see logs below and let me know if you got any ideas. Thank you π
Error Details
=============2022-05-24T09:21:26+00:00 CRITICAL Uncaught TypeError: in_array(): Argument #2 ($haystack) must be of type array, null given in /home/yw3iod6ji2vu/public_html/wp-content/plugins/woocommerce/includes/admin/class-wc-admin-meta-boxes.php:279 Stack trace: #0 /home/yw3iod6ji2vu/public_html/wp-content/plugins/woocommerce/includes/admin/class-wc-admin-meta-boxes.php(279): in_array() #1 /home/yw3iod6ji2vu/public_html/wp-includes/class-wp-hook.php(309): WC_Admin_Meta_Boxes->remove_block_templates() #2 /home/yw3iod6ji2vu/public_html/wp-includes/plugin.php(189): WP_Hook->apply_filters() #3 /home/yw3iod6ji2vu/public_html/wp-includes/class-wp-theme.php(1334): apply_filters() #4 /home/yw3iod6ji2vu/public_html/wp-admin/includes/theme.php(145): WP_Theme->get_page_templates() #5 /home/yw3iod6ji2vu/public_html/wp-admin/includes/class-wp-posts-list-table.php(1807): get_page_templates() #6 /home/yw3iod6ji2vu/public_html/wp-admin/edit.php(483): WP_Posts_List_Table->inline_edit() #7 {main} thrown in /home/yw3iod6ji2vu/public_html/wp-content/plugins/woocommerce/includes/admin/class-wc-admin-meta-boxes.php on line 279 2022-05-24T09:21:34+00:00 CRITICAL Uncaught TypeError: in_array(): Argument #2 ($haystack) must be of type array, null given in /home/yw3iod6ji2vu/public_html/wp-content/plugins/woocommerce/includes/admin/class-wc-admin-meta-boxes.php:279 Stack trace: #0 /home/yw3iod6ji2vu/public_html/wp-content/plugins/woocommerce/includes/admin/class-wc-admin-meta-boxes.php(279): in_array() #1 /home/yw3iod6ji2vu/public_html/wp-includes/class-wp-hook.php(309): WC_Admin_Meta_Boxes->remove_block_templates() #2 /home/yw3iod6ji2vu/public_html/wp-includes/plugin.php(189): WP_Hook->apply_filters() #3 /home/yw3iod6ji2vu/public_html/wp-includes/class-wp-theme.php(1334): apply_filters() #4 /home/yw3iod6ji2vu/public_html/wp-admin/includes/theme.php(145): WP_Theme->get_page_templates() #5 /home/yw3iod6ji2vu/public_html/wp-admin/includes/meta-boxes.php(1504): get_page_templates() #6 /home/yw3iod6ji2vu/public_html/wp-admin/edit-form-advanced.php(271): register_and_do_post_meta_boxes() #7 /home/yw3iod6ji2vu/public_html/wp-admin/post.php(206): require('/home/yw3iod6ji...') #8 {main} thrown in /home/yw3iod6ji2vu/public_html/wp-content/plugins/woocommerce/includes/admin/class-wc-admin-meta-boxes.php on line 279### WordPress Environment ### WordPress address (URL): https://www.kortastraining.com Site address (URL): https://www.kortastraining.com 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: 512 MB WP Debug Mode: β WP Cron: β Language: en_GB External object cache: β ### Server Environment ### Server Info: Apache PHP Version: 8.0.18 PHP Post Max Size: 128 MB PHP Time Limit: 600 PHP Max Input Vars: 8000 cURL Version: 7.71.0 OpenSSL/1.1.1d SUHOSIN Installed: β MySQL Version: 5.7.37-cll-lve 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: wp_ Total Database Size: 125.38MB Database Data Size: 118.72MB Database Index Size: 6.66MB wp_woocommerce_sessions: Data: 0.02MB + Index: 0.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.00MB + Index: 0.00MB + Engine MyISAM wp_woocommerce_order_items: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_order_itemmeta: Data: 0.02MB + Index: 0.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.03MB + Engine InnoDB wp_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_woocommerce_shipping_zone_locations: Data: 0.02MB + 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: 0.22MB + Index: 0.11MB + Engine MyISAM wp_actionscheduler_claims: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_actionscheduler_groups: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_actionscheduler_logs: Data: 0.14MB + Index: 0.11MB + Engine MyISAM wp_brizy_logs: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_cjtoolbox_backups: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_cjtoolbox_blocks: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_cjtoolbox_block_files: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_cjtoolbox_block_pins: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_cjtoolbox_forms: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_cjtoolbox_form_groups: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_cjtoolbox_form_group_parameters: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_cjtoolbox_form_group_xfields: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_cjtoolbox_parameters: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_cjtoolbox_parameter_typedef: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_cjtoolbox_parameter_typeparams: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_comments: Data: 0.02MB + Index: 0.09MB + Engine InnoDB wp_grp_google_place: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_grp_google_review: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_layerslider: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_layerslider_revisions: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_ld_notifications_delayed_emails: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_learndash_pro_quiz_category: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_learndash_pro_quiz_form: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_learndash_pro_quiz_lock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_learndash_pro_quiz_master: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_learndash_pro_quiz_prerequisite: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_learndash_pro_quiz_question: Data: 0.06MB + Index: 0.03MB + Engine InnoDB wp_learndash_pro_quiz_statistic: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_learndash_pro_quiz_statistic_ref: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_learndash_pro_quiz_template: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_learndash_pro_quiz_toplist: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_learndash_user_activity: Data: 0.02MB + Index: 0.13MB + Engine InnoDB wp_learndash_user_activity_meta: Data: 0.02MB + Index: 0.03MB + 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.08MB + Engine InnoDB wp_ms_snippets: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_options: Data: 23.02MB + Index: 1.23MB + Engine InnoDB wp_participants_database: Data: 0.01MB + Index: 0.00MB + Engine MyISAM wp_participants_database_fields: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_participants_database_groups: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_postmeta: Data: 49.11MB + Index: 1.20MB + Engine InnoDB wp_posts: Data: 17.19MB + Index: 0.25MB + Engine InnoDB wp_revslider_css: Data: 0.13MB + Index: 0.00MB + Engine InnoDB wp_revslider_layer_animations: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_revslider_navigations: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_revslider_sliders: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_revslider_slides: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_revslider_static_slides: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_sm_sessions: Data: 0.14MB + Index: 0.07MB + Engine MyISAM wp_snippets: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_term_relationships: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_tm_taskmeta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_tm_tasks: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_trustindex_google_reviews: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_usermeta: Data: 0.04MB + Index: 0.03MB + Engine MyISAM wp_users: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_wc_admin_notes: Data: 0.02MB + Index: 0.00MB + Engine MyISAM wp_wc_admin_note_actions: Data: 0.01MB + Index: 0.00MB + Engine MyISAM wp_wc_category_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wc_customer_lookup: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_wc_download_log: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wc_order_coupon_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wc_order_product_lookup: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_wc_order_stats: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_wc_order_tax_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM 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.02MB + Index: 0.03MB + Engine MyISAM wp_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_reserved_stock: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wc_tax_rate_classes: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_wc_webhooks: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wfblockediplog: Data: 0.01MB + Index: 0.01MB + Engine MyISAM wp_wfblocks7: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wfconfig: Data: 3.12MB + Index: 0.02MB + Engine MyISAM wp_wfcrawlers: Data: 0.01MB + Index: 0.00MB + Engine MyISAM wp_wffilechanges: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wffilemods: Data: 12.18MB + Index: 1.42MB + Engine MyISAM wp_wfhits: Data: 0.42MB + Index: 0.07MB + Engine MyISAM wp_wfhoover: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wfissues: Data: 0.03MB + Index: 0.01MB + Engine MyISAM wp_wfknownfilelist: Data: 8.89MB + Index: 0.44MB + Engine MyISAM wp_wflivetraffichuman: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wflocs: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wflogins: Data: 0.31MB + Index: 0.08MB + Engine MyISAM wp_wfls_2fa_secrets: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wfls_settings: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wfnotifications: Data: 0.01MB + Index: 0.00MB + Engine MyISAM wp_wfpendingissues: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_wfreversecache: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wfsnipcache: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wfstatus: Data: 0.78MB + Index: 0.30MB + Engine MyISAM wp_wftrafficrates: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wplc_actions_queue: Data: 0.19MB + Index: 0.20MB + Engine InnoDB wp_wplc_chat_files: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wplc_chat_msgs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wplc_chat_ratings: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wplc_chat_sessions: Data: 1.52MB + Index: 0.00MB + Engine InnoDB wp_wplc_chat_triggers: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wplc_custom_fields: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wplc_departments: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wplc_offline_messages: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wplc_quick_responses: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wplc_roi_conversions: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wplc_roi_goals: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wplc_webhooks: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_yoast_seo_links: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_yoast_seo_meta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM ### Post Type Counts ### attachment: 382 custom_css: 1 customize_changeset: 29 fw-slider: 2 logoshowcase: 9 nav_menu_item: 36 page: 36 popup_theme: 8 post: 1 product: 4 revision: 625 sfwd-certificates: 2 sfwd-courses: 2 sfwd-lessons: 15 sfwd-question: 21 sfwd-quiz: 2 sfwd-topic: 1 shop_order: 12 wp_global_styles: 1 ### Security ### Secure connection (HTTPS): β Hide errors from visitors: β ### Active Plugins (26) ### Admin Menu Editor: by Janis Elsts β 1.10.2 Classic Editor: by WordPress Contributors β 1.6.2 GDPR Cookie Consent: by WebToffee β 2.1.2 Duplicate Page: by mndpsingh287 β 4.4.8 Flexible Checkout Fields: by WP Desk β 3.2.3 LearnDash LMS - Course Grid: by LearnDash β 2.0.5 LearnDash LMS - Integrity: by LearnDash β 1.0.0 LearnDash LMS - Notifications: by LearnDash β 1.5.3 LearnDash LMS - WooCommerce Integration: by LearnDash β 1.9.4.1 Limit log in attempts reloaded: by Limit log in attempts reloaded β 2.25.2 Participants Database: by Roland Barker xnau webdesign β 2.1.1 Really Simple SSL: by Really Simple Plugins β 5.3.2 LearnDash LMS: by LearnDash β 4.1.2 Uncanny Toolkit for LearnDash: by Uncanny Owl β 3.6.2 Unyson: by ThemeFuse β 2.7.26 UpdraftPlus - Backup/Restore: by UpdraftPlus.Com DavidAnderson β 1.22.12 Thanks Redirect for WooCommerce: by Nitin Prakash β 3.1 WooCommerce Custom Add To Cart Button: by Barn2 Plugins β 1.1.3 WooCommerce Stripe Gateway: by WooCommerce β 6.4.0 WooCommerce Payments: by Automattic β 4.1.0 WooCommerce: by Automattic β 6.5.1 Wordfence Security: by Wordfence β 7.5.10 3CX Live Chat: by 3CX β 10.0.1 WP Logo Showcase Responsive Slider and Carousel: by WP OnlineSupport Essential Plugin β 3.1.4 WP Responsive Menu: by MagniGenie β 3.1.7.2 Widgets for Google Reviews: by Trustindex.io β 8.4 ### Inactive Plugins (4) ### Custom Product Tabs for WooCommerce: by YIKES Inc. β 1.7.7 LiteSpeed Cache: by LiteSpeed Technologies β 4.6 Sucuri Security - Auditing, Malware Scanner and Hardening: by Sucuri Inc. β 1.8.30 WooCommerce PayPal Payments: by WooCommerce β 1.8.0 ### Must Use Plugins (2) ### installatron_hide_status_test.php: by β LearnDash LMS Multisite: by LearnDash β 1.0.0 ### Settings ### API Enabled: β Force SSL: β Currency: GBP (Β£) Currency Position: left Thousand Separator: , Decimal Separator: . Number of Decimals: 2 Taxonomies: Product Types: course (course) external (external) grouped (grouped) simple (simple) variable (variable) 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: #5481 - /courses/ Basket: β Page does not contain the [woocommerce_cart] shortcode or the woocommerce/cart block. Checkout: β Page does not contain the [woocommerce_checkout] shortcode or the woocommerce/checkout block. My account: β Page does not contain the [woocommerce_my_account] shortcode. Terms and conditions: #898 - /terms-of-use/ ### Theme ### Name: The Core Child Version: 1.0 Author URL: https://themefuse.com/ Child Theme: β Parent Theme Name: The Core Parent Parent Theme Version: 1.0.42 Parent Theme Author URL: https://themefuse.com/ WooCommerce Support: β ### Templates ### Overrides: β ### WooCommerce Payments ### Version: 4.1.0 Connected to WPCOM: Yes Blog ID: 205147549 Account ID: acct_1KmCQi2Ej2L1D9Xg ### Action Scheduler ### Complete: 85 Oldest: 2022-04-25 14:52:26 +0000 Newest: 2022-05-24 09:22:03 +0000 ### Status report information ### Generated at: 2022-05-24 09:45:30 +00:00
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
The topic ‘Critical error when editing product’ is closed to new replies.