• Resolved bvk69varghese

    (@bvk69varghese)


    Hi,

    I have updated my plugins and the wordpress is updated to 6.0.2. My woocommerce store also behaving strange. When I view the cart the subtotal and Total text is hiding in mobile view. I am always getting this error in console as Uncaught ReferenceError: wp is not defined. <script id=’wp-i18n-js-after’>
    wp.i18n.setLocaleData( { ‘text direction\u0004ltr’: [ ‘ltr’ ] } );
    </script>

    Uncaught ReferenceError: _ is not defined
    <script id='lodash-js-after'>
    window.lodash = _.noConflict();
    </script>
    Uncaught ReferenceError: wp is not defined
    <script>
    wp.apiFetch.use( wp.apiFetch.createRootURLMiddleware( "https://bilingualnews.jp/wp-json/" ) );
    </script>

    If I disable Variation Swatches for WooCommerce plugin this error is disappearing. But I need to use this plugin as well.How to fix this error.

    I am not using any cache plugin or optimising plugin in my website.

    Can you please help me on this.

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support fizanzvai

    (@fizanzvai)

    Hi @bvk69varghese

    Thanks for reaching out to us. Displaying a mini cart is not a feature of our plugin.

    Can you please temporarily deactivate our swatches plugin and check whether you still face the issue or not?

    Hope to hear from you soon!

    Thanks

    Thread Starter bvk69varghese

    (@bvk69varghese)

    Hi,

    I am not saying the cart issue. I can see the above script errors in our pages after activating your plugin. If I deactivate the plugin its disappearing.

    Uncaught ReferenceError: wp is not defined

    Please check the console of this URL and you can see this issue – https://bilingualnews.jp/

    After deactivating Variation Swatches for WooCommerce plugin this error is disappearing. Our WordPress version is 6.0.2.

    For your kind information we are not using any cache plugins or any other optimisation plugins.

    Plugin Support fizanzvai

    (@fizanzvai)

    Hi @bvk69varghese

    Please kindly do a plugin compatibility check by doing these steps to identify the error :

    => Deactivate all of your additional plugins except the WooCommerce and WooCommerce Variation Swatches Plugin.

    => See if the problem persists. If the problem is resolved, you can tell which plugin might be the culprit of this error by activating your additional plugins one by one.

    Looking forward to hearing from you soon.

    Thanks

    Thread Starter bvk69varghese

    (@bvk69varghese)

    Hi,

    I have checked the plugin compatibility check and found that the error is coming only when I activate Variation Swatches for WooCommerce plugin. If I deactivate this plugin the error is appearing. That is why I have posted a ticket your team what is the issue causing the plugin of yours. Kindly a send a solution.

    Plugin Support fizanzvai

    (@fizanzvai)

    Hi @bvk69varghese

    Can you please share your theme name?

    Hope to hear from you soon!

    Thanks

    Thread Starter bvk69varghese

    (@bvk69varghese)

    We are using twentynineteen theme. Now we installed wp rocket plugin we are getting this error in our testing site differently.

    Testing site with WP rocket – https://testing.bilingualnews.jp/

    Live/Production site without WP rocket – https://bilingualnews.jp/

    Please help us to resolve this issues. Thanks

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Wp reference error’ is closed to new replies.