Title: Undefined Array Key 10 in class-wp-hook.php
Last modified: December 14, 2023

---

# Undefined Array Key 10 in class-wp-hook.php

 *  [melasselin](https://wordpress.org/support/users/melasselin/)
 * (@melasselin)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/undefined-array-key-10-in-class-wp-hook-php/)
 * Hi, I have been receiving 2 errors related to the same line of class-wp-hook.
   php. They are each reoccuring 3 times per minute.
 * > PHP Warning: Undefined array key 10 in /nas/content/live/habitatskc/wp-includes/
   > class-wp-hook.php on line 315
 * > PHP Warning: foreach() argument must be of type array|object, null given in/
   > nas/content/live/habitatskc/wp-includes/class-wp-hook.php on line 315
 * Here is line 315-320:
 * > foreach ( $this->callbacks[ $priority ] as $the_ ) {
   >  if ( ! $this->doing_action ) {
   >  $args[0] = $value;
   >  }
   > // Avoid the array_slice() if possible.
 * and my system status:
 * >     ```wp-block-code
   >     ` WordPress Environment
   > 
   >     WordPress address (URL): https://www.habitatstoreskc.org
   >     Site address (URL): https://www.habitatstoreskc.org
   >     WC Version: 8.4.0
   >     REST API Version: ✔ 8.4.0
   >     WC Blocks Version: ✔ 11.6.2
   >     Action Scheduler Version: ✔ 3.7.0
   >     Log Directory Writable: ✔
   >     WP Version: 6.4.2
   >     WP Multisite: –
   >     WP Memory Limit: 512 MB
   >     WP Debug Mode: –
   >     WP Cron: ✔
   >     Language: en_US
   >     External object cache: ✔ Server Environment
   > 
   >     Server Info: nginx
   >     PHP Version: 8.2.12
   >     PHP Post Max Size: 100 MB
   >     PHP Time Limit: 43300
   >     PHP Max Input Vars: 10000
   >     cURL Version: 7.81.0
   >     OpenSSL/3.0.2
   > 
   >     SUHOSIN Installed: –
   >     MySQL Version: 8.0.33-25
   >     Max Upload Size: 50 MB
   >     Default Timezone is UTC: ✔
   >     fsockopen/cURL: ✔
   >     SoapClient: ✔
   >     DOMDocument: ✔
   >     GZip: ✔
   >     Multibyte String: ✔
   >     Remote Post: ✔
   >     Remote Get: ✔ Database
   > 
   >     WC Database Version: 8.4.0
   >     WC Database Prefix: wp_h4g
   >     Total Database Size: 793.55MB
   >     Database Data Size: 545.36MB
   >     Database Index Size: 248.19MB
   >     wp_h4gwoocommerce_sessions: Data: 2.02MB + Index: 0.02MB + Engine InnoDB
   >     wp_h4gwoocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
   >     wp_h4gwoocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
   >     wp_h4gwoocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
   >     wp_h4gwoocommerce_order_items: Data: 3.52MB + Index: 1.52MB + Engine InnoDB
   >     wp_h4gwoocommerce_order_itemmeta: Data: 31.56MB + Index: 34.11MB + Engine InnoDB
   >     wp_h4gwoocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
   >     wp_h4gwoocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
   >     wp_h4gwoocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
   >     wp_h4gwoocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
   >     wp_h4gwoocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
   >     wp_h4gwoocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
   >     wp_h4gwoocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
   >     wp_h4gwoocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
   >     wp_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
   >     wp_comments: Data: 0.02MB + Index: 0.08MB + Engine InnoDB
   >     wp_h4gactionscheduler_actions: Data: 13.02MB + Index: 18.13MB + Engine InnoDB
   >     wp_h4gactionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
   >     wp_h4gactionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
   >     wp_h4gactionscheduler_logs: Data: 9.02MB + Index: 9.03MB + Engine InnoDB
   >     wp_h4gadvads_clicks: Data: 0.08MB + Index: 0.00MB + Engine InnoDB
   >     wp_h4gadvads_impressions: Data: 0.13MB + Index: 0.00MB + Engine InnoDB
   >     wp_h4gaioseo_cache: Data: 0.30MB + Index: 0.03MB + Engine InnoDB
   >     wp_h4gaioseo_notifications: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
   >     wp_h4gaioseo_posts: Data: 2.52MB + Index: 0.08MB + Engine InnoDB
   >     wp_h4galp_pickup_location: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
   >     wp_h4gauction_direct_payment: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
   >     wp_h4gcheck_email_log: Data: 0.45MB + Index: 0.00MB + Engine InnoDB
   >     wp_h4gcommentmeta: Data: 0.11MB + Index: 0.14MB + Engine InnoDB
   >     wp_h4gcomments: Data: 26.56MB + Index: 21.09MB + Engine InnoDB
   >     wp_h4gcsp3_subscribers: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
   >     wp_h4gjetpack_sync_queue: Data: 30.56MB + Index: 3.67MB + Engine InnoDB
   >     wp_h4gjetpack_waf_blocklog: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
   >     wp_h4glinks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
   >     wp_h4glinksync_laidKey: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
   >     wp_h4glinksync_log: Data: 0.05MB + Index: 0.00MB + Engine InnoDB
   >     wp_h4gmailchimp_carts: Data: 1.02MB + Index: 0.00MB + Engine InnoDB
   >     wp_h4gmailchimp_jobs: Data: 4.02MB + Index: 0.00MB + Engine InnoDB
   >     wp_h4gmonsterinsights_pageinsights_cache: Data: 0.22MB + Index: 0.02MB + Engine InnoDB
   >     wp_h4gmonsterinsights_user_journey: Data: 3.52MB + Index: 0.00MB + Engine InnoDB
   >     wp_h4gms_snippets: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
   >     wp_h4goptions: Data: 9.08MB + Index: 1.27MB + Engine InnoDB
   >     wp_h4gpostmeta: Data: 224.77MB + Index: 107.22MB + Engine InnoDB
   >     wp_h4gposts: Data: 30.55MB + Index: 13.70MB + Engine InnoDB
   >     wp_h4gsms_otp: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
   >     wp_h4gsms_otp_attempts: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
   >     wp_h4gsms_repeating: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
   >     wp_h4gsms_scheduled: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
   >     wp_h4gsms_send: Data: 3.52MB + Index: 0.00MB + Engine InnoDB
   >     wp_h4gsms_subscribes: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
   >     wp_h4gsms_subscribes_group: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
   >     wp_h4gsnippets: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
   >     wp_h4gterm_relationships: Data: 4.02MB + Index: 2.03MB + Engine InnoDB
   >     wp_h4gterm_taxonomy: Data: 0.08MB + Index: 0.06MB + Engine InnoDB
   >     wp_h4gtermmeta: Data: 0.08MB + Index: 0.06MB + Engine InnoDB
   >     wp_h4gterms: Data: 0.06MB + Index: 0.03MB + Engine InnoDB
   >     wp_h4gusermeta: Data: 10.50MB + Index: 10.03MB + Engine InnoDB
   >     wp_h4gusers: Data: 0.44MB + Index: 0.42MB + Engine InnoDB
   >     wp_h4gwc_admin_note_actions: Data: 0.09MB + Index: 0.02MB + Engine InnoDB
   >     wp_h4gwc_admin_notes: Data: 0.11MB + Index: 0.00MB + Engine InnoDB
   >     wp_h4gwc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
   >     wp_h4gwc_customer_lookup: Data: 1.52MB + Index: 0.75MB + Engine InnoDB
   >     wp_h4gwc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
   >     wp_h4gwc_order_addresses: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
   >     wp_h4gwc_order_coupon_lookup: Data: 0.06MB + Index: 0.06MB + Engine InnoDB
   >     wp_h4gwc_order_operational_data: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
   >     wp_h4gwc_order_product_lookup: Data: 3.52MB + Index: 3.94MB + Engine InnoDB
   >     wp_h4gwc_order_stats: Data: 3.52MB + Index: 3.39MB + Engine InnoDB
   >     wp_h4gwc_order_tax_lookup: Data: 1.52MB + Index: 0.84MB + Engine InnoDB
   >     wp_h4gwc_orders: Data: 0.02MB + Index: 0.11MB + Engine InnoDB
   >     wp_h4gwc_orders_meta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
   >     wp_h4gwc_product_attributes_lookup: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
   >     wp_h4gwc_product_download_directories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
   >     wp_h4gwc_product_meta_lookup: Data: 1.09MB + Index: 0.67MB + Engine InnoDB
   >     wp_h4gwc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
   >     wp_h4gwc_reserved_stock: Data: 0.05MB + Index: 0.00MB + Engine InnoDB
   >     wp_h4gwc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
   >     wp_h4gwc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
   >     wp_h4gwcfm_daily_analysis: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
   >     wp_h4gwcfm_detailed_analysis: Data: 0.14MB + Index: 0.00MB + Engine InnoDB
   >     wp_h4gwcfm_enquiries: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
   >     wp_h4gwcfm_enquiries_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
   >     wp_h4gwcfm_enquiries_response: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
   >     wp_h4gwcfm_enquiries_response_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
   >     wp_h4gwcfm_fbc_chat_rows: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
   >     wp_h4gwcfm_fbc_chat_sessions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
   >     wp_h4gwcfm_fbc_chat_visitors: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
   >     wp_h4gwcfm_fbc_offline_messages: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
   >     wp_h4gwcfm_following_followers: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
   >     wp_h4gwcfm_marketplace_orders: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
   >     wp_h4gwcfm_marketplace_orders_meta: Data: 0.09MB + Index: 0.00MB + Engine InnoDB
   >     wp_h4gwcfm_marketplace_product_multivendor: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
   >     wp_h4gwcfm_marketplace_refund_request: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
   >     wp_h4gwcfm_marketplace_refund_request_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
   >     wp_h4gwcfm_marketplace_reverse_withdrawal: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
   >     wp_h4gwcfm_marketplace_reverse_withdrawal_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
   >     wp_h4gwcfm_marketplace_review_rating_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
   >     wp_h4gwcfm_marketplace_reviews: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
   >     wp_h4gwcfm_marketplace_reviews_response: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
   >     wp_h4gwcfm_marketplace_reviews_response_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
   >     wp_h4gwcfm_marketplace_shipping_zone_locations: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
   >     wp_h4gwcfm_marketplace_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
   >     wp_h4gwcfm_marketplace_store_taxonomies: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
   >     wp_h4gwcfm_marketplace_vendor_ledger: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
   >     wp_h4gwcfm_marketplace_withdraw_request: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
   >     wp_h4gwcfm_marketplace_withdraw_request_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
   >     wp_h4gwcfm_membership_subscription: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
   >     wp_h4gwcfm_messages: Data: 0.13MB + Index: 0.00MB + Engine InnoDB
   >     wp_h4gwcfm_messages_modifier: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
   >     wp_h4gwcfm_messages_stat: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
   >     wp_h4gwcfm_support: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
   >     wp_h4gwcfm_support_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
   >     wp_h4gwcfm_support_response: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
   >     wp_h4gwcfm_support_response_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
   >     wp_h4gwcpv_commissions: Data: 3.52MB + Index: 0.00MB + Engine InnoDB
   >     wp_h4gwcpv_per_product_shipping_rules: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
   >     wp_h4gwdr_order_discounts: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
   >     wp_h4gwdr_order_item_discounts: Data: 0.30MB + Index: 0.28MB + Engine InnoDB
   >     wp_h4gwdr_rules: Data: 0.06MB + Index: 0.00MB + Engine InnoDB
   >     wp_h4gwoo_ua_auction_log: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
   >     wp_h4gwpfm_backup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
   >     wp_h4gwpforms_entries: Data: 14.53MB + Index: 0.28MB + Engine InnoDB
   >     wp_h4gwpforms_entry_fields: Data: 6.52MB + Index: 6.47MB + Engine InnoDB
   >     wp_h4gwpforms_entry_meta: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
   >     wp_h4gwpforms_logs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
   >     wp_h4gwpforms_payment_meta: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
   >     wp_h4gwpforms_payments: Data: 0.02MB + Index: 0.14MB + Engine InnoDB
   >     wp_h4gwpforms_tasks_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
   >     wp_h4gwpmailsmtp_attachment_files: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
   >     wp_h4gwpmailsmtp_debug_events: Data: 1.52MB + Index: 0.00MB + Engine InnoDB
   >     wp_h4gwpmailsmtp_email_attachments: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
   >     wp_h4gwpmailsmtp_email_tracking_events: Data: 1.02MB + Index: 2.03MB + Engine InnoDB
   >     wp_h4gwpmailsmtp_email_tracking_links: Data: 1.02MB + Index: 1.02MB + Engine InnoDB
   >     wp_h4gwpmailsmtp_emails_log: Data: 51.02MB + Index: 2.09MB + Engine InnoDB
   >     wp_h4gwpmailsmtp_tasks_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
   >     wp_h4gwpml_mails: Data: 33.02MB + Index: 0.00MB + Engine InnoDB
   >     wp_h4gwpstg_queue: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
   >     wp_h4gyith_wcan_filter_sessions: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
   >     wp_h4gyith_wcwl: Data: 1.52MB + Index: 0.45MB + Engine InnoDB
   >     wp_h4gyith_wcwl_lists: Data: 0.14MB + Index: 0.13MB + Engine InnoDB
   >     wp_h4gyoast_indexable: Data: 5.06MB + Index: 0.77MB + Engine InnoDB
   >     wp_h4gyoast_indexable_hierarchy: Data: 0.14MB + Index: 0.20MB + Engine InnoDB
   >     wp_h4gyoast_migrations: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
   >     wp_h4gyoast_primary_term: Data: 0.27MB + Index: 0.31MB + Engine InnoDB
   >     wp_h4gyoast_seo_links: Data: 0.05MB + Index: 0.03MB + Engine InnoDB
   >     wp_h4gywsfl_list: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
   >     wp_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
   >     wp_options: Data: 0.05MB + Index: 0.03MB + Engine InnoDB
   >     wp_postmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
   >     wp_posts: Data: 0.02MB + Index: 0.06MB + 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_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
   >     wp_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
   >     wp_usermeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
   >     wp_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB Post Type Counts
   > 
   >     advanced_ads: 41
   >     attachment: 22716
   >     condition_group: 2
   >     ct_content_block: 7
   >     custom_css: 3
   >     customize_changeset: 8
   >     nav_menu_item: 85
   >     oembed_cache: 3
   >     order_status: 3
   >     page: 24
   >     post: 5
   >     product: 2467
   >     product_variation: 10
   >     revision: 19
   >     seedprod: 2
   >     shop_coupon: 32
   >     shop_order: 17181
   >     shop_order_refund: 3730
   >     viwec_template: 15
   >     wc_product_table: 2
   >     wp_block: 2
   >     wp_global_styles: 2
   >     wp_navigation: 1
   >     wp_template: 1
   >     wpcode: 2
   >     wpforms: 7
   >     yith_wcan_preset: 3 Security
   > 
   >     Secure connection (HTTPS): ✔
   >     Hide errors from visitors: ✔ Active Plugins (32)
   > 
   >     ManageWP - Worker: by GoDaddy – 4.9.18
   >     Ultimate Blocks: by Ultimate Blocks – 3.0.8
   >     Advanced Ads – PopUp and Layer Ads: by Advanced Ads GmbH – 1.7.8
   >     Advanced Ads Pro: by Advanced Ads GmbH – 2.25.2
   >     Advanced Ads – AMP Ads: by Advanced Ads GmbH – 1.12.1
   >     Advanced Ads – Slider: by Advanced Ads GmbH – 1.4.10
   >     Advanced Ads – Tracking: by Advanced Ads GmbH – 2.5.2
   >     Advanced Ads: by Advanced Ads GmbH – 1.48.1
   >     Advanced Local Pickup PRO: by zorem – 1.7.0
   >     Blocksy Companion (Premium): by CreativeThemes – 2.0.9
   >     Custom Order Status Manager for WooCommerce: by Bright Plugins – 1.1.3
   >     Code Snippets: by Code Snippets Pro – 3.6.2
   >     Coming Soon Page, Maintenance Mode, Landing Pages & WordPress Website Builder by SeedProd: by SeedProd – 6.15.15.3
   >     Database Cleaner: Clean, Optimize & Repair: by Jordy Meow – 1.0.1
   >     Facebook for WooCommerce: by Facebook – 3.1.5
   >     MonsterInsights Pro: by MonsterInsights – 8.23.0
   >     Jetpack: by Automattic – 12.9
   >     Kangaroo Rewards: by Kangaroo Rewards – 2.0.12
   >     Mailchimp for WooCommerce: by Mailchimp – 3.5
   >     WooCommerce Authorize.Net Gateway: by Pledged Plugins – 6.0.7
   >     Woo Discount Rules PRO 2.0: by Flycart – 2.6.1
   >     Woo Discount Rules: by Flycart – 2.6.2
   >     WooCommerce Product Vendors: by WooCommerce – 2.2.4
   >     WooCommerce Shipping & Tax: by WooCommerce – 2.4.2
   >     WooCommerce: by Automattic – 8.4.0
   >     Yoast SEO: by Team Yoast – 21.7
   >     WP Mail SMTP Pro: by WP Mail SMTP – 3.11.0
   >     WP SMS Pro Pack: by VeronaLabs – 4.0.3
   >     WP SMS: by VeronaLabs – 6.4.2
   >     WPForms Custom Captcha: by WPForms – 1.8.0
   >     WPForms: by WPForms – 1.8.5.3
   >     YITH WooCommerce Ajax Product Filter Premium: by YITH – 4.28.0 Inactive Plugins (11)
   > 
   >     Advanced Local Pickup for WooCommerce: by zorem – 1.6.0
   >     Blocksy DB Migration: by CreativeThemes – 1.0.2
   >     MonsterInsights - eCommerce Addon: by MonsterInsights Team – 8.5.1
   >     MonsterInsights - Forms Tracking Addon: by MonsterInsights Team – 2.3.0
   >     MonsterInsights - Page Insights Addon: by MonsterInsights Team – 1.6.0
   >     MonsterInsights - Performance Addon: by MonsterInsights Team – 1.8.0
   >     MonsterInsights - User Journey Addon: by MonsterInsights Team – 1.1.1
   >     WPCode Lite: by WPCode – 2.1.6
   >     WP Engine Automated Migration: by WPEngine – 5.25
   >     WP File Manager: by mndpsingh287 – 7.2.1
   >     WP STAGING - Backup Duplicator & Migration: by WP-STAGING
   >     WPStagingBackup – 3.1.4 Dropin Plugins (2)
   > 
   >     advanced-cache.php: advanced-cache.php
   >     object-cache.php: Memcached Redux Must Use Plugins (6)
   > 
   >     Force Strong Passwords - WPE Edition: by Jason Cosper – 1.8.0
   >     ManageWP - Worker Loader: by GoDaddy – 1.0.0
   >     WP Engine Cache Plugin: by WP Engine – 1.1.4
   >     WP Engine Seamless Login Plugin: by WP Engine – 1.6.1
   >     WP Engine Security Auditor: by wpengine – 1.1.1
   >     WP Engine System: by WP Engine – 5.0.1 Settings
   > 
   >     API Enabled: –
   >     Force SSL: –
   >     Currency: USD ($)
   >     Currency Position: left
   >     Thousand Separator: ,
   >     Decimal Separator: .
   >     Number of Decimals: 2
   >     Taxonomies: Product Types: auction (auction)
   >     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 Woo.com: ✔
   >     Enforce Approved Product Download Directories: –
   >     HPOS feature screen enabled: –
   >     HPOS feature enabled: –
   >     Order datastore: WC_Order_Data_Store_CPT
   >     HPOS data sync enabled: – WC Pages
   > 
   >     Shop base: #206140 - /all-products/
   >     Cart: #7 - /cart/
   >     Checkout: #8 - /checkout/
   >     My account: #9 - /my-account/
   >     Terms and conditions: #819 - /curbside-pickupreturn-policies/ Theme
   > 
   >     Name: Blocksy Child
   >     Version: (update to version 0 is available)
   >     Author URL:
   >     Child Theme: ✔
   >     Parent Theme Name: Blocksy
   >     Parent Theme Version: 2.0.9
   >     Parent Theme Author URL: https://creativethemes.com
   >     WooCommerce Support: ✔ Templates
   > 
   >     Overrides: blocksy/woocommerce/cart/cart.php
   >     blocksy/woocommerce/cart/mini-cart.php
   >     blocksy/woocommerce/content-widget-product.php
   >     blocksy/woocommerce/content-widget-reviews.php
   >     blocksy-child/woocommerce/emails/customer-processing-order.php
   >     blocksy/woocommerce/myaccount/my-account.php
   >     blocksy/woocommerce/product-searchform.php
   >     blocksy/woocommerce/single-product/tabs/tabs.php Admin
   > 
   >     Enabled Features: activity-panels
   >     analytics
   >     product-block-editor
   >     coupons
   >     core-profiler
   >     customer-effort-score-tracks
   >     import-products-task
   >     experimental-fashion-sample-products
   >     shipping-smart-defaults
   >     shipping-setting-tour
   >     homescreen
   >     marketing
   >     mobile-app-banner
   >     navigation
   >     onboarding
   >     onboarding-tasks
   >     product-variation-management
   >     product-virtual-downloadable
   >     remote-inbox-notifications
   >     remote-free-extensions
   >     payment-gateway-suggestions
   >     shipping-label-banner
   >     subscriptions
   >     store-alerts
   >     transient-notices
   >     woo-mobile-welcome
   >     wc-pay-promotion
   >     wc-pay-welcome-page
   > 
   >     Disabled Features: customize-store
   >     minified-js
   >     new-product-management-experience
   >     product-external-affiliate
   >     settings
   >     async-product-editor-category-field
   > 
   >     Daily Cron: ✔ Next scheduled: 2023-12-14 20:24:27 -08:00
   >     Options: ✔
   >     Notes: 182
   >     Onboarding: completed Action Scheduler
   > 
   >     Canceled: 355
   >     Oldest: 2023-11-14 10:35:54 -0800
   >     Newest: 2023-12-14 10:40:35 -0800
   > 
   >     Complete: 34,580
   >     Oldest: 2023-11-13 16:00:52 -0800
   >     Newest: 2023-12-14 11:52:17 -0800
   > 
   >     Failed: 25
   >     Oldest: 2023-11-14 12:30:54 -0800
   >     Newest: 2023-12-13 15:39:25 -0800
   > 
   >     Pending: 13
   >     Oldest: 2023-12-14 15:26:18 -0800
   >     Newest: 2023-12-21 07:50:06 -0800 Status report information
   > 
   >     Generated at: 2023-12-14 11:58:38 -08:00
   >     `
   >     ```
   > 
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fundefined-array-key-10-in-class-wp-hook-php%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Moderator [Julia Golomb](https://wordpress.org/support/users/juliarosia/)
 * (@juliarosia)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/undefined-array-key-10-in-class-wp-hook-php/#post-17279106)
 * The errors you’re encountering in `class-wp-hook.php` are indicative of a problem
   with the way hooks (actions or filters) are being used or executed in your WordPress
   installation. The specific errors suggest that there’s an attempt to iterate 
   over something that isn’t an array or object, which is causing PHP to throw warnings.
   Here’s how you can approach troubleshooting this issue:
    1. **Check for Recent Changes:**
 *  - Reflect on any recent changes made to your site. This includes updates to 
      plugins, themes, or WordPress core, as well as any custom code modifications.
      If the issue started occurring after a specific change, that change is likely
      the culprit.
 * 2. **Theme and Plugin Conflict Check:**
    - Even though you’ve deactivated all plugins, it’s worth checking if the issue
      persists with a default WordPress theme (like Twenty Twenty-One). If the issue
      resolves with the default theme, the problem might be with your current theme.
    - Reactivate your plugins one by one, testing each time to see if the issue 
      reoccurs. This can help pinpoint if a specific plugin is causing the conflict.
 * 3. **Debugging:**
    - Enable WordPress debugging by setting `WP_DEBUG` to true in your `wp-config.
      php` file. This might provide more detailed error messages. Be sure to monitor
      the debug.log file in the `wp-content` directory.
    - Since the error points to a specific line in `class-wp-hook.php`, examining
      the surrounding code and understanding the context might give clues. However,
      modifications should not be made directly in WordPress core files.
 * 4. **PHP Version:**
    - You’re using PHP 8.2.12. Ensure that all your themes and plugins are compatible
      with this PHP version. Incompatibilities can often lead to unexpected behaviors.
 * 5. **Review Custom Code:**
    - If you have added any custom code snippets (in your theme’s `functions.php`
      file, a site-specific plugin, or through a code snippets plugin), review them
      to ensure they are correctly written. Pay special attention to add_action 
      and add_filter calls.
 * 6. **Consult Theme and Plugin Support:**
    - Since the issue could be related to a specific theme or plugin, consider reaching
      out to the support forums for your theme and plugins. They might be aware 
      of the issue or similar reports from other users.
 * 7. **Server and Hosting Check:**
    - Consult with your hosting provider to see if there have been any recent changes
      in the hosting environment that might affect your WordPress installation.
 * 8.**Restore Backup:**
    - If you have a recent backup from before the issue started occurring, consider
      restoring it. This can help determine if the issue is with the site content
      or configuration.
 * It’s advisable to debug in a staging environment rather than on your live site.
   This prevents any potential disruptions to your visitors and allows you to troubleshoot
   more freely.

Viewing 1 replies (of 1 total)

The topic ‘Undefined Array Key 10 in class-wp-hook.php’ is closed to new replies.

## Tags

 * [php](https://wordpress.org/support/topic-tag/php/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [Julia Golomb](https://wordpress.org/support/users/juliarosia/)
 * Last activity: [2 years, 6 months ago](https://wordpress.org/support/topic/undefined-array-key-10-in-class-wp-hook-php/#post-17279106)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
