JustFiction Posted November 30, 2014 Share Posted November 30, 2014 I'm having problems with the translation facility in the back office. I get the Max_Vars=1000 error when I try to edit the translations with large number of variables. It works fine for 'Front Office' and 'Errors' as these have less than 1000 variables. When I try to translate 'Modules' or 'Back Office' I get the usual warning about Max_Vars=1000. I've edited the php.ini file and set the Max_Vars & Suhosin values to 5000 (most I need is 3500). I've checked the PHP setup using phpinfo() on both the root directory and the prestashop instalation directory both are showing that the Max_Var value is set to 5000. Yet I still get the error in the back office when I try tanslation. I'm now working on version 1.4.11 last time I did translations was on version 1.4.8 and the current settings worked fine then. Anyone come across this before? Thanks Paul Link to comment Share on other sites More sharing options...
bellini13 Posted December 1, 2014 Share Posted December 1, 2014 Hi Paul, can you provide the exact error you are getting? Perhaps the number of translation fields has increased with v1.4.11 and it now requires more than 5000? Link to comment Share on other sites More sharing options...
JustFiction Posted December 1, 2014 Author Share Posted December 1, 2014 Hi, thanks for the reply, it is much appreciated... This is what I get when I try to do back office translations. Language : EN - Back-Office translationsExpressions to translate : 3325. Click on the titles to open fieldsets. Warning, your hosting provider limits the maximum number of fields to post in a form: 1000 for max_input_vars. Please ask your hosting provider to increase the post and request limit to 3425 at least. or edit the translation file manually. I get something similar when I try to do translation on the 'Modules' although the number is only 1200 or so. Warning, your hosting provider limits the maximum number of fields to post in a form: 1000 for max_input_vars. Please ask your hosting provider to increase the post and request limit to 1294 at least. or edit the translation file manually. Things had been going slowly wrong with the site (search stopped working and only one carrier option was displayed). Though before that the site had been working perfectly well for around four years. It got to the point where a clean install seemed like the best solution, especially as an upgrade gave to server errors I didn't want to sort out. I tried v1.6, but I preferred v1.4 as it was familiar and easier to do what I wanted. The last thing to impliment was the translations - the 'Front Office' and 'Errors' went smoothly - but I can't get the two above to work. The server is running PHP Version 5.4.35 and using phpinfo() in the root of the prestashop installation I get this (gave myself plenty of memory too)... max_input_time -1 -1 max_input_vars 5000 5000 memory_limit 128M 128M Read as much as I can about the topic, but can't see what I'm missng. Probably something simple (I hope). Any help gratefully received as I'm pulling my hair out.. Cheers Paul Link to comment Share on other sites More sharing options...
JustFiction Posted December 1, 2014 Author Share Posted December 1, 2014 Sorry formatting on the cut and paste went wrong - these are the settings I get from phpinfo() max_input_time = -1 max_input_vars = 5000 memory_limit = 128M Thanks Paul Link to comment Share on other sites More sharing options...
mickeyboy1 Posted December 1, 2014 Share Posted December 1, 2014 you could check your php.ini file and make sure there is no whitespace/gap before max_input_vars = 5000 as this will work: max_input_vars = 5000 yet this wont: max_input_vars = 5000 notice the space above I had this before so may be the same for you Link to comment Share on other sites More sharing options...
JustFiction Posted December 1, 2014 Author Share Posted December 1, 2014 Thanks both for your help, I have managed to fix the problem now. The php.ini file needed copying to the admin directory as well as the main prestashop direcory. I was looking at the max_var settings in the main store directory not the max-vars in the admin directory. I assumed since I checked both the the root directory of the main site and the prestashop directory that the admin directory would be the same, but apparently not. I Copied the php.ini file to the admin directory and increased the var limit to 10,000 in the process and now it's working fine. Seems you need several copies of the php.ini file in your directory structure. Cheers Paul 1 Link to comment Share on other sites More sharing options...
El Patron Posted December 2, 2014 Share Posted December 2, 2014 in the future, this module is very useful as it displays actual local/master values as used by ps http://www.prestashop.com/forums/topic/278164-free-module-display-php-environment-phpinfo-back-office/ Link to comment Share on other sites More sharing options...
bellini13 Posted December 2, 2014 Share Posted December 2, 2014 Thanks both for your help, I have managed to fix the problem now. The php.ini file needed copying to the admin directory as well as the main prestashop direcory. I was looking at the max_var settings in the main store directory not the max-vars in the admin directory. I assumed since I checked both the the root directory of the main site and the prestashop directory that the admin directory would be the same, but apparently not. I Copied the php.ini file to the admin directory and increased the var limit to 10,000 in the process and now it's working fine. Seems you need several copies of the php.ini file in your directory structure. Cheers Paul hmm. that is interesting. normally php.ini and .htaccess will get inherited by the child folders. But I suppose each host might implement something different, which would appear to be your case. Nice find! 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