Ordog Posted September 23, 2010 Share Posted September 23, 2010 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 More sharing options...
rocky Posted September 24, 2010 Share Posted September 24, 2010 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 More sharing options...
Ordog Posted September 24, 2010 Author Share Posted September 24, 2010 Thank for the quick reply, ive done as you asked and this is the error:Fatal error: Out of memory (allocated 42729472) (tried to allocate 40000 bytes) Link to comment Share on other sites More sharing options...
rocky Posted September 24, 2010 Share Posted September 24, 2010 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 More sharing options...
Ordog Posted September 24, 2010 Author Share Posted September 24, 2010 Its only 12k and the dimensions were 180 x 100. Like i said it worked before i added some attributes and now it doesnt Link to comment Share on other sites More sharing options...
Ordog Posted September 24, 2010 Author Share Posted September 24, 2010 Is this a problem at my end or the server side ? Link to comment Share on other sites More sharing options...
Ordog Posted September 27, 2010 Author Share Posted September 27, 2010 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 = 50Mmax_execution_time = 120max_input_time = 180memory_limit = 128MWhat 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 More sharing options...
Ordog Posted September 27, 2010 Author Share Posted September 27, 2010 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 More sharing options...
Ordog Posted September 28, 2010 Author Share Posted September 28, 2010 any one Link to comment Share on other sites More sharing options...
Ordog Posted September 28, 2010 Author Share Posted September 28, 2010 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 More sharing options...
rocky Posted September 29, 2010 Share Posted September 29, 2010 Sorry, I have no idea what's going wrong. It doesn't make any sense. I've never seen this problem before for such small images. Link to comment Share on other sites More sharing options...
Ordog Posted September 29, 2010 Author Share Posted September 29, 2010 Ive done whats outlined in this threadhttp://www.prestashop.com/forums/viewthread/27570/general_discussion/ps_resize_all_images_uploaded_by_customers_dot__how_do_i_deactivate_itNow 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 More sharing options...
Ordog Posted October 4, 2010 Author Share Posted October 4, 2010 Still no help, i thought this was a thriving community Link to comment Share on other sites More sharing options...
J. R. Leon Somovilla Posted January 24, 2011 Share Posted January 24, 2011 I have the same problem, and can´t find the solution...I think the same like you, i can´t believe anybody of this community have this problem, and know a solution :-( Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now