Increase the maximum number of characters in fields in PHP

From EN Ikoula wiki
Revision as of 17:14, 29 October 2015 by Ikbot (talk | contribs)
⧼vector-jumptonavigation⧽ ⧼vector-jumptosearch⧽

pl:Zwiększ maksymalną liczbę znaków w pola w PHP de:Erhöhen Sie die maximale Anzahl von Zeichen in Feldern in PHP nl:Verhoog het maximum aantal tekens in velden in PHP it:Aumentare il numero massimo di caratteri nei campi in PHP pt:Aumentar o número máximo de caracteres em campos em PHP es:Aumentar el número máximo de caracteres en campos en PHP fr:Augmenter le nombre maximal de caractères des champs en PHP

This article has been created by an automatic translation software. You can view the article source here.




Introduction

You get the following error ?

Attention, votre configuration PHP limite le nombre maximum de champs d'un formulaire *1000* pour max_input_vars. 
Veuillez contacter votre hébergeur pour augmenter cette limite à au moins 3000, ou vous devrez modifier les fichiers de traduction.


This is due to the parameter max_input_vars file PHP.ini not or incorrectly configured.

Solution

Dedicated server

If you have access to the configuration of the machine for example a SSH access, here is the procedure to be applied to solve the problem.

Locate the php.ini file

If you do not know the path to the php configuration file, please follow these instructions :

If you do not know the path of the configuration file, create a php file in the folder of your web site containing this
<? phpinfo(); ?>
Then, navigate your browser to the address of the file and note the location


Another solution, if the first does not work, is to type the following command in your terminal connected to your machine
 php -i | grep 'php.ini' 
You should receive output similar to this
 Loaded Configuration File => /usr/local/lib/php.ini 

Edit the php.ini file

Once localized configuration file we can modify it to increase the limit.

To connect to a machine through ssh protocol
ssh utilisateur@ma_machine
Your password you will be asked


Once connected move you in the php configuration file, most commonly
cd /etc/php5/ 
Now that you're in the php configuration file, edit the php.ini file
 vi php.ini 
Find and edit the following line
 # max_input_vars = 1000 
The need to uncomment the line or add the if it was not present in the file


You can now restart your web service in order to see the change take effect

Shared hosting

You must make the request to Ikoula support so that we are studying the possibility of increasing the limit of characters in fields on your shared hosting.
To do this please contact us at the following address : support@ikoula.com
Do not forget to provide us with the most possible detail ( n�� delivery, delivery type, error... )


You are not allowed to post comments.