Advertisement:

Author Topic: error : xhr returned response code 0  (Read 1816 times)

mphker

  • Newbie
  • *
  • Posts: 14
error : xhr returned response code 0
« on: July 04, 2016, 07:27:49 pm »
Hello ,
I get this code (xhr returned response code 0) when try to upload images with my listing .
some ask me to use Pre-resize Images , so I used this plugin but not solved the problem .
so , others told my it from hosting , I call the host provider and not solved .
I use last version of osclass .
thanks .

teseo

  • Hero Member
  • *****
  • Posts: 6169
Re: error : xhr returned response code 0
« Reply #1 on: July 04, 2016, 07:55:39 pm »
Hi,

Have you tried with different images (different extension and filesize)? With a different browser? Desktop and mobile?

What values do you see on Admin Dashboard / Settings / Media => Maximum size XXXX Size in KB - Maximum size PHP configuration allows: XXXX KB?

Regards

mphker

  • Newbie
  • *
  • Posts: 14
Re: error : xhr returned response code 0
« Reply #2 on: July 04, 2016, 08:02:29 pm »
yes , I try same result ,
the Maximum size (32768) KB


teseo

  • Hero Member
  • *****
  • Posts: 6169
Re: error : xhr returned response code 0
« Reply #3 on: July 04, 2016, 08:54:04 pm »
May I see your site?

mphker

  • Newbie
  • *
  • Posts: 14
Re: error : xhr returned response code 0
« Reply #4 on: July 04, 2016, 09:08:45 pm »
their are in arabic sir .
this : http://cars-iraq.com
and this : http://souqhraj.com

teseo

  • Hero Member
  • *****
  • Posts: 6169
Re: error : xhr returned response code 0
« Reply #5 on: July 04, 2016, 09:25:18 pm »
Uploaded a small image, everything OK.

Tried to upload a PNG 2,69MB:

Quote
abt.png كبير جدا, اكبر حجم لملف 2.1MB.

Quote
abt.png is too large, maximum file size is 2.1MB.

Here the problem is that you arent allowing images up to 32768KB, but only up to 2,1MB. If as you say, you have set a Maximum site of 32MB, then maybe your hosting won't allow uploading of files bigger than 2,1MB (Server configuration, not PHP).

Please upload some image that is giving you that XHR error to some image server and give me the link so I might take a look at it.

Regards

mphker

  • Newbie
  • *
  • Posts: 14
Re: error : xhr returned response code 0
« Reply #6 on: July 05, 2016, 06:14:10 am »
solved from hosting ,
thank you very much  :) :)

teseo

  • Hero Member
  • *****
  • Posts: 6169
Re: error : xhr returned response code 0
« Reply #7 on: July 05, 2016, 01:20:21 pm »
You're welcome :) Please add [SOLVED] to the title of this thread.

Regards