Advertisement:

Author Topic: XHR Issue  (Read 562 times)

aviation

  • Newbie
  • *
  • Posts: 16
XHR Issue
« on: January 26, 2018, 02:11:44 pm »
Hi guys
i dont know it s plug in error or what but i am start getting XHR returned response code 0 error,it is veryy annoying and i followed everything from the forum but nothing helps me out.
website:sellbourne.com
BY THE WAY I AM USING 3.7.4 VERSION
« Last Edit: January 26, 2018, 02:14:20 pm by aviation »

Aficionado

  • Guest
Re: XHR Issue
« Reply #1 on: January 26, 2018, 02:55:58 pm »
This is a hosting problem, from what we have seen in the forums.

This problem has been posted many times and i haven't seen any real explanation and solution, most probably because it is not related to Osclass.

But you should check what new you have installed, enable debug.log for Osclass and check for errors and also ask your hosting provider about it.

I see you have done several modifications also to the theme (and to Osclass maybe, i don't know), and you are also using Cloudflare (for no reason). So you have many things that could produce that error, and it impossible to tell.


teseo

  • Hero Member
  • *****
  • Posts: 6169
Re: XHR Issue
« Reply #2 on: January 26, 2018, 03:52:23 pm »
Hi,

Your problem is not only when uploading images, but with any Ajax request. In the home page try to select a Country, you'll see that Regions select is not updated with the regions for that Country, and the browser console gives an error similar to this:

Quote
Blocked loading mixed active content "http://www.sellbourne.com/index.php?page=ajax&action=regions&countryId=30"

The request should be over "https://www.sellbourne.com/index.php?page=ajax&action=regions&countryId=30"

I'm not sure, but just in case check your config.php in the root folder of your Osclass installation, make sure that WEB_PATH is correctly set:

Quote
define('WEB_PATH', 'https://www.sellbourne.com/');

Regards

aviation

  • Newbie
  • *
  • Posts: 16
Re: XHR Issue
« Reply #3 on: January 27, 2018, 04:17:07 am »
Thnks for that
i just changed http to https in config.php file and it works
 ;)

Aficionado

  • Guest
Re: XHR Issue
« Reply #4 on: January 27, 2018, 12:27:47 pm »
Thnks for that
i just changed http to https in config.php file and it works
 ;)

Actually it doesn't work fully. The XHR may work but check what @teseo wrote above. Changing a country doesn't update the regions etc etc.

« Last Edit: January 27, 2018, 02:55:35 pm by Aficionado »

teseo

  • Hero Member
  • *****
  • Posts: 6169
Re: XHR Issue
« Reply #5 on: January 27, 2018, 05:25:38 pm »
I don't think that's related with this issue, Australia and Europe show different regions. I guess the rest of the countries don't have Regions yet, so the Regions select won't change when you select those countries.

Regards

Aficionado

  • Guest
Re: XHR Issue
« Reply #6 on: January 27, 2018, 05:32:51 pm »
Related no but a problem yes.

SEE:

https://www.sellbourne.com/index.php?page=item&action=item_add

in the Region while it is a dropdown, you can write inside the box ......

teseo

  • Hero Member
  • *****
  • Posts: 6169
Re: XHR Issue
« Reply #7 on: January 27, 2018, 05:49:58 pm »
Most curious...  :o I guess this happens for countries with no regions... ???

Regards