Jump to content

[UNSOLVED] Image upload for custom field no longer works


Ordog

Recommended Posts

Ive added a field that allows customers to upload an image on my product..... I tried it once and it worked, i then added some attributes and it stopped working. Now ive removed these attributes and its still not working. Ive even tried adding another product and it still doesnt work for that.

When you click to save the file it seems to upload then refreshes the page minus any categories or content.


there is only one product under "print" category)

Ive tried tiny images of all 3 formats aswell as medium and large images, my file upload limit in the BO is set at 20mb and image width and height at 10,000.

Can someone help explain where ive gone wrong and how i can fix this please.

Also another issue ive noticed is that in Google Chrome browser the loading gif doesnt show, dont know if has been addressed before but i couldnt find anything on the forums

Link to comment
Share on other sites

It seems there is a PHP error after uploading, since I'm getting a blank center column and footer. Try editing config/config.inc.php and temporarily changing "display_errors" to "on". You should then get an error message instead of a blank area after you've uploaded an image. Post the error message here and it will be easier to help.

Link to comment
Share on other sites

That's a lot of memory that is being used. How big is the image you are trying to upload? I guess your only option is to increase your memory limit from 40M to 64M or maybe even 128M. Hopefully, that will be enough memory for the image to be resized.

Link to comment
Share on other sites

That's a lot of memory that is being used. How big is the image you are trying to upload? I guess your only option is to increase your memory limit from 40M to 64M or maybe even 128M. Hopefully, that will be enough memory for the image to be resized.


I did as you said and i still get the same error. My php.ini file is like this:

post_max_size = 50M
upload_max_filesize = 50M
max_execution_time = 120
max_input_time = 180
memory_limit = 128M

What else can i try ? I have been very impressed with this cms however if it fails at this then i cannot use it commercially :(
Link to comment
Share on other sites

Ive spoken to my hosting provider and they wont allow me more than 64M, are there any modules that do this in javascript or pearl as ive heard they have larger upload limits ?

I also dont want the images to be re-sized as i want them as big as possible because they will be for print, can i remove the re-sizing option or will i still get memory errors ?

Link to comment
Share on other sites

That's a lot of memory that is being used. How big is the image you are trying to upload? I guess your only option is to increase your memory limit from 40M to 64M or maybe even 128M. Hopefully, that will be enough memory for the image to be resized.


Ive now changed hosting company to one that offers 128mb php memory and i still get the same error:

Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 40000 bytes) in

This is with a 28k .png file that is 187x123 please can you advise me on what to try next as i dont want to waste anymore money if its not something fixable.
Link to comment
Share on other sites

Ive done whats outlined in this thread

http://www.prestashop.com/forums/viewthread/27570/general_discussion/ps_resize_all_images_uploaded_by_customers_dot__how_do_i_deactivate_it

Now i can upload files that are upto 500kb before i get the error. Is this caused by the script making a thumbnail from such a large image ?

If so is there a way that i can remove the thumbnail that it generates and just show an icon there ? Then once im in the BO and click on the icon it links to the original full sized file ?

Link to comment
Share on other sites

  • 3 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...