#1006 – XHR returned response code 500

Status: Closed - Category: Showtime Image Gallery
Dear Support,

when I upload images that are 4000 pixels wide or 1900 pixels high I get the error message XHR returned response code 500.
If the images are smaller in both dimensions the upload works as expected. I use the Joomla custom field plugin.

I found out that there where more people who hat the same problem. Were you able to find out what is was?
I really would appreciate if bigger dimensions would be possible because then we don't have to explain to our clients how to crop the images before uploading. This would be really cool because your component already crops it, if they are bigger than 2000x2000 px.

If you need any further information, feel free to contact me.
Thanks in advance

Tanja Vogt
Webman Webdesign
Hi Tanja,

This sounds like memory limit of your web server. Can you please share PHP's memory limit value of your server? It can be found under "System" -> "System Information" . Just look under the tab named "PHP Information" and search for "memory_limit".
Most of the times you need to increase that value to handle really large images. You can ask your hosting provider to increase this for you.

Regards
 
Hi Lefteris,

the memory limit is 48M, so this should not be the problem. It is really depending on the pixels.
If I try to upload a picture with 4000px width it fails, if I reduced the width to 3900px it works. The filesize hasn't changed so much in this case.
With the hight it is even more confusing. If the picture is 1900px height is fails, if it is 1800px height it works.
Really makes no sense to me at all.

Do you have another idea?

Kind regards
Tanja
Hi Tanja,

It should be the memory limit. Image processing in PHP is memory intensive. Remember, this is not a desktop computer running Photoshop, it's a web server and it's not optimized for image processing.
Other values that may affect this, are PHP's upload_max_filesize and post_max_size. But those have to do with the file size.

So, just set the memory_limit value to something like 96M or 128M and let me know if that solves the issue.

Regards
 
Hi Lefteris,

I changed the memory limit to 256M and now it takes some time, but it works.
Thank you very much for your help.

Kind regards,
Tanja
You are welcome.
 
This ticket is closed, therefore read-only. You can no longer reply to it. If you need to provide more information, please open a new ticket and mention this ticket's number.

Note: An active subscription is required in order to get support for our paid extensions. For our free extensions, if you don't have an account, register and then submit your support request.  In case you just want to ask a question, you can also use the contact form .

Note: Our support team is currently on vacation, so please anticipate slightly longer response times. Thank you for your understanding!

Firecoders
Are you using our extensions? Please post a review at the Joomla extensions directory!
Post a review