• Resolved gcaval74

    (@gcaval74)


    Hi,
    until today I had the previus version and all Virtual Tours have worked without problems. Today I upgraded to v.5.7.0 and now I can’t see any VT on my site.

    I found this error in developer console: Uncaught SyntaxError: Unexpected identifier l.304

    It’s the same error for all pages which I have a VT in.

    Could you help me if it’s a bug or a conflict with other plugin, or other thing?

    Thank you very much
    Gerry

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

Viewing 11 replies - 1 through 11 (of 11 total)
  • Hi @gcaval74 ,

    We had a look at your tour page.

    Our developers have identified the issue and now working on it.

    Hopefully, we’ll soon release an update with the fix.

    For now, you can disable the Lazy loading, this should solve the issue for now.

    Thanks.

    Thread Starter gcaval74

    (@gcaval74)

    Thank you very much.

    I tried to disable the Lazy loading, but it did’t fix.
    Now I have a warning in upside page:

    Warning: strpos(): Empty needle in /home/xxxxx/public_html/casarenova.it/wp-content/plugins/wpvr/public/class-wpvr-public.php on line 88

    Hi @gcaval74 ,

    It seems that you’re using the SiteGroung Optimizer.

    Sometimes the caching or optimization plugins optimizes WPVR JS assets so the tours stop appearing.

    For now, you can follow this documentation: https://rextheme.com/docs/wp-vr-control-script-and-style-loading/ to exclude WPVR JS assets form SG Optimizer.

    Let us know how it goes.

    Thanks.

    Hi @gcaval74 ,

    We’ve detected the issue, prepared a fix, and released an update of the plugin.

    Can you please update the plugin, clear browser cache, reload the page, and see if the tour appear now?

    Let us know how it goes.

    Thanks.

    Thread Starter gcaval74

    (@gcaval74)

    I just done it, but nothing.

    I have this message:

    Warning: strpos(): Empty needle in /home/xxxx/public_html/casarenova.it/wp-content/plugins/wpvr/public/class-wpvr-public.php on line 90

    🙁

    Thread Starter gcaval74

    (@gcaval74)

    Just another thing…
    I red your documentation, but that warning appears on all pages, even on those where there is no Virtual Tour. It’s strange…

    Thanks for your help

    Thread Starter gcaval74

    (@gcaval74)

    I always have the same warning on all pages. I tried to deactivate SG Optimizer and other plugins, but nothing.

    Strange thing is that this error is on every page in the website.

    Thank you very much for your attention and patience

    Hi @gcaval74 ,

    Sorry for the delayed reply.

    Sometimes, the cache may be still there even after disabling a plugin.

    Here is what you can do:

    1. First, go through this documentation: https://rextheme.com/docs/wp-vr-control-script-and-style-loading/

    We introduced this feature to control the script and style loading for WPVR.

    You see, WPVR uses some Javascript assets to load tours. And it may load on every page of your website.

    That’s why you’re seeing this error on every page and this feature will allow you to control the loading of JS assets.

    2. Turn on the Enable Script Control option. Then under the List of allowed pages to load WP VR scripts option, list all the page URLs where you’ve published a virtual tour.

    Now, save the settings.

    3. Activate SG Optimizer again.

    Go to the Exclude WPVR JS Files From SG Optimizer section on the documentation link I gave you.

    Follow this to exclude WPVR JS assets from optimizing. Save your progress.

    Now, The JS assets will be loaded only on your listed pages and the JS assets will be excluded from optimizing.

    4. Finally, clear the cache of all your pages and hard reload them. Now see if the tours have appeared and if the error messages are still there.

    Make sure to save all the changes before you reload the pages.

    Let us know how it goes.

    Thanks.

    Thread Starter gcaval74

    (@gcaval74)

    Solved!
    Great!

    I had also tried to insert the links of the pages with the VT, but probably it only works if I insert them all.

    Resta qualche piccolo problema, tipo che non funziona più il tasto “torna su”, ma vedremo come fare.

    Thank you very much.

    Hi @gcaval74 ,

    We’re glad to hear that it’s solved now.

    And yes, you have to list all the pages with a virtual tour on that field.

    And if you’re talking about the Rollback option, it allows you to rollback to an older version of the plugin.

    You can follow this documentation to learn about all the exclusive settings options: https://rextheme.com/docs/wp-vr-exclusive-settings/

    Let us know if you have any more queries.

    Thanks.

    Hi @gcaval74 ,

    Since your issue is solved now, we’re now marking this thread as resolved.

    You’re always welcome to open another ticket if you face any more issues with the plugin.

    We’ll be happy to help you out.

    Thanks.

Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘Uncaught SyntaxError: Unexpected identifier’ is closed to new replies.