Home Forums WoodMart support forum Critical Error in frontend when updating Woodmart Core

Critical Error in frontend when updating Woodmart Core

Viewing 18 posts - 1 through 18 (of 18 total)
  • Author
    Posts
  • #722504

    Hello,

    every time I update Woodmart core from 1.16 to 1.18 I get a critical error in the frontend (backend still available) – see attached screenshot.

    Everything else is up-to-date:
    WordPress 7.0
    Woodmart theme 8.5.4
    WooCommerce 10.9.1
    WooPayments 10.9.0
    Elementor 4.1.4
    Elementor Pro 4.1.2
    W3 Total Cache 2.1.0

    Temporary Admin login see private content.

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

    Serg Sokhatskyi
    Keymaster
    Xtemos team

    Hi there,

    Thanks for reaching out.

    From your description, the critical error after updating WoodMart Core most likely comes from a conflict with one of the installed plugins. Please try this:
    – Temporarily deactivate all third-party plugins.
    – Check the frontend again.

    If the error still appears, please share a direct URL to a frontend page where we can see the issue.

    Kind regards,
    XTemos Studio

    #724246

    Why I don’t think this is a third-party plugin conflict:

    The fatal error happens inside woodmart-core.php itself, during the plugin-loading step of wp-settings.php (line 589) — before any other plugin’s code has executed. So no other plugin is in the call stack at the point of failure.

    The failing line is a hardcoded require_once for inc/template-tags.php. I checked both the theme currently installed on the server and a fresh copy of the current Woodmart theme downloaded directly from Envato just now — in both, template-tags.php only exists inside a subfolder (inc/template-tags/template-tags.php), not directly under inc/.

    This tells me woodmart-core v1.16 is still hardcoded to the old flat path, while the current theme structure expects it in the subfolder. Since Core plugin and theme are two separately versioned downloads, they drifted out of sync (theme was updated to current, Core plugin was not).

    Question for support: Can you confirm the inc/template-tags.php path was moved/restructured in a theme update, and that Woodmart Core v1.18 is required to match it? I’m updating Core to 1.18 now — please let me know if there are any other companion plugins/versions I need to align as well.

    `Error:

    Warning: require(/…/wp-content/themes/woodmart/inc/template-tags.php): Failed to open stream: No such file or directory in /…/functions.php on line 150

    Fatal error: Uncaught Error: Failed opening required ‘/…/wp-content/themes/woodmart/inc/template-tags.php’ in /…/functions.php:150
    Stack trace:
    #0 wp-content/plugins/woodmart-core/woodmart-core.php(15): require_once()
    #1 wp-settings.php(589): include_once()
    #2 wp-config.php(112): require_once()
    #3 wp-load.php(50): require_once()
    #4 wp-blog-header.php(13): require_once()
    #5 index.php(17): require()
    #6 {main}

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

    Serg Sokhatskyi
    Keymaster
    Xtemos team

    Hello,

    Yes, you are right. Try to disable and uninstall the WoodMart core completely and update the theme to the latest version first. Then go to WoodMart -> Plugins and install the latest version of the WoodMart core. It should solve the problem without any errors.

    Kind Regards

    #724253

    That’s exactly what I do.

    Theme is up-to date. Woodmart Core at 1.16 right now. As soon as I update it to 1.18, the critical error appears.

    #724254

    Serg Sokhatskyi
    Keymaster
    Xtemos team

    Then it is not related to the mentioned error. Anyway, could you please send me your admin access so I can update the theme and plugin and see what is wrong?

    #726554

    Sorry for the delayed answer. See admin login credentials + ftp access in extra information as one time link.

    #726557

    Serg Sokhatskyi
    Keymaster
    Xtemos team

    Hello,

    Sorry, but the FTP seems to be wrong, and we can’t connect to your server at the moment https://gyazo.com/fc8cede8cbb90864e9dcd5d8a1e5ce2c

    Kind Regards

    #726558

    Sorry, the username was wrong. Please see new login credentials in extra information. Tested and works.

    #726564

    Serg Sokhatskyi
    Keymaster
    Xtemos team

    Hello,

    We have enabled the DEBUG_MODE and see a lot of errors generated by installed plugins. Can we disable all plugins that are not related to our theme temporarily?

    Kind Regards

    #726572

    I don’t see any errors?

    Yes you can, but only for a very short time (10-15 min). Otherwise I have to create a staging site for you.

    #726576

    Serg Sokhatskyi
    Keymaster
    Xtemos team

    Hello,

    We have identified and fixed the bug in the WoodMart core plugin on your website. Please test on your end and let me know if it works.

    Kind Regards

    #726579

    Thank you for letting me know. Can I update the theme to the latest version? I thought that was the whole point of the changes 😀

    #726583

    Serg Sokhatskyi
    Keymaster
    Xtemos team

    Sure, now both the WoodMart theme and the WoodMart core plugin are updated.

    #726591

    Thank you, looks good.

    What was the bug (mentioned in the email) if I may ask?

    #726611

    Serg Sokhatskyi
    Keymaster
    Xtemos team

    WoodMart core had a wrong file inclusion path using the require_once function. But the error arises only on particular servers with specific configurations like yours. We were not able to reproduce it on our end. Anyway, the fix will resolve this for any kind of server.

    #726616

    Alright, thank you for these details.

    I was already wondering why it only happens on this website and not on others. But all other clients are on shared hosting, this one is a own vps server or managed server – not sure.

    Thank you for your excellent support!

    #726668

    Serg Sokhatskyi
    Keymaster
    Xtemos team

    Hi there,

    Thanks for the update and your kind words. We’re glad everything is working now. I’ll mark this topic as closed. If you need any further assistance, please open a new topic anytime.

    Kind regards,
    XTemos Studio

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

The topic ‘Critical Error in frontend when updating Woodmart Core’ is closed to new replies.