jfriday Posted September 16, 2010 Share Posted September 16, 2010 EDIT/UPDATE: Reward updated to $50. FYI: This is a problem with custom text fields only, not image fields.------------------------------------------------------------------------------------------------------------------------Most of my products allow for personalization, however I have recently noticed that some products will allow the user to save the customized text field details and others will not. For example, on this product: http://equigifts.com/18-reiners-turn-on-a-dime-cell-phone-skins.html where both fields are required, I can save and add to cart just fine.On this product, however: http://equigifts.com/25-zingara-cell-phone-skins.html where there are two required fields and one not-required, the information will not save.Other info:PS version: 1.3.1Theme (default/customized): Custom (2Link Matrice)Hosting: Hostgator Business Private SSLPHP version: 5.2.14MySQL version: 5.1.5.0It's probably simple, but I don't have days to wrap my head around it and I have searched the forums exhaustively. So, in the hopes that it really is simple for a programmer here, I've attached some files (product.tpl and product.php) and a call for help.Thanks so much! product.zip Link to comment Share on other sites More sharing options...
tomerg3 Posted September 16, 2010 Share Posted September 16, 2010 "Fatal error: Out of memory (allocated 65273856) (tried to allocate 60000 bytes) in /home/equigift/public_html/images.inc.php on line 155" is caused during the image resize, you are probably trying to upload an image that it pretty big, and PHP runs out of memory try to resize (or just optimize it) Link to comment Share on other sites More sharing options...
jfriday Posted September 16, 2010 Author Share Posted September 16, 2010 I wish it were that simple, but the images I've tested with are small. I just tried one that's 27KB and got this: Fatal error: Out of memory (allocated 78118912) (tried to allocate 60000 bytes) in /home/equigift/public_html/images.inc.php on line 155You can try it yourself by logging into test account username: [email protected] password: jolea818 and visiting this link: http://equigifts.com/eada/230-test-product.html Link to comment Share on other sites More sharing options...
tomerg3 Posted September 16, 2010 Share Posted September 16, 2010 Something else may be using a lot of memory, but that error is definitely caused by the image resize / optimize function. Link to comment Share on other sites More sharing options...
jfriday Posted September 17, 2010 Author Share Posted September 17, 2010 A friend of mine fixed that part for me, but there is still the issue of some custom fields savings and others not saving (it seems like this only happens when there are required fields) for anyone who's game! Link to comment Share on other sites More sharing options...
jfriday Posted September 20, 2010 Author Share Posted September 20, 2010 Reward doubled and bumping. Another update: have compared product.tpl, product.php, init.php and config.inc.php line-by-line with the default PS files and the only differences are things that would have nothing to do with this error. Thanks again! Link to comment Share on other sites More sharing options...
rocky Posted September 21, 2010 Share Posted September 21, 2010 What are the dimensions of the images? I recommend resizing the images to 600 x 600 px (or whatever you have the thickbox size set to) to minimise the amount of memory required to import them. Link to comment Share on other sites More sharing options...
jfriday Posted September 21, 2010 Author Share Posted September 21, 2010 Oops, I must not have been clear enough in my update - will have to edit that. Images are not a problem - I have only one product with image uploading enabled and that was "resolved" (just can't upload huge images, as I had it set to do in BO, b/c of php memory limit of 64MB).No, the problem is with the simple text fields. If you look at the two examples (links) above, one will allow me to save the customized text and add to cart and the other product will not save the text at all. Then, since two of the fields are required, I get an error on the next page saying I need to fill in all the required fields.I did find a thread where someone had a similar problem, but it was never resolved. Link: http://www.prestashop.com/forums/viewthread/10156/general_discussion/cannot_order_please_fill_all_required_fieldsI am, of course, attempting to solve this on my own. I tried moving the whole customization code from one part of product.tpl to another (just under the price field - not that this would do any good, just wanted to move it there anyway). Interestingly enough, now when I click save on product the uploading indicator show but the page never reloads or saves the text. But if I upload the original product.tpl, I have the same problem as originally stated. Link to comment Share on other sites More sharing options...
jfriday Posted September 21, 2010 Author Share Posted September 21, 2010 Update on Behavior of this Error:Just uncovered a possible indicator of why this is happening.The information not saving only happens when the following is true:Product has multiple attribute AND product has customization field(s)And not when it just has the customization fields. I still have no idea how these could affect each other, however. Back to the drawing board...I am going to try Tomer's Attribute Wizard Pro... hopefully that will work since it apparently bypasses the "save" function! Link to comment Share on other sites More sharing options...
babyewok Posted October 19, 2010 Share Posted October 19, 2010 Hi Jessica, Did you ever sort this out or did you just go for Tomer's module in the end? Link to comment Share on other sites More sharing options...
jfriday Posted October 19, 2010 Author Share Posted October 19, 2010 I just went for Tomer's module - and I'm very glad I did. It's much easier for the customer to upload without having to hit the "save" file afterward and thus increases conversion rates so you'll earn back the minimal investment pretty quickly. Plus, his support is exceptional - he fixed two problems I was having quickly and professionally (I actually uncovered a tiny bug in the program the second time). It's a much better solution than Prestashop's default. I highly recommend it. 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