Home New Guten Forums WoodMart support forum Issue with wp.i18n on Homepage

Issue with wp.i18n on Homepage

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #680390

    saeedshouman
    Participant

    Hi Woodmart Support,

    I am experiencing a JavaScript error on the homepage of my website. When checking the browser console (F12 Dev Tools), I see the following error:
    wp.i18n.setLocaleData({‘text direction\u0004ltr’:[‘rtl’]})
    Uncaught ReferenceError: wp is not defined

    This error seems to occur because the wp object is not defined when the script wp.i18n.setLocaleData is executed.

    I am not sure what is causing this issue — it might be related to LiteSpeed Cache JS optimization, lazy loading, or a conflict with other plugins like Elementor or WooCommerce.

    Could you please advise on how to fix this or provide a solution so that the wp.i18n script runs correctly?

    Thank you for your help.

    • This topic was modified 2 days, 2 hours ago by saeedshouman.
    #680437

    Artem Temos
    Keymaster

    Hello,

    Thank you so much for purchasing our theme and contacting our support center.

    Could you please disable all plugins that are not related to our theme and provide us your admin access so we can check it?

    Thank you in advance

    #680539

    saeedshouman
    Participant

    ok please check it.

    #680550

    Artem Temos
    Keymaster

    Please disable all plugins that are not related to our theme temporarily.

    #680557

    saeedshouman
    Participant

    ok I have disabled all other plugins temporarily.

    #680576

    Artem Temos
    Keymaster

    As we can see, most of the external plugins are still turned on.

    #680579

    saeedshouman
    Participant

    check now..

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