Title: PHP Error when hook is executed on admin page
Last modified: February 24, 2022

---

# PHP Error when hook is executed on admin page

 *  Resolved [legraindeweb](https://wordpress.org/support/users/legraindeweb/)
 * (@legraindeweb)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/php-error-when-hook-is-executed-on-admin-page/)
 * Hello,
 * I have a woocommerce wordpress, and i am using Divi with child theme, and inside
   this child theme i added thoses lines to modify the display of my product page:
 * remove_action( ‘woocommerce_after_single_product_summary’, ‘woocommerce_output_product_data_tabs’,
   10 );
    add_action( ‘woocommerce_single_product_summary’, ‘woocommerce_output_product_data_tabs’,
   31 );
 * Works fine on the frontend, but gets me a php fatal error when i try to use divi
   theme builder when i want to modify global footer :
 * PHP Fatal error: Uncaught Error: Call to a member function has_weight() on null
   in C:\dev\trompette\wp-content\plugins\woocommerce\includes\wc-template-functions.
   php:3436
    Stack trace: #0 C:\dev\trompette\wp-includes\class-wp-hook.php(307):
   wc_display_product_attributes(NULL) #1 C:\dev\trompette\wp-includes\class-wp-
   hook.php(331): WP_Hook->apply_filters(”, Array) #2 C:\dev\trompette\wp-includes\
   plugin.php(474): WP_Hook->do_action(Array) #3 C:\dev\trompette\wp-content\plugins\
   woocommerce\templates\single-product\tabs\additional-information.php(30): do_action(‘
   woocommerce_pro…’, NULL) #4 C:\dev\trompette\wp-content\plugins\woocommerce\includes\
   wc-core-functions.php(345): include(‘C:\\dev\\trompett…’) #5 C:\dev\trompette\
   wp-content\plugins\woocommerce\includes\wc-template-functions.php(1820): wc_get_template(‘
   single-product/…’) #6 C:\dev\trompette\wp-content\plugins\woocommerce\templates\
   single-product\tabs\tabs.php(47): woocommerce_product_additional_information_tab(‘
   additional_info…’, Array) #7 C:\dev\trompette\wp-cont in C:\dev\trompette\wp-
   content\plugins\woocommerce\includes\wc-template-functions.php on line 3436
 * Is there any way i can add_action only for the frontend pages ? So far i tried:
 * function trompette_woocommerce_output_product_data_tabs() {
    $result = null; 
   if( !is_admin() ) { $result = woocommerce_output_product_data_tabs(); } return
   $result; }
 * add_action( ‘woocommerce_single_product_summary’, ‘trompette_woocommerce_output_product_data_tabs’,
   31 );
 * But also doesn’t work. Any idea how i could best fix it ?
    Thanks in advance 
   for your help.

