hokaro Posted February 22, 2012 Share Posted February 22, 2012 Hello all I have bumped into a very strange problem: When I change the value of features for a product and then press the button "save the changes", the changes haven't been changed when I look at the feature value again! What can be the problem? I have run Prestashop since a few months now and this problem has appeared in the last few days... I am using Prestashop 1.4.4.1 Link to comment Share on other sites More sharing options...
Mike Kranzler Posted February 22, 2012 Share Posted February 22, 2012 Hi hokaro, Have you made any other changes to your site in the days leading up to this issue? -Mike Link to comment Share on other sites More sharing options...
hokaro Posted February 24, 2012 Author Share Posted February 24, 2012 No, not at all, no changes at all... just once I activated a payment module and then I disabled it when I didn't need it anymore... which I think shouldn't affect the features' values.... quite strange, I can change and save all other tabs, for example the info tab, the pics tab, but only the features' values can't be saved when changed Link to comment Share on other sites More sharing options...
hokaro Posted February 27, 2012 Author Share Posted February 27, 2012 any solution to this? this is very strange and catastrophic, actually, now I can't even add a product och change the values for a product!! is this a bug? I haven't changed anything in the database system, or any other change which could be related to this. HELP please Link to comment Share on other sites More sharing options...
Mike Kranzler Posted February 27, 2012 Share Posted February 27, 2012 Hi hokaro, Can you please open your config/config.inc.php file and set "display_errors" to "on" and then reload the page and let me know if you receive any error messages when you try to save the changes? -Mike 1 Link to comment Share on other sites More sharing options...
hokaro Posted February 27, 2012 Author Share Posted February 27, 2012 Notice: Undefined index: s in /var/www/config/smarty.config.inc.php on line 98 Notice: Undefined index: s in /var/www/config/smarty.config.inc.php on line 136 Notice: Undefined index: s in /var/www/config/smarty.config.inc.php on the above appeared when I reloaded the page where it should have contained the saved changes, i mean the page the visitor sees. no errors on the admin page Link to comment Share on other sites More sharing options...
Mike Kranzler Posted February 28, 2012 Share Posted February 28, 2012 Hi hokaro, Can you please use the attachment system (you'll need to click on "More Reply Options" below) to attach the file in question, config/smarty.config.inc.php? I would like to take a look at it and compare it to my version to try to see what I can potentially change to get yours back up and running properly. -Mike Link to comment Share on other sites More sharing options...
alexandraburuciuc Posted February 29, 2012 Share Posted February 29, 2012 I have the same problem with PrestaShop 1.4.7. Any solution? smarty.config.inc.php Link to comment Share on other sites More sharing options...
hokaro Posted February 29, 2012 Author Share Posted February 29, 2012 Hello again, Thanks for your efforts, here is the file attached: smarty.config.inc.php Link to comment Share on other sites More sharing options...
hokaro Posted March 3, 2012 Author Share Posted March 3, 2012 :-( I have not yet been able to solve the problem... any help or idea? Link to comment Share on other sites More sharing options...
hokaro Posted March 6, 2012 Author Share Posted March 6, 2012 nobody seems to be willing to help...not even a prestashop support team member... yesterday I called prestashop in US at least ten times and at last they told me that I had to pay 399 US dollars before they even listen to me about the problem!!! Result: I guess I am going to change from prestashop to another platform, where you could find some kind of support. Pity for my time and energy over past 4 months on prestashop. Link to comment Share on other sites More sharing options...
Mike Kranzler Posted March 7, 2012 Share Posted March 7, 2012 Hi hokaro, My manager has asked that you give him a call to further discuss your issue. He can be reached at 888 947 6543, where you can ask for Matt. -Mike Link to comment Share on other sites More sharing options...
xEpyonx Posted March 12, 2012 Share Posted March 12, 2012 As of today this also happened to my prestashop 1.4.6.2 installation. I haven't modified anything :/ I have set 'display errors' to 'on', but I don't get any errors. When I have set all features for my product and hit save changes it goes back to the category page. I don't think it used to do that after saving changes, but I'm not too sure though. Help would be much appreciated since all other products in my shop use this feature to compare them to eachother, but my new products can't. Link to comment Share on other sites More sharing options...
Mike Kranzler Posted March 12, 2012 Share Posted March 12, 2012 As of today this also happened to my prestashop 1.4.6.2 installation. I haven't modified anything :/ I have set 'display errors' to 'on', but I don't get any errors. When I have set all features for my product and hit save changes it goes back to the category page. I don't think it used to do that after saving changes, but I'm not too sure though. Help would be much appreciated since all other products in my shop use this feature to compare them to eachother, but my new products can't. Hi xEpyonx, Can you please check your server's error log for anything PrestaShop related, and then copy those messages here? -Mike Link to comment Share on other sites More sharing options...
xEpyonx Posted March 12, 2012 Share Posted March 12, 2012 Hi Mike, My server's error log contains the following: [Mon Mar 12 00:10:21 2012] [error] [client 65.52.104.82] File does not exist: /home/ronsslaap/domains/ronsslaapparadijs.nl/public_html/robots.txt [Mon Mar 12 03:02:43 2012] [error] [client 212.182.142.212] File does not exist: /home/ronsslaap/domains/ronsslaapparadijs.nl/public_html/401.shtml [Mon Mar 12 03:02:47 2012] [error] [client 212.182.142.212] File does not exist: /home/ronsslaap/domains/ronsslaapparadijs.nl/public_html/favicon.ico [Mon Mar 12 03:13:29 2012] [error] [client 8.11.2.9] File does not exist: /home/ronsslaap/domains/ronsslaapparadijs.nl/public_html/robots.txt [Mon Mar 12 05:17:41 2012] [error] [client 66.249.66.196] File does not exist: /home/ronsslaap/domains/ronsslaapparadijs.nl/public_html/robots.txt [Mon Mar 12 05:19:49 2012] [error] [client 66.249.66.196] File does not exist: /home/ronsslaap/domains/ronsslaapparadijs.nl/public_html/noexist_2a7ca405c3894c0c.html [Mon Mar 12 05:31:18 2012] [error] [client 208.115.111.75] File does not exist: /home/ronsslaap/domains/ronsslaapparadijs.nl/public_html/robots.txt [Mon Mar 12 08:29:44 2012] [error] [client 66.249.66.55] File does not exist: /home/ronsslaap/domains/ronsslaapparadijs.nl/public_html/robots.txt [Mon Mar 12 08:31:05 2012] [error] [client 66.249.66.55] File does not exist: /home/ronsslaap/domains/ronsslaapparadijs.nl/public_html/images [Mon Mar 12 08:31:06 2012] [error] [client 66.249.72.143] File does not exist: /home/ronsslaap/domains/ronsslaapparadijs.nl/public_html/includes [Mon Mar 12 08:49:12 2012] [error] [client 76.72.167.164] File does not exist: /home/ronsslaap/domains/ronsslaapparadijs.nl/public_html/robots.txt [Mon Mar 12 08:58:31 2012] [error] [client 199.87.252.31] File does not exist: /home/ronsslaap/domains/ronsslaapparadijs.nl/public_html/robots.txt [Mon Mar 12 08:58:38 2012] [error] [client 199.87.252.31] File does not exist: /home/ronsslaap/domains/ronsslaapparadijs.nl/public_html/favicon.ico [Mon Mar 12 09:36:24 2012] [error] [client 83.84.22.95] File does not exist: /home/ronsslaap/domains/ronsslaapparadijs.nl/public_html/favicon.ico [Mon Mar 12 09:59:47 2012] [error] [client 157.55.16.56] File does not exist: /home/ronsslaap/domains/ronsslaapparadijs.nl/public_html/robots.txt [Mon Mar 12 10:29:04 2012] [error] [client 208.115.111.75] File does not exist: /home/ronsslaap/domains/ronsslaapparadijs.nl/public_html/robots.txt [Mon Mar 12 11:13:51 2012] [error] [client 212.182.142.212] File does not exist: /home/ronsslaap/domains/ronsslaapparadijs.nl/public_html/401.shtml [Mon Mar 12 11:26:14 2012] [error] [client 193.239.254.247] File does not exist: /home/ronsslaap/domains/ronsslaapparadijs.nl/public_html/robots.txt [Mon Mar 12 11:58:49 2012] [error] [client 212.182.142.212] File does not exist: /home/ronsslaap/domains/ronsslaapparadijs.nl/public_html/401.shtml [Mon Mar 12 11:58:52 2012] [error] [client 212.182.142.212] File does not exist: /home/ronsslaap/domains/ronsslaapparadijs.nl/public_html/favicon.ico [Mon Mar 12 12:00:12 2012] [error] [client 212.182.142.212] File does not exist: /home/ronsslaap/domains/ronsslaapparadijs.nl/public_html/mails/nl/{shop_logo}, referer: http://www.ronsslaapparadijs.nl/mails/nl/shipped.html [Mon Mar 12 12:33:47 2012] [error] [client 207.46.12.236] File does not exist: /home/ronsslaap/domains/ronsslaapparadijs.nl/public_html/robots.txt [Mon Mar 12 13:32:30 2012] [error] [client 212.182.142.212] File does not exist: /home/ronsslaap/domains/ronsslaapparadijs.nl/public_html/401.shtml [Mon Mar 12 13:47:21 2012] [error] [client 157.55.16.56] File does not exist: /home/ronsslaap/domains/ronsslaapparadijs.nl/public_html/robots.txt [Mon Mar 12 13:50:10 2012] [error] [client 82.192.66.203] File does not exist: /home/ronsslaap/domains/ronsslaapparadijs.nl/public_html/robots.txt [Mon Mar 12 14:27:41 2012] [error] [client 81.70.200.206] File does not exist: /home/ronsslaap/domains/ronsslaapparadijs.nl/public_html/images [Mon Mar 12 14:36:44 2012] [error] [client 208.115.111.75] File does not exist: /home/ronsslaap/domains/ronsslaapparadijs.nl/public_html/robots.txt I don't think anything in there is related to the features not saving problem :\ Link to comment Share on other sites More sharing options...
hokaro Posted March 12, 2012 Author Share Posted March 12, 2012 Here is the last error lines on my server error log: the first two lines happened after I tried to add some features to a new product, and the last two lines happened when I tried to change some features from an old product. error logs between happened between two actions: [Mon Mar 12 16:31:35 2012] [error] [client 87.96.182.253] PHP Warning: Unknown: Input variables exceeded 1000. To increase the limit change max_input_vars in php.ini. in Unknown on line 0, referer: http://www.newdator.se/admin1977/index.php?tab=AdminCatalog&id_product=106&updateproduct&token=ef95528fa3fde5249399f0d752502e16 [Mon Mar 12 16:31:35 2012] [error] [client 87.96.182.253] PHP Warning: Unknown: Input variables exceeded 1000. To increase the limit change max_input_vars in php.ini. in Unknown on line 0, referer: http://www.newdator.se/admin1977/index.php?tab=AdminCatalog&id_product=106&updateproduct&token=ef95528fa3fde5249399f0d752502e16 [Mon Mar 12 16:32:05 2012] [error] [client 66.249.71.4] PHP Notice: Undefined index: s in /var/www/config/smarty.config.inc.php on line 98 [Mon Mar 12 16:32:05 2012] [error] [client 66.249.71.4] PHP Notice: Undefined index: s in /var/www/config/smarty.config.inc.php on line 136 [Mon Mar 12 16:32:05 2012] [error] [client 66.249.71.4] PHP Notice: Undefined index: s in /var/www/config/smarty.config.inc.php on line 138 [Mon Mar 12 16:32:05 2012] [error] [client 66.249.71.4] PHP Warning: rename(/tmp/wrtnILQPk,/var/www/tools/smarty/cache/blockcategories^1_6_0_22^41b428b23aabaac5058a25d5b79b88cbdfbcbf7a.blockcategories.tpl.php): Permission denied in /var/www/tools/smarty/sysplugins/smarty_internal_write_file.php on line 48 [Mon Mar 12 16:32:05 2012] [error] [client 66.249.71.4] PHP Warning: chmod(): Operation not permitted in /var/www/tools/smarty/sysplugins/smarty_internal_write_file.php on line 50 [Mon Mar 12 16:37:00 2012] [error] [client 87.96.182.253] PHP Warning: Unknown: Input variables exceeded 1000. To increase the limit change max_input_vars in php.ini. in Unknown on line 0, referer: http://www.newdator.se/admin1977/index.php?tab=AdminCatalog&id_product=14&updateproduct&token=ef95528fa3fde5249399f0d752502e16 [Mon Mar 12 16:37:00 2012] [error] [client 87.96.182.253] PHP Warning: Unknown: Input variables exceeded 1000. To increase the limit change max_input_vars in php.ini. in Unknown on line 0, referer: http://www.newdator.se/admin1977/index.php?tab=AdminCatalog&id_product=14&updateproduct&token=ef95528fa3fde5249399f0d752502e16 Link to comment Share on other sites More sharing options...
Mike Kranzler Posted March 12, 2012 Share Posted March 12, 2012 Hi hokaro, Thanks for providing that error log, we were able to identify a potential cause for your issues based on that information. Please access your site via FTP and set the permissions for your tools/smarty directory to 655 recursively, and then clear your browser and smarty caches and let me know if that resolves it for you. -Mike Link to comment Share on other sites More sharing options...
Mike Kranzler Posted March 12, 2012 Share Posted March 12, 2012 And as for your other error in that log, if you do not have access to your php.ini file, please call your hosting provider, show them the error log and ask them to increase the max_input_vars value, as this is a hosting-related issue. I hope this helps. -Mike Link to comment Share on other sites More sharing options...
hokaro Posted March 12, 2012 Author Share Posted March 12, 2012 And as for your other error in that log, if you do not have access to your php.ini file, please call your hosting provider, show them the error log and ask them to increase the max_input_vars value, as this is a hosting-related issue. I hope this helps. -Mike I host the server myself, and I am the admin too... I have access to the php.ini, but I couldn't find the max_input_vars in this file. I searched through this file using "nano" in my ubuntu server. Where is this value? Link to comment Share on other sites More sharing options...
xEpyonx Posted March 13, 2012 Share Posted March 13, 2012 Hi hokaro, Thanks for providing that error log, we were able to identify a potential cause for your issues based on that information. Please access your site via FTP and set the permissions for your tools/smarty directory to 655 recursively, and then clear your browser and smarty caches and let me know if that resolves it for you. -Mike Hi Mike, I also tried the above, but no luck This bug is just too weird; everything works just fine except features. The thing is I really need it for the shop to remain uniform. A lot of products already have a lot of features added to them. I'd really like to have the option for my customers to compare different products to eachother. It's also not a unique occurence anymore since there are more people having this same issue :\ I really hope someone can figure this one out, because I really like my prestashop! 1 Link to comment Share on other sites More sharing options...
Mike Kranzler Posted March 13, 2012 Share Posted March 13, 2012 I host the server myself, and I am the admin too... I have access to the php.ini, but I couldn't find the max_input_vars in this file. I searched through this file using "nano" in my ubuntu server. Where is this value? Hi hokaro, First of all, did you already apply my first suggestion about checking the permissions of your tools/smarty directory? Additionally, can you please place the attached file in the root of your store, and then navigate to www.yoursite.com/phpinfo.php and search for that max_input_vars value in the results that come up? phpinfo.php -Mike Link to comment Share on other sites More sharing options...
hokaro Posted March 13, 2012 Author Share Posted March 13, 2012 Hi hokaro, First of all, did you already apply my first suggestion about checking the permissions of your tools/smarty directory? Additionally, can you please place the attached file in the root of your store, and then navigate to www.yoursite.com/phpinfo.php and search for that max_input_vars value in the results that come up? phpinfo.php -Mike Thanks for the effort. Yes, I did change the chmod to 655 as you wrote. I put your file, phpinfo.pho, into my root, and here are some the lines: log_errors_max_len 1024 1024 magic_quotes_gpc Off Off magic_quotes_runtime Off Off magic_quotes_sybase Off Off mail.add_x_header On On mail.force_extra_parameters no value no value mail.log no value no value max_execution_time 30 30 max_file_uploads 20 20 max_input_nesting_level 64 64 max_input_time 60 60 max_input_vars 1000 1000 As you see, the last line is max_input_vars and it's value is 1000... I guess this should be changed, where can i change it? Link to comment Share on other sites More sharing options...
hokaro Posted March 13, 2012 Author Share Posted March 13, 2012 Hi hokaro, First of all, did you already apply my first suggestion about checking the permissions of your tools/smarty directory? Additionally, can you please place the attached file in the root of your store, and then navigate to www.yoursite.com/phpinfo.php and search for that max_input_vars value in the results that come up? phpinfo.php -Mike sorry, I try to paste the above line again, as it was pasted into the box in a bad way. Here is the discussed parameter: max_input_value: 1000 (local value) .... 1000 (master value) PS: read my previous post too, please Link to comment Share on other sites More sharing options...
Mike Kranzler Posted March 13, 2012 Share Posted March 13, 2012 Hi hokaro, Since you don't seem to have this value in your php.ini file, please back it up and then try adding this line to it: max_input_vars = 6000 Hopefully, that will allow you to override that error. Please let me know if this works for you. -Mike Link to comment Share on other sites More sharing options...
hokaro Posted March 13, 2012 Author Share Posted March 13, 2012 I did what you said, and it worked like a charm ... now it adds new values and changes old values as it should. Thanks a lot for your help. I stay a Prestashop:er Link to comment Share on other sites More sharing options...
Mike Kranzler Posted March 13, 2012 Share Posted March 13, 2012 Great, I'm glad I could help, even if it was a little more difficult than we would've liked. I'll go ahead and mark this thread as solved for you. Happy selling! -Mike Link to comment Share on other sites More sharing options...
xEpyonx Posted March 14, 2012 Share Posted March 14, 2012 Hi Hokaro, I'm really happy this solved it for you! I also ran the phpinfo.php file and also came up with max_input_vars = 1000 And then I remembered that last month my provider updated the server to php 5.3 and maybe the settings got reset. I'll mail them tomorrow and see if it's possible for them to set it to 6000 since I probably don't have access to the php.ini file. Also, Mike, thank you very much for putting in the time and effort to help solve this problem! Link to comment Share on other sites More sharing options...
Mike Kranzler Posted March 14, 2012 Share Posted March 14, 2012 It's my pleasure! Please let me know if that works for you as well! -Mike Link to comment Share on other sites More sharing options...
xEpyonx Posted March 14, 2012 Share Posted March 14, 2012 Hi Mike, The solution also worked for me! I used the .htaccess generator in the Prestashop backend to add php_value max_input_vars 6000 to my .htaccess file to temporarily override the standard value. Since the problem really is only with the actual saving of the feature values, I delete the line from my .htaccess so the server goes back to it's original setting when I'm done adding features. My hosting provider also was very helpful in this. They did note that Prestashop really shouldn't need for the max_input_vars to be so high, since it's actually a safety measure of sorts, so maybe this is something that can be addressed in Prestashop v1.5, which I'm really looking forward to by the way! Still, I'm relieved everything works just fine again! Link to comment Share on other sites More sharing options...
Mike Kranzler Posted March 14, 2012 Share Posted March 14, 2012 Great, I'm glad this worked for you too! Happy selling! -Mike Link to comment Share on other sites More sharing options...
Frens Posted March 19, 2012 Share Posted March 19, 2012 Hi My hosting provider tell its a high risk.. to set the value high : php_value max_input_vars 6000 'hash collisie' attack,on PHP: http://www.php.net/manual/en/info.configuration.php#ini.max-input-vars In the next future , he wil make it impossible to set the value high . I try to change the Languages in the xx.php file , but there are no change in the translation text ! Link to comment Share on other sites More sharing options...
Leonardoeng Posted July 21, 2012 Share Posted July 21, 2012 Hi Guys, I got this issue too ... I had changed the max_input_vars to 6000 and worked fine by two weeks, now I got this issue again. I changed the max to 100000 and persisted the features issue. Anyone have a different solution? Link to comment Share on other sites More sharing options...
Bejo Posted September 21, 2012 Share Posted September 21, 2012 how about you create new file php.ini and put it at admin folder root. on php.ini put this suhosin.post.max_vars=4252 suhosin.request.max_vars=4252 max_input_vars = 6000 tell me it's work or not.thx Link to comment Share on other sites More sharing options...
alarmdanmark.dk Posted September 24, 2012 Share Posted September 24, 2012 how about you create new file php.ini and put it at admin folder root. on php.ini put this suhosin.post.max_vars=4252 suhosin.request.max_vars=4252 max_input_vars = 6000 tell me it's work or not.thx Hi i don't have acces to the server php.ini - but i have the same problem and the host wont set up the max_input_vars limit because he is afraid of DNS attack does anyone have a solution - i cant use the translation of the shop Link to comment Share on other sites More sharing options...
dzsar Posted October 26, 2012 Share Posted October 26, 2012 create .htaccess file to domain.com/admin/ folder .htaccess content: php_value max_input_vars 10000 or php_value max_input_vars 6000 1 Link to comment Share on other sites More sharing options...
PaulM-pack Posted November 28, 2012 Share Posted November 28, 2012 create .htaccess file to domain.com/admin/ folder .htaccess content: or thank's a lot, work fine Link to comment Share on other sites More sharing options...
amr.rs Posted December 13, 2012 Share Posted December 13, 2012 I also have the same issue. Features are not getting saved. Any help pls? Link to comment Share on other sites More sharing options...
sgtbash Posted January 23, 2013 Share Posted January 23, 2013 Fixed for me by placing max_input_vars = 6000 in a new file "php.ini" inside my 'admin' folder. =) The .htaccess version of this did not work for me. Must be differences in server set ups as my host allows override php.ini files to be made. =) Link to comment Share on other sites More sharing options...
imadnl Posted April 13, 2013 Share Posted April 13, 2013 I don't know how to do that, can you send me a sample file how i have to paste "max_input_vars = 6000"? Link to comment Share on other sites More sharing options...
jrok Posted April 27, 2013 Share Posted April 27, 2013 (edited) HI I JUST SOLVED!!! THE PRODUCT MUST HAVE SOME PROBLEM IN UPC OR EAN13 OR META OR SEO...THATS WHY CANT BE SAVED. AFTER THAT FEATURES WORK AGAIN. Edited April 27, 2013 by jrok (see edit history) Link to comment Share on other sites More sharing options...
amr.rs Posted July 4, 2013 Share Posted July 4, 2013 Hi i'm stuck with this problem for a long time. Tried all those mentioned here. nothing works out. Link to comment Share on other sites More sharing options...
Spyridon Posted May 4, 2015 Share Posted May 4, 2015 I'm having this exact problem. My phpinfo says: max_input_vars 1000 It states for php.ini: Configuration File (php.ini) Path /etc/php5/cgi Loaded Configuration File /home/zamozuan/etc/php5/php.ini I edited both those files to 9999, still did not update phpinfo. I tried creating a new php.ini and adding it to publichtml and the admin root directory, both unsuccessful. I tried using .htaccess to edit it in both of those same directories, again unsuccessful. Getting very frustrated. Shouldn't the above file be the one that is actually being loaded? I mean phpinfo states it is the path & configuration files being used. How come they are being overwritten??? And if they are being overwritten, how can I figure out how or what is overwriting it??? Link to comment Share on other sites More sharing options...
Recommended Posts