Tagged: woocommerce
-
AuthorPosts
-
March 15, 2022 at 2:19 am #1344475
Dear support team.
My website home page and WooCommerce single product page shows error. could you please help me fix the error?
your prompt reply will be much appreciated:Fatal error: Uncaught TypeError: call_user_func_array(): Argument #1 ($callback) must be a valid callback, function “woocommerce_single_product_summary_button” not found or invalid function name in /home4/shinydec/public_html/wp-includes/class-wp-hook.php:307 Stack trace: #0 /home4/shinydec/public_html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array) #1 /home4/shinydec/public_html/wp-includes/plugin.php(474): WP_Hook->do_action(Array) #2 /home4/shinydec/public_html/wp-content/plugins/woocommerce/templates/content-single-product.php(60): do_action(‘woocommerce_sin…’) #3 /home4/shinydec/public_html/wp-includes/template.php(772): require(‘/home4/shinydec…’) #4 /home4/shinydec/public_html/wp-content/plugins/woocommerce/includes/wc-core-functions.php(284): load_template(‘/home4/shinydec…’, false) #5 /home4/shinydec/public_html/wp-content/themes/Enfold-child-theme/woocommerce/single-product.php(37): wc_get_template_part(‘content’, ‘single-product’) #6 /home4/shinydec/public_html/wp-includes/template-loader.php(106): include(‘/home4/shinydec…’) #7 /home4/shinydec/public_html/wp-blog-header.php(19): require_once(‘/home4/shinydec…’) #8 /home4/shinydec/public_html/index.php(17): require(‘/home4/shinydec…’) #9 {main} thrown in /home4/shinydec/public_html/wp-includes/class-wp-hook.php on line 307
March 15, 2022 at 11:03 am #1344518Hey keir2012,
Please send us a temporary WordPress admin login and login URL so that we can have a closer look. You can post the details in the Private Content section of your reply.
Best regards,
RikardMarch 15, 2022 at 12:43 pm #1344550This reply has been marked as private.March 15, 2022 at 1:11 pm #1344557This reply has been marked as private.March 15, 2022 at 3:07 pm #1344573Hi,
I commented out following code in functions.php file of your child theme and that helped
// add_action( 'woocommerce_single_product_summary', 'woocommerce_single_product_summary_button', 11); /** * Dequeue wc-fragments * Removes synchronous wp-admin/ajax request that happened on every page load when cart is non-empty. * This script is not in use and should be safe to disable. */ /* function dequeue_wc_fragments() { wp_dequeue_script( 'wc-cart-fragments' ); } add_action( 'wp_enqueue_scripts', 'dequeue_wc_fragments', 100 ); */
Please review your website.
Best regards,
YigitMarch 15, 2022 at 5:07 pm #1344600Dear Yigit,
many thanks for your help. everything works fine now.
highly appreciated for your quick service.
Have a nice day:)March 15, 2022 at 6:46 pm #1344634Hi,
Great, I’m glad that Yigit could help you out. Please let us know if you should need any further help on the topic or if we can close it.
Best regards,
RikardMarch 20, 2022 at 3:19 pm #1345248issue solved. you can close this topic.
thank youMarch 20, 2022 at 6:56 pm #1345272Hi,
Glad Yigit could help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.Best regards,
Mike -
AuthorPosts
- The topic ‘WooCommerce Fatal error after updated to 4.9 enfold’ is closed to new replies.