Script loading issue

If you are integrating with WordPress or WooCommerce, start here.
Will
Posts: 4
Joined: Tue Oct 02, 2018 3:30 am
Contact:

Script loading issue

Postby Will » Tue Oct 02, 2018 3:58 am

Hi,

I have tried using your plugin with the latest version of WordPress and attempted to use the demo that is supplied. The plugin will not load anything and there is an error in the console. It should be noted, I have censored the URL from the console log as it is not a live site. Could you advise on how to resolve this issue?

Many thanks,
Will.

Code: Select all

VM5056:1 INFO Powered by WebRotate 360 © ~ v3.6 (build 3.6.2.110)
first:1 GET https://[CENSORED]/test/first 404 (Not Found)
Image (async)
WR360.cL.Load @ VM5056:1
WR360.ImageRotator.dq @ VM5056:1
WR360.ImageRotator.im @ VM5056:1
WR360.ImageRotator.nd @ VM5056:1
success @ VM5056:1
i @ jquery.js?ver=1.12.4:2
fireWith @ jquery.js?ver=1.12.4:2
y @ jquery.js?ver=1.12.4:4
c @ jquery.js?ver=1.12.4:4
XMLHttpRequest.send (async)
send @ jquery.js?ver=1.12.4:4
ajax @ jquery.js?ver=1.12.4:4
WR360.ImageRotator.kO @ VM5056:1
WR360.ImageRotator.jy @ VM5056:1
WR360.ImageRotator.gN @ VM5056:1
WR360.ImageRotator.runImageRotator @ VM5056:1
(anonymous) @ VM5056:1
each @ jquery.js?ver=1.12.4:2
each @ jquery.js?ver=1.12.4:2
WR360.bs.cD @ VM5056:1
(anonymous) @ VM5056:1
i @ jquery.js?ver=1.12.4:2
fireWith @ jquery.js?ver=1.12.4:2
ready @ jquery.js?ver=1.12.4:2
K @ jquery.js?ver=1.12.4:2
VM5056:1 ERR Preloader IO ERROR: https://[CENSORED]/test/first

WebSupport
Posts: 897
Joined: Thu Aug 23, 2012 11:35 am
Location: Pasadena, CA
Contact:

Re: Script loading issue

Postby WebSupport » Tue Oct 02, 2018 6:54 am

Hi Will,

This won't be enough to see what exactly happened unfortunately. We can gess that the viewer xml file is not loaded (config parameter in your shortcode).

- Can you share your shortcode?
- Do you know how to access the Network tab in your browser and filter by XHR to see the request that gets the xml?

Will
Posts: 4
Joined: Tue Oct 02, 2018 3:30 am
Contact:

Re: Script loading issue

Postby Will » Wed Oct 03, 2018 7:25 am

Hi,

So, the shortcode I'm using is copied from your documentation and is using the URL mentioned there to load the demo version.

Code: Select all

[wr360embed name="view1" width="100%" height="500px" config="/wp-content/plugins/webrotate-360-product-viewer/360_assets/sampleshoe/config.xml"]

As for any XML requests, the only one that I found was requesting this URL: https://[CENSORED]/wp-content/plugins/webrotate-360-product-viewer/license.lic. This responds (as you may know) with this: "This is a dummy to speed up viewer loading."

Many thanks,
Will.

WebSupport
Posts: 897
Joined: Thu Aug 23, 2012 11:35 am
Location: Pasadena, CA
Contact:

Re: Script loading issue

Postby WebSupport » Wed Oct 03, 2018 10:27 pm

Is your wp-content folder located in the root of https://[CENSORED] or is there another folder in this "censored" path?

If there's another folder there (happens often with local testing), the relative URL of the xml file in the config parameter of the shortcode will be different, e.g:

Code: Select all

/my-actual-folder-with-wordpress-install/wp-content/plugins/webrotate-360-product-viewer/360_assets/sampleshoe/config.xml


Or you may try to use a full (absolute) URL instead, i.e:

Code: Select all

https://[CENSORED]/wp-content/plugins/webrotate-360-product-viewer/360_assets/sampleshoe/config.xml


PS: it's good to paste this absolute URL in your browser address bar to double check it can be actually loaded by the browser.

Will
Posts: 4
Joined: Tue Oct 02, 2018 3:30 am
Contact:

Re: Script loading issue

Postby Will » Mon Oct 08, 2018 8:15 am

Hi,

I think I have fixed the path issue, I used ABSPATH. But, the demo content still is not showing. It's just a blank page with no errors in the console. I'm at a loss here.

Will.

WebSupport
Posts: 897
Joined: Thu Aug 23, 2012 11:35 am
Location: Pasadena, CA
Contact:

Re: Script loading issue

Postby WebSupport » Mon Oct 08, 2018 8:44 am

Hmm... is there any way you could send us the html content of the entire page with the issue to support at webrotate360 dot com or attach here as a file?

Will
Posts: 4
Joined: Tue Oct 02, 2018 3:30 am
Contact:

Re: Script loading issue

Postby Will » Mon Oct 08, 2018 11:55 pm

I have sent you an email.


Return to “WordPress and WooCommerce Integration”

cron