Critical JS Error (ajaxurl is not defined) breaking XStore widgets in Elementor

5 replies2 participantsUpdated by Andrew Mitchell

  • Avatar: anli75
    anli75
    Participant

    Hi support team,

    I am experiencing a critical issue on my website where an XStore widget (specifically, a materials/tabs layout) suddenly disappeared from the front-end and the Elementor editor on my main language page (Italian), while it is still visible on the English translated page.

    When analyzing the console, I found the following JavaScript error caused by the theme’s app.js file:
    Uncaught (in promise) ReferenceError: ajaxurl is not defined

    This error completely breaks the rendering of the XStore widget inside Elementor, showing an empty space or a gray anchor instead of the actual content. I temporarily managed to restore the visibility by rolling back to an older page revision from May, but the JS error is still active under the hood, and I am afraid it will disappear again upon the next update.

    Could you please check why ajaxurl is not being properly defined or localized within the theme’s app.js file when Elementor is active?

    I can provide website credentials if needed.

    Thank you in advance for your help!

    Please, contact administrator
    for this information.
    Files is visible for topic creator and
    support staff only.

    5 Answers

    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff

    Hello, anli75,

    Thank you for contacting us.

    We appreciate the detailed information you have provided regarding the issue with the XStore widget and the JavaScript error related to the ajaxurl variable. We understand how important it is to have your website functioning properly.

    Please provide us with temporary WordPress admin access and FTP credentials in a secure way (for example, using the private content area of our support system), so that we can investigate the problem directly on your website. Once we have access, our development team will check why the ajaxurl variable is not being properly defined in the app.js file when Elementor is active and will provide a suitable solution.

    Thank you for your cooperation and patience.

    Best Regards,
    8Theme’s Team

    Avatar: anli75
    anli75
    Participant

    Thanks for your cooperation; you have the login details… We find it a bit slow, though I’m not sure if that’s due to the WPML plugin—we’ve noticed it doesn’t communicate very well with XStore.

    Please contact administrator
    for this information.
    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff

    Thank you for providing access. We have fixed the issue with the script, but we kindly ask you to additionally clear the cache (server, website, and browser) as well as the CDN cache (if applicable)

    Best regards,
    The 8Theme Team

    Avatar: anli75
    anli75
    Participant

    Thank you for your cooperation.
    Was it an update that caused the problem?
    Could it happen again?
    Thanks.

    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff

    Hello, anli75,

    The main reason for this issue is a cache malfunction. We kindly ask you to clear the cache after each update, whether it concerns the theme or any plugins, as the automatic cache refresh does not always work correctly.

    Best regards,
    8Theme Team

Want to reply? Log in, or register with your ThemeForest purchase code, to reply to this topic.

Login / Register