Home Forums WoodMart support forum Critical Error on Checkout Page After WooCommerce Update

Critical Error on Checkout Page After WooCommerce Update

Viewing 22 posts - 1 through 22 (of 22 total)
  • Author
    Posts
  • #668479

    mahnaz-7467
    Participant

    Hello,

    I’m encountering several issues on my website related to the checkout page while using the Woodmart theme.

    The checkout layout appears broken and not responsive on some devices.

    A critical error is also shown on the “Thank You” page after placing an order.

    When I switch to a default theme (e.g., Storefront), the issue disappears.

    I suspect the problem may have started after the recent WooCommerce update (version 9.9.3), but I’m not entirely certain.

    I’ve also noticed that some of the WooCommerce template files overridden by the Woodmart theme are outdated, including checkout/thankyou.php, which may be contributing to the issue.

    Attachments:
    You must be logged in to view attached files.
    #668501

    Luke Nielsen
    Keymaster

    Hello,

    May I disable 3rd party plugins and enable the default/parent theme for testing?

    Looking forward to collaborating with you!

    Kind Regards

    #668514

    mahnaz-7467
    Participant

    Yes, you can check it briefly, but please be careful — this is a live website
    I use this plugin to another website and work

    #668581

    Luke Nielsen
    Keymaster

    It seems that the issue is related to the 3rd party code in your child theme. You can be sure of that by enabling the parent theme, then the issue will be gone.

    Thank you for your time.

    Kind Regards

    #668912

    mahnaz-7467
    Participant

    My website is down!

    #668913

    mahnaz-7467
    Participant

    let me know which code?

    #669020

    Luke Nielsen
    Keymaster

    Hello,

    I do not have access to the Theme File Editor. Most likely, you have some code that overrides the Thank You page or something similar. You can remove all customization in the Child theme and then, in such a way, check which code affects it.

    Did you try to enable the Parent theme for testing?

    Kind Regards

    #669125

    mahnaz-7467
    Participant

    Thanks for your message.

    I reviewed the code in my Child Theme and didn’t find anything that should affect the Thank You page. The only customization I’ve added is two extra links in the My Account section (Special Offers and Updates). I’ve used the exact same code on another website without any issues.

    Here is the full code from my functions.php:

    <?php
    /**
    * Enqueue script and styles for child theme
    */
    function woodmart_child_enqueue_styles() {
    wp_enqueue_style( ‘child-style’, get_stylesheet_directory_uri() . ‘/style.css’, array( ‘woodmart-style’ ), woodmart_get_theme_info( ‘Version’ ) );
    }
    add_action( ‘wp_enqueue_scripts’, ‘woodmart_child_enqueue_styles’, 10010 );

    /**
    * Add custom Special Offers and Updates tabs to My Account
    */
    add_filter( ‘woocommerce_account_menu_items’, ‘add_custom_tabs_to_my_account’, 99 );
    function add_custom_tabs_to_my_account( $items ) {
    $items[‘special-offers’] = ‘Special Offers’;
    $items[‘updates’] = ‘Updates’;
    return $items;
    }

    // Register endpoints
    add_action( ‘init’, ‘add_custom_endpoints’ );
    function add_custom_endpoints() {
    add_rewrite_endpoint( ‘special-offers’, EP_ROOT | EP_PAGES );
    add_rewrite_endpoint( ‘updates’, EP_ROOT | EP_PAGES );
    }

    // Special Offers tab content
    add_action( ‘woocommerce_account_special-offers_endpoint’, ‘special_offers_content’ );
    function special_offers_content() {
    echo ‘<h3>Special Offers</h3>’;
    echo ‘<p>Check out some of our current promotions!</p>’;

    // Display WooCommerce Sale Products using Shortcode
    echo do_shortcode(‘[sale_products limit="9" columns="3" orderby="rand" order="DESC"]‘);

    // See More Offers button
    echo ‘<p style=”margin-top:20px;”>See More Offers</p>’;
    }

    // Updates tab content
    add_action( ‘woocommerce_account_updates_endpoint’, ‘updates_content’ );
    function updates_content() {
    echo ‘<h3>Website & Product Updates</h3>’;
    echo ‘<p>Stay informed with the latest updates, product news, and service announcements.</p>’;
    echo ‘<p>Click here to view our Updates.</p>’;
    }

    To test further, I even switched to the Parent Theme and tried placing a test order — but I’m still seeing the same issue on the Thank You page. That makes it even more strange, since it doesn’t seem to be caused by the theme at all.

    Attachments:
    You must be logged in to view attached files.
    #669140

    Luke Nielsen
    Keymaster

    Do you mean the same issue happens on the default theme?

    Kind Regards

    #669145

    mahnaz-7467
    Participant

    I just switched to the Woodmart theme and the Woodmart Child theme — the same issue still persists. I’m not using any other themes.

    Can you please show me which WooCommerce templates or functions are being overwritten by Woodmart? I suspect this could be causing the issue. On another website where I’m using an older version of WooCommerce, everything works fine — so this is really strange.

    #669154

    Luke Nielsen
    Keymaster

    Try to clear the browser cache. Here is a video from my end – https://dropmefiles.com.ua/en/DmHKX6

    Kind Regards

    #669159

    mahnaz-7467
    Participant

    Thanks for the quick reply.
    I also noticed a fatal error — please check the attached file for more details.

    Thanks

    #669162

    mahnaz-7467
    Participant

    Thanks for the quick reply.
    I also noticed a fatal error — please check the private part for more details.

    Thanks

    #669173

    Luke Nielsen
    Keymaster

    Hello,

    It looks like you didn’t update the theme properly. Try to delete the theme folder and then upload the latest version of the theme.

    Kind Regards

    #669176

    mahnaz-7467
    Participant

    Would you please guide me step by step?
    Does that mean I should use an old version of Woodmart?
    I’m confused

    #669181

    mahnaz-7467
    Participant

    I also checked my website and tried purchasing a product, but I saw that the problem is still not resolved.

    Attachments:
    You must be logged in to view attached files.
    #669183

    Luke Nielsen
    Keymaster

    Navigate to Appearance -> remove the theme at all, then via Add new -> Upload theme -> install the latest version of the theme. Then, recheck whether that error shows or not (XTS\Modules\Layouts\Free_Gifts…).

    Kind Regards

    #669196

    mahnaz-7467
    Participant

    I also checked my website and tried purchasing a product, but I saw that the problem is still not resolved.

    Attachments:
    You must be logged in to view attached files.
    #669206

    mahnaz-7467
    Participant

    I did it, but both problems still exist:

    Thank You Page – You mentioned it works on your end, but when I place an order, it’s not working on my site.

    Fatal Error – I removed the Woodmart theme and reinstalled it, but the same issue remains.

    #669285

    Luke Nielsen
    Keymaster

    The issue is in the “Edit Order by Customer” plugin, here is a video – https://dropmefiles.com.ua/en/TAcKaPRe

    Kind Regards

    #669447

    mahnaz-7467
    Participant

    your link not available and i can’t open that ,
    we use this plugin and edite order by customer in our another website hearfit.ca and work

    #669519

    Luke Nielsen
    Keymaster

    Hello,

    Here is a video – https://take.ms/wjaId

    Could you please check how it works with the WooCommerce Storefront theme to understand if it is our theme’s issue or not?

    Kind Regards

Viewing 22 posts - 1 through 22 (of 22 total)