Advertisement:

Author Topic: [Solved] XHR returned response code 500 Please help when uploading images.  (Read 5945 times)

STAR

  • Newbie
  • *
  • Posts: 8
Hi Guys I have small issue when uploading images on my site I get this error
XHR returned response code 500

Can some one please post the fix for me as image I was uploading is 281kb so its nto even max image size or anything no matter what I tried I get this error each time please help. Thank you
« Last Edit: March 09, 2016, 01:37:47 am by STAR »

teseo

  • Hero Member
  • *****
  • Posts: 6169
Re: XHR returned response code 500 Please help when uploading images.
« Reply #1 on: March 08, 2016, 12:12:00 pm »
Hi,

The problem isn't filesize but resolution of the image. I think this plugin will solve that:

http://market.osclass.org/plugins/miscellaneous/pre-resize-images_496

Regards

STAR

  • Newbie
  • *
  • Posts: 8
Re: XHR returned response code 500 Please help when uploading images.
« Reply #2 on: March 08, 2016, 02:30:35 pm »
Hi,

The problem isn't filesize but resolution of the image. I think this plugin will solve that:

http://market.osclass.org/plugins/miscellaneous/pre-resize-images_496

Regards

Hi Thank you for the link that error has gone but now I get this error

Server error. Upload directory isn't writable.

Where is this upload directory located and do I need to set it to 777 ? Thank you

teseo

  • Hero Member
  • *****
  • Posts: 6169
Re: XHR returned response code 500 Please help when uploading images.
« Reply #3 on: March 08, 2016, 02:46:45 pm »
/oc-content/uploads/temp

Regards

Aficionado

  • Guest
Re: XHR returned response code 500 Please help when uploading images.
« Reply #4 on: March 08, 2016, 04:47:20 pm »
Maybe the error IS related to wrong permissions ?

AND DO NOT SET 777 ANYWHERE !!!  Do you know what 777 actually is ?

It should ALWAYS be

Folders 755

and

Files 644


What kind of hosting is what ? Why everything is NOT set as it should ?

« Last Edit: March 08, 2016, 08:18:42 pm by Aficionado »

STAR

  • Newbie
  • *
  • Posts: 8
Re: XHR returned response code 500 Please help when uploading images.
« Reply #5 on: March 09, 2016, 12:33:10 am »
/oc-content/uploads/temp

Regards

Thank you all works perfect now :) also to you to Aficionado thanks for the tip. I have final question please if you don't mind. How do I swap currency symbol with price ? at the moment it's like this



which is 35£  But I want it to be like this £35 how can I do this if you don't mind helping me out please Thank you

teseo

  • Hero Member
  • *****
  • Posts: 6169
Re: XHR returned response code 500 Please help when uploading images.
« Reply #6 on: March 09, 2016, 12:48:47 am »
You're welcome. :) Please add "[Solved]" to the title of this thread. Thanks.

Quote
I want it to be like this £35

Admin Dashboard / Settings / Languages, edit your English language:

Currency format: {CURRENCY}{NUMBER}

Regards

STAR

  • Newbie
  • *
  • Posts: 8
Re: XHR returned response code 500 Please help when uploading images.
« Reply #7 on: March 09, 2016, 01:38:16 am »
You're welcome. :) Please add "[Solved]" to the title of this thread. Thanks.

Quote
I want it to be like this £35

Admin Dashboard / Settings / Languages, edit your English language:

Currency format: {CURRENCY}{NUMBER}

Regards

Thank you done :) if you need any GFX in return let me know I can help with that :D

Anvar.in

  • Newbie
  • *
  • Posts: 11
Still have the problem 

Upload Link : http://selling.media.com/item/new/143

Image : http://selling.media.com/IMG.jpg

Any body Help me


Image Details
« Last Edit: June 21, 2016, 11:25:52 pm by anvarsadiqp »

Aficionado

  • Guest
We can help: Find a real hosting company.


teseo

  • Hero Member
  • *****
  • Posts: 6169
Hi,

@anvarsadiqp, I've done a test on your site with that same image and everything's fine, no error at all... ???

Regards

Anvar.in

  • Newbie
  • *
  • Posts: 11
Thank you teseo,

Yes it fixed and I forgot to add the code into my posting list.

if( osc_images_enabled_at_items() ) {
                     
                     if (function_exists('przi_ajax_uploader')) przi_ajax_photos();
else ItemForm::ajax_photos();

//if (function_exists('przi_ajax_uploader')) przi_ajax_photos();
//else ItemForm::ajax_photos();

 //if( osc_images_enabled_at_items() ) {

//if (function_exists('przi_ajax_uploader')) przi_ajax_photos();
//else ItemForm::ajax_photos();
 //                          ItemForm::ajax_photos();
                         } ?>

Now Everything ok
Thank you

gooki

  • Newbie
  • *
  • Posts: 22
Re: [Solved] XHR returned response code 500 Please help when uploading images.
« Reply #12 on: November 04, 2016, 05:57:50 pm »
Also for those experiencing this issue. I had it because I did not have Imagick (php) installed. Once installed problem was solved.