Home › Forums › WoodMart support forum › Critical Error on Checkout Page After WooCommerce Update
Critical Error on Checkout Page After WooCommerce Update
- This topic has 21 replies, 2 voices, and was last updated 2 months, 3 weeks ago by
Luke Nielsen.
-
AuthorPosts
-
June 19, 2025 at 4:23 pm #668479
mahnaz-7467ParticipantHello,
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.June 19, 2025 at 5:49 pm #668501
Luke NielsenKeymasterHello,
May I disable 3rd party plugins and enable the default/parent theme for testing?
Looking forward to collaborating with you!
Kind Regards
June 19, 2025 at 6:29 pm #668514
mahnaz-7467ParticipantYes, you can check it briefly, but please be careful — this is a live website
I use this plugin to another website and workJune 20, 2025 at 9:28 am #668581
Luke NielsenKeymasterIt 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
June 22, 2025 at 7:39 am #668912
mahnaz-7467ParticipantMy website is down!
June 22, 2025 at 7:39 am #668913
mahnaz-7467Participantlet me know which code?
June 23, 2025 at 10:47 am #669020
Luke NielsenKeymasterHello,
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
June 23, 2025 at 3:57 pm #669125
mahnaz-7467ParticipantThanks 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.June 23, 2025 at 4:23 pm #669140
Luke NielsenKeymasterDo you mean the same issue happens on the default theme?
Kind Regards
June 23, 2025 at 4:31 pm #669145
mahnaz-7467ParticipantI 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.
June 23, 2025 at 4:53 pm #669154
Luke NielsenKeymasterTry to clear the browser cache. Here is a video from my end – https://dropmefiles.com.ua/en/DmHKX6
Kind Regards
June 23, 2025 at 5:07 pm #669159
mahnaz-7467ParticipantThanks for the quick reply.
I also noticed a fatal error — please check the attached file for more details.Thanks
June 23, 2025 at 5:10 pm #669162
mahnaz-7467ParticipantThanks for the quick reply.
I also noticed a fatal error — please check the private part for more details.Thanks
June 23, 2025 at 5:42 pm #669173
Luke NielsenKeymasterHello,
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
June 23, 2025 at 5:47 pm #669176
mahnaz-7467ParticipantWould you please guide me step by step?
Does that mean I should use an old version of Woodmart?
I’m confusedJune 23, 2025 at 5:50 pm #669181
mahnaz-7467ParticipantI 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.June 23, 2025 at 5:52 pm #669183
Luke NielsenKeymasterNavigate 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
June 23, 2025 at 6:32 pm #669196
mahnaz-7467ParticipantI 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.June 23, 2025 at 7:22 pm #669206
mahnaz-7467ParticipantI 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.
June 24, 2025 at 9:41 am #669285
Luke NielsenKeymasterThe issue is in the “Edit Order by Customer” plugin, here is a video – https://dropmefiles.com.ua/en/TAcKaPRe
Kind Regards
June 24, 2025 at 7:22 pm #669447
mahnaz-7467Participantyour 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 workJune 25, 2025 at 10:20 am #669519
Luke NielsenKeymasterHello,
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
-
AuthorPosts
Tagged: Critical Error on Checkout
- You must be logged in to create new topics. Login / Register