Tagged: 

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #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

    #1344518

    Hey 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,
    Rikard

    #1344550
    This reply has been marked as private.
    #1344557
    This reply has been marked as private.
    #1344573

    Hi,

    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,
    Yigit

    #1344600

    Dear Yigit,

    many thanks for your help. everything works fine now.
    highly appreciated for your quick service.
    Have a nice day:)

    #1344634

    Hi,

    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,
    Rikard

    #1345248

    issue solved. you can close this topic.
    thank you

    #1345272

    Hi,
    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

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘WooCommerce Fatal error after updated to 4.9 enfold’ is closed to new replies.