Jump to content

Translation & max_input_vars


Greu

Recommended Posts

Problem

the max_input_vars value in the php.ini file can be too small to allow using the translation function in Prestashop's backoffice

 

Solution

the max_input_vars value has to be increased manually when max_input_vars exists (usually set to 1000)

if max_input_vars does not exist, it has to be added : max_input_vars = 5000

 

Problem

tricky, the php.ini file can be located in different places depending on server configuration

changing the max_input_vars value in one place may not work

 

Solution

here is a list of a few places to look for (need root access to server) :

  • etc/[your php folder]/apache2/
  • etc/[your php folder]/cgi/
  • etc/[your php folder]/cli/
  • var/www/vhosts/system/[your web domain folder]/etc/
Link to comment
Share on other sites

 

Problem

the max_input_vars value in the php.ini file can be too small to allow using the translation function in Prestashop's backoffice

 

Solution

the max_input_vars value has to be increased manually when max_input_vars exists (usually set to 1000)

if max_input_vars does not exist, it has to be added : max_input_vars = 5000

 

Problem

tricky, the php.ini file can be located in different places depending on server configuration

changing the max_input_vars value in one place may not work

 

Solution

here is a list of a few places to look for (need root access to server) :

  • etc/[your php folder]/apache2/
  • etc/[your php folder]/cgi/
  • etc/[your php folder]/cli/
  • var/www/vhosts/system/[your web domain folder]/etc/

 

Insert .htaccess

<IfModule mod_php5.c>

php_value post_max_size 50M

php_value upload_max_filesize 50M

php_value memory_limit 128M

php_value max_input_vars 6000

</IfModule>

Link to comment
Share on other sites

if you build a phpinfo.php page, and call it, it will tell you where the php.ini file being used is located.

 

you can also use these free module to view php info from back office, so that phpinfo shows any changes by your shop to those values.

 

https://www.prestashop.com/forums/topic/278164-free-module-display-php-environment-phpinfo-back-office/

Link to comment
Share on other sites

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...