Viewing 10 replies - 1 through 10 (of 10 total)

 *  [Mirko P.](https://wordpress.org/support/users/rainfallnixfig/)
 * (@rainfallnixfig)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/php-error-when-hook-is-executed-on-admin-page/#post-15400024)
 * Hi [@legraindeweb](https://wordpress.org/support/users/legraindeweb/),
 * There seems to be an issue with your PHP single quotes. You may need to check
   and use the correct character.
 * ![](https://i0.wp.com/snipboard.io/v4LWTD.jpg?ssl=1)
 * We normally recommend using the [Code Snippets](https://wordpress.org/plugins/code-snippets/)
   plugin to add PHP code. There is an option to run the snippet on the site front-
   end only.
 * ![](https://i0.wp.com/snipboard.io/nqJXwa.jpg?ssl=1)
 * Hope this helps!
 *  Thread Starter [legraindeweb](https://wordpress.org/support/users/legraindeweb/)
 * (@legraindeweb)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/php-error-when-hook-is-executed-on-admin-page/#post-15400117)
 * Hi [@rainfallnixfig](https://wordpress.org/support/users/rainfallnixfig/)
    Thanks
   for your response.
 * The quotes are OK, just an copy/paste error, sorry.
 * I tried using code snippets instead of the line in function.php file but i get
   the exact same PHP error.
 * Any other idea ?
    Thanks !
 *  [hegenberg](https://wordpress.org/support/users/hegenberg/)
 * (@hegenberg)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/php-error-when-hook-is-executed-on-admin-page/#post-15401581)
 * Hi there,
 * You can try wrapping up your actions in a _not admin_ condition.
 * Like so:
 *     ```
       if(!is_admin()) {
       remove_action( ‘woocommerce_after_single_product_summary’, ‘woocommerce_output_product_data_tabs’, 10 );
       add_action( ‘woocommerce_single_product_summary’, ‘woocommerce_output_product_data_tabs’, 31 );
       }
       ```
   
 * I hope that helps.
 *  Thread Starter [legraindeweb](https://wordpress.org/support/users/legraindeweb/)
 * (@legraindeweb)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/php-error-when-hook-is-executed-on-admin-page/#post-15401743)
 * Hello,
    Thanks for your feedback. Already tried that, doesn’t work neither. What
   else can i try ?
 * Best regards
 *  [hegenberg](https://wordpress.org/support/users/hegenberg/)
 * (@hegenberg)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/php-error-when-hook-is-executed-on-admin-page/#post-15401789)
 * Hi,
 * > Already tried that, doesn’t work neither.
 * That’s strange.
    Can you confirm if you’re changing your global footer from the
   back end, via _Wp-Admin Dashboard → Divi → Theme Builder_?
 * Best,
 *  Thread Starter [legraindeweb](https://wordpress.org/support/users/legraindeweb/)
 * (@legraindeweb)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/php-error-when-hook-is-executed-on-admin-page/#post-15401803)
 * Yes exactly. Actually i have the exact same PHP error for global header.
 *  [aetta](https://wordpress.org/support/users/chiape/)
 * (@chiape)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/php-error-when-hook-is-executed-on-admin-page/#post-15402085)
 * Hi [@legraindeweb](https://wordpress.org/support/users/legraindeweb/)
 * Are you, by chance, using a weight plugin or custom code for your products (and
   products variations)?
 * Also, could you 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.
 * Thank you!
 *  Thread Starter [legraindeweb](https://wordpress.org/support/users/legraindeweb/)
 * (@legraindeweb)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/php-error-when-hook-is-executed-on-admin-page/#post-15403076)
 * I desactivated all plugins except woocommerce for testing purposes, but it doesn’t
   solve it.
 * Here is the status :
 *     ```
       ### WordPress Environment ###
   
       WordPress address (URL): http://trompette-store.com
       Site address (URL): http://trompette-store.com
       WC Version: 6.2.1
       REST API Version: ✔ 6.2.1
       WC Blocks Version: ✔ 6.7.3
       Action Scheduler Version: ✔ 3.4.0
       WC Admin Version: ✔ 3.1.0
       Log Directory Writable: ✔
       WP Version: 5.9.1
       WP Multisite: –
       WP Memory Limit: 256 Mo
       WP Debug Mode: ✔
       WP Cron: ✔
       Language: fr_FR
       External object cache: –
   
       ### Server Environment ###
   
       Server Info: Apache/2.4.23 (Win64) PHP/7.4.11
       PHP Version: 7.4.11
       PHP Post Max Size: 64 Mo
       PHP Time Limit: 30
       PHP Max Input Vars: 1000
       cURL Version: 7.70.0
       OpenSSL/1.1.1g
   
       SUHOSIN Installed: –
       MySQL Version: 5.7.17-log
       Max Upload Size: 64 Mo
       Default Timezone is UTC: ✔
       fsockopen/cURL: ✔
       SoapClient: ✔
       DOMDocument: ✔
       GZip: ✔
       Multibyte String: ✔
       Remote Post: ✔
       Remote Get: ✔
   
       ### Database ###
   
       WC Database Version: 6.2.1
       WC Database Prefix: wor4070_
       Taille totale de la base de données: 38.86MB
       Taille de la base de données: 28.01MB
       Taille de l’index: 10.85MB
       wor4070_woocommerce_sessions: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
       wor4070_woocommerce_api_keys: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
       wor4070_woocommerce_attribute_taxonomies: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
       wor4070_woocommerce_downloadable_product_permissions: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
       wor4070_woocommerce_order_items: Données : 0.07MB + Index : 0.04MB + Moteur MyISAM
       wor4070_woocommerce_order_itemmeta: Données : 0.41MB + Index : 0.29MB + Moteur MyISAM
       wor4070_woocommerce_tax_rates: Données : 0.00MB + Index : 0.01MB + Moteur MyISAM
       wor4070_woocommerce_tax_rate_locations: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
       wor4070_woocommerce_shipping_zones: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
       wor4070_woocommerce_shipping_zone_locations: Données : 0.00MB + Index : 0.01MB + Moteur MyISAM
       wor4070_woocommerce_shipping_zone_methods: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
       wor4070_woocommerce_payment_tokens: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
       wor4070_woocommerce_payment_tokenmeta: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
       wor4070_woocommerce_log: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
       wor4070_actionscheduler_actions: Données : 0.09MB + Index : 0.16MB + Moteur InnoDB
       wor4070_actionscheduler_claims: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB
       wor4070_actionscheduler_groups: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB
       wor4070_actionscheduler_logs: Données : 0.09MB + Index : 0.09MB + Moteur InnoDB
       wor4070_admin_columns: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB
       wor4070_bsearch: Données : 0.07MB + Index : 0.11MB + Moteur MyISAM
       wor4070_bsearch_daily: Données : 0.22MB + Index : 0.24MB + Moteur MyISAM
       wor4070_bwg_album: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
       wor4070_bwg_album_gallery: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
       wor4070_bwg_gallery: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
       wor4070_bwg_image: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
       wor4070_bwg_image_comment: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
       wor4070_bwg_image_rate: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
       wor4070_bwg_image_tag: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
       wor4070_bwg_option: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
       wor4070_bwg_shortcode: Données : 0.01MB + Index : 0.00MB + Moteur MyISAM
       wor4070_bwg_theme: Données : 0.03MB + Index : 0.00MB + Moteur MyISAM
       wor4070_bw_pricing_items: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB
       wor4070_cdi: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
       wor4070_cmeb_free_domains: Données : 0.05MB + Index : 0.03MB + Moteur MyISAM
       wor4070_cmeb_userlist: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
       wor4070_commentmeta: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
       wor4070_comments: Données : 0.72MB + Index : 0.31MB + Moteur MyISAM
       wor4070_cwa: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
       wor4070_emc_addresses: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
       wor4070_emc_categories: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
       wor4070_emc_dimensions: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
       wor4070_emc_operators: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
       wor4070_emc_operators_authorized_contents: Données : 0.01MB + Index : 0.01MB + Moteur MyISAM
       wor4070_emc_pricing: Données : 0.00MB + Index : 0.01MB + Moteur MyISAM
       wor4070_emc_services: Données : 0.05MB + Index : 0.00MB + Moteur MyISAM
       wor4070_fca_eoi_activity: Données : 0.26MB + Index : 0.60MB + Moteur MyISAM
       wor4070_fca_eoi_subscribers: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
       wor4070_finaltiles_gallery: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
       wor4070_finaltiles_gallery_images: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
       wor4070_flag_album: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
       wor4070_flag_comments: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
       wor4070_flag_gallery: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
       wor4070_flag_pictures: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
       wor4070_gallery_albums: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB
       wor4070_gallery_master: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB
       wor4070_gallery_master_licensing: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB
       wor4070_gallery_master_meta: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB
       wor4070_gallery_master_settings: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB
       wor4070_gallery_pics: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB
       wor4070_gallery_settings: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB
       wor4070_gg_folders: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB
       wor4070_gg_galleries: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB
       wor4070_gg_galleries_excluded: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB
       wor4070_gg_galleries_resources: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB
       wor4070_gg_photos: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB
       wor4070_gg_photos_pos: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB
       wor4070_gg_photos_settings: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB
       wor4070_gg_settings_presets: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB
       wor4070_gg_settings_sets: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB
       wor4070_gg_stats: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB
       wor4070_gg_tags: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB
       wor4070_gmedia: Données : 0.00MB + Index : 0.01MB + Moteur MyISAM
       wor4070_gmedia_meta: Données : 0.01MB + Index : 0.01MB + Moteur MyISAM
       wor4070_gmedia_term: Données : 0.00MB + Index : 0.01MB + Moteur MyISAM
       wor4070_gmedia_term_meta: Données : 0.00MB + Index : 0.01MB + Moteur MyISAM
       wor4070_gmedia_term_relationships: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
       wor4070_gmp_icons: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
       wor4070_gmp_maps: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
       wor4070_gmp_markers: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
       wor4070_gmp_marker_groups: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
       wor4070_gmp_marker_groups_relation: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
       wor4070_gmp_membership_presets: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
       wor4070_gmp_modules: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
       wor4070_gmp_modules_type: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
       wor4070_gmp_options: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
       wor4070_gmp_options_categories: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
       wor4070_gmp_usage_stat: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
       wor4070_gmwd_circles: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
       wor4070_gmwd_maps: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
       wor4070_gmwd_mapstyles: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
       wor4070_gmwd_markercategories: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
       wor4070_gmwd_markers: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
       wor4070_gmwd_options: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
       wor4070_gmwd_polygons: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
       wor4070_gmwd_polylines: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
       wor4070_gmwd_rectangles: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
       wor4070_gmwd_shortcodes: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
       wor4070_gmwd_themes: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
       wor4070_g_circles: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
       wor4070_g_maps: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
       wor4070_g_markers: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
       wor4070_g_polygones: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
       wor4070_g_polylines: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
       wor4070_hugeit_lightbox: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
       wor4070_huge_itgallery_gallerys: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
       wor4070_huge_itgallery_images: Données : 0.01MB + Index : 0.00MB + Moteur MyISAM
       wor4070_huge_itgallery_like_dislike: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
       wor4070_huge_itportfolio_images: Données : 0.01MB + Index : 0.00MB + Moteur MyISAM
       wor4070_huge_itportfolio_portfolios: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
       wor4070_instock_email_alert: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
       wor4070_links: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
       wor4070_lpc_inward_label: Données : 0.02MB + Index : 0.05MB + Moteur InnoDB
       wor4070_lpc_outward_label: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB
       wor4070_masterslider_options: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
       wor4070_masterslider_sliders: Données : 0.01MB + Index : 0.00MB + Moteur MyISAM
       wor4070_modula: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
       wor4070_modula_images: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
       wor4070_optinrev: Données : 0.01MB + Index : 0.00MB + Moteur MyISAM
       wor4070_options: Données : 1.91MB + Index : 0.18MB + Moteur MyISAM
       wor4070_postmeta: Données : 14.05MB + Index : 2.28MB + Moteur MyISAM
       wor4070_posts: Données : 2.61MB + Index : 3.44MB + Moteur MyISAM
       wor4070_promag_email_templates: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
       wor4070_promag_fields: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
       wor4070_promag_friends: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
       wor4070_promag_groups: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
       wor4070_promag_group_requests: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
       wor4070_promag_msg_conversation: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
       wor4070_promag_msg_threads: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
       wor4070_promag_notification: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
       wor4070_promag_paypal_log: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
       wor4070_promag_sections: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
       wor4070_sgpb_subscribers: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
       wor4070_sgpb_subscription_error_log: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
       wor4070_snippets: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB
       wor4070_termmeta: Données : 0.02MB + Index : 0.02MB + Moteur MyISAM
       wor4070_terms: Données : 0.02MB + Index : 0.03MB + Moteur MyISAM
       wor4070_term_relationships: Données : 0.09MB + Index : 0.17MB + Moteur MyISAM
       wor4070_term_taxonomy: Données : 0.01MB + Index : 0.02MB + Moteur MyISAM
       wor4070_unitegallery_categories: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
       wor4070_unitegallery_galleries: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
       wor4070_unitegallery_items: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
       wor4070_upela_connector: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
       wor4070_usermeta: Données : 1.19MB + Index : 0.58MB + Moteur MyISAM
       wor4070_users: Données : 0.07MB + Index : 0.08MB + Moteur MyISAM
       wor4070_wcpdf_invoice_number: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
       wor4070_wcpdf_packing_slip_number: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB
       wor4070_wc_admin_notes: Données : 0.06MB + Index : 0.00MB + Moteur InnoDB
       wor4070_wc_admin_note_actions: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB
       wor4070_wc_category_lookup: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB
       wor4070_wc_customer_lookup: Données : 0.09MB + Index : 0.06MB + Moteur InnoDB
       wor4070_wc_download_log: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
       wor4070_wc_order_coupon_lookup: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB
       wor4070_wc_order_product_lookup: Données : 0.09MB + Index : 0.06MB + Moteur InnoDB
       wor4070_wc_order_stats: Données : 0.06MB + Index : 0.05MB + Moteur InnoDB
       wor4070_wc_order_tax_lookup: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB
       wor4070_wc_product_meta_lookup: Données : 0.09MB + Index : 0.19MB + Moteur InnoDB
       wor4070_wc_rate_limits: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB
       wor4070_wc_reserved_stock: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB
       wor4070_wc_tax_rate_classes: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB
       wor4070_wc_webhooks: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
       wor4070_wdi_feeds: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
       wor4070_wdi_themes: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
       wor4070_wdpslayer: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
       wor4070_wdpsslide: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
       wor4070_wdpsslider: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
       wor4070_wd_fb_data: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
       wor4070_wd_fb_info: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
       wor4070_wd_fb_option: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
       wor4070_wd_fb_shortcode: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
       wor4070_wd_fb_theme: Données : 0.01MB + Index : 0.00MB + Moteur MyISAM
       wor4070_woof_query_cache: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
       wor4070_wpr_rucss_resources: Données : 0.02MB + Index : 0.06MB + Moteur InnoDB
       wor4070_wpr_rucss_used_css: Données : 0.02MB + Index : 0.05MB + Moteur InnoDB
       wor4070_wpshop__attribute: Données : 0.01MB + Index : 0.03MB + Moteur MyISAM
       wor4070_wpshop__attributes_unit: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
       wor4070_wpshop__attributes_unit_groups: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
       wor4070_wpshop__attribute_set: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
       wor4070_wpshop__attribute_set_section: Données : 0.00MB + Index : 0.01MB + Moteur MyISAM
       wor4070_wpshop__attribute_set_section_details: Données : 0.00MB + Index : 0.01MB + Moteur MyISAM
       wor4070_wpshop__attribute_value_datetime: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
       wor4070_wpshop__attribute_value_decimal: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
       wor4070_wpshop__attribute_value_integer: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
       wor4070_wpshop__attribute_value_options: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
       wor4070_wpshop__attribute_value_text: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
       wor4070_wpshop__attribute_value_varchar: Données : 0.00MB + Index : 0.01MB + Moteur MyISAM
       wor4070_wpshop__attribute_value__histo: Données : 0.00MB + Index : 0.01MB + Moteur MyISAM
       wor4070_wpuser_loginattempts: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
       wor4070_yith_ywpar_points_log: Données : 0.03MB + Index : 0.01MB + Moteur MyISAM
       wor4070_yoast_indexable: Données : 4.52MB + Index : 1.02MB + Moteur InnoDB
       wor4070_yoast_indexable_hierarchy: Données : 0.09MB + Index : 0.14MB + Moteur InnoDB
       wor4070_yoast_migrations: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB
       wor4070_yoast_primary_term: Données : 0.05MB + Index : 0.03MB + Moteur InnoDB
       wor4070_yoast_seo_links: Données : 0.03MB + Index : 0.01MB + Moteur MyISAM
       wor4070_yoast_seo_meta: Données : 0.06MB + Index : 0.05MB + Moteur MyISAM
   
       ### Post Type Counts ###
   
       attachment: 3068
       bnfw_notification: 1
       br_labels: 1
       chch-pop-up: 1
       custom-slider: 1
       custom_css: 3
       easy-opt-ins: 2
       easymediagallery: 2
       easy_popup_show: 1
       envira: 1
       et_footer_layout: 2
       et_header_layout: 2
       et_pb_layout: 50
       et_template: 2
       et_theme_builder: 1
       feedback: 257
       flagallery: 1
       font: 1
       foogallery: 1
       gmedia: 14
       gmedia_album: 1
       gmedia_gallery: 1
       jetpack_migration: 2
       maxgallery: 1
       mc4wp-form: 2
       mpsp_slider: 1
       nav_menu_item: 48
       oembed_cache: 11
       page: 69
       popup: 1
       popupbuilder: 3
       popup_theme: 6
       post: 32
       product: 345
       product_slider: 1
       product_variation: 1
       revision: 2
       robo_gallery_table: 1
       safecss: 1
       shop_coupon: 1
       shop_order: 424
       shop_order_refund: 3
       sidebar: 1
       slideshow: 1
       wcps: 1
       wdi_instagram: 2
       woocarousel: 1
       wpshop_address: 1
       wpshop_customers: 5
       wpshop_entities: 3
       wpshop_shop_message: 15
       wps_bubble: 15
       yith_wcps_type: 1
   
       ### Security ###
   
       Secure connection (HTTPS): ❌
       					Votre boutique n’utilise pas HTTPS. En savoir plus sur HTTPS et les certificats SSL.
       Hide errors from visitors: ❌Les messages d’erreur ne doivent pas s’afficher aux visiteurs.
   
       ### Active Plugins (3) ###
   
       Code Snippets: par Code Snippets Pro – 2.14.3
       WooCommerce: par Automattic – 6.2.1
       WP-Sweep: par Lester « GaMerZ » Chan – 1.1.5
   
       ### Inactive Plugins (42) ###
   
       Admin Columns: par AdminColumns.com – 4.4.5
       Akismet Anti-Spam: par Automattic – 4.2.2
       BBQ Firewall: par Jeff Starr – 20220122
       Better Notifications for WP: par Made with Fuel – 1.8.11
       Better Search: par Ajay D'Souza – 3.0.3
       Black Studio TinyMCE Widget: par Black Studio – 2.7.0
       Boxtal: par Boxtale – 2.2.2
       Boxtal Connect: par API Boxtal – 1.2.12
       Colissimo shipping methods for WooCommerce: par Colissimo – 1.6.7
       Cookie Notice & Compliance for GDPR / CCPA: par Hu-manity.co – 2.2.2
       Dave's WordPress Live Search: par Dave Ross – 4.8.1
       Easy Google Maps: par supsystic.com – 1.11.5
       Flexible Shipping: par WP Desk – 4.11.2
       Forms for Mailchimp by Optin Cat: par Fatcat Apps – 2.5.4
       Google Analytics Dashboard for WP (GADWP): par ExactMetrics – 7.3.4
       Instock Email Alert for Woocommerce: par Laszlo Kruchio – 1.1.2
       Loco Translate: par Tim Whitlock – 2.5.8
       Ni WooCommerce Order Export: par anzia – 3.1.1
       Popup Builder: par Sygnoos – 4.1.0
       reSmush.it Image Optimizer: par reSmush.it – 0.4.2
       SI Captcha Anti-Spam: par fastsecure – 3.0.3
       Smart Manager For WooCommerce – Stock Management, Bulk Edit & more...: par StoreApps – 5.36.0
       StoreYa's Shop to Facebook for WooCommerce: par StoreYa – 2.6
       Use Any Font: par Dnesscarkey – 6.2.1
       Widget Disable: par required – 2.0.0
       WooCommerce Auto Restore Stock: par Gerhard Potgieter – 1.0.1
       WooCommerce Cart Tab: par jameskoster – 1.1.2
       Woocommerce Catalog: par Leonidas Maroulis – 1.2.5
       WooCommerce Display Products by Tags: par Sebs Studio – 1.0.0
       WooCommerce PDF Invoices & Packing Slips: par WP Overnight – 2.13.1
       WooCommerce Product Carousel Slider: par wpWax – 3.3.5
       WooSidebars: par WooCommerce – 1.4.5
       WPB WooCommerce Related Products Slider PRO: par wpbean – 1.09.6
       WP Custom Widget area: par Kishor Khambu – 1.2.5
       WP Instagram Widget: par Scott Evans – 2.0.3
       WP Migrate DB: par Delicious Brains – 2.2.2
       WP Next/Prev Product Navigator: par Miro N – 1.0.0
       WP Rocket: par WP Media – 3.10.6
       YITH Essential Kit for WooCommerce #1: par YITH – 2.6.0
       YITH WooCommerce Product Gallery & Image Zoom: par YITH – 2.6.0
       Yoast Duplicate Post: par Enrico Battocchi & Team Yoast – 4.4
       Yoast SEO: par Team Yoast – 18.2
   
       ### Settings ###
   
       API Enabled: ✔
       Force SSL: –
       Currency: EUR (€)
       Currency Position: right_space
       Thousand Separator: 
       Decimal Separator: ,
       Number of Decimals: 2
       Taxonomies: Product Types: simple (simple)
       Taxonomies: Product Visibility: featured (featured)
       outofstock (outofstock)
   
       Connected to WooCommerce.com: –
   
       ### WC Pages ###
   
       Base de la boutique: #23154 - /boutique/
       Panier: #5 - /panier/
       Commander: #6 - /commande/
       Mon compte: #7 - /mon-compte/
       Conditions générales de vente et d’utilisation: #21443 - /conditions-generales-de-vente-2/
   
       ### Theme ###
   
       Name: Divi Child
       Version: 1.0.1453950285
       Author URL: 
       Child Theme: ✔
       Parent Theme Name: Divi
       Parent Theme Version: 4.14.8
       Parent Theme Author URL: http://www.elegantthemes.com
       WooCommerce Support: ✔
   
       ### Templates ###
   
       Overrides: –
   
       ### Action Scheduler ###
   
       Terminé: 313
       Oldest: 2022-01-25 09:49:41 +0100
       Newest: 2022-02-25 09:47:15 +0100
   
       ### Status report information ###
   
       Generated at: 2022-02-25 09:49:45 +01:00
       ```
   
 * Thanks
 *  [Mirko P.](https://wordpress.org/support/users/rainfallnixfig/)
 * (@rainfallnixfig)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/php-error-when-hook-is-executed-on-admin-page/#post-15404353)
 * Hi [@legraindeweb](https://wordpress.org/support/users/legraindeweb/),
 * The best way forward would be performing a **full conflict test** to narrow down
   a bit and locate the culprit. That means, aside from deactivating all plugins
   except WooCommerce also **switching to a default theme like Storefront**.
 * If you don’t see the same problem, that means your theme or another plugin is
   conflicting with WooCommerce.
 * Reactivate the theme first and check again. Then, go on and reactivate your other
   plugins one by one, testing after each, until you find the one causing conflict.
 * You can find a more detailed explanation on how to do a conflict test here: [https://docs.woocommerce.com/document/how-to-test-for-conflicts/](https://docs.woocommerce.com/document/how-to-test-for-conflicts/).
 * Thanks.
    -  This reply was modified 4 years, 3 months ago by [Mirko P.](https://wordpress.org/support/users/rainfallnixfig/).
 *  [MayKato](https://wordpress.org/support/users/maykato/)
 * (@maykato)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/php-error-when-hook-is-executed-on-admin-page/#post-15429952)
 * Hi [@legraindeweb](https://wordpress.org/support/users/legraindeweb/)
 * We’ve not heard back from you in a while, so I’m marking this thread as resolved.
   Hopefully, you were able to find a solution to your problem! If you have further
   questions, please feel free to open a new topic.

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘PHP Error when hook is executed on admin page’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

## Tags

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

 * 10 replies
 * 5 participants
 * Last reply from: [MayKato](https://wordpress.org/support/users/maykato/)
 * Last activity: [4 years, 2 months ago](https://wordpress.org/support/topic/php-error-when-hook-is-executed-on-admin-page/#post-15429952)
 * Status: resolved