Forum

[SOLVED] Entering h...
 
Notifications
Retirer tout

[SOLVED] Entering hours in timesheet causes max_input_vars error

10 Posts
2 Utilisateurs
0 Reactions
4,838 Vu
(@iconic)
Posts: 280
Reputable Member
Début du sujet
 
[#6697]

One of my staff am have completed activity. Each time they are trying to input the hours worked of 0.75 in their timesheet they receive the following error message. Please assist.
ERROR : Error - Maybe max_input_vars is too small in php.ini
in saveImputation.php
at line 39
Contact your administrator.
(detailed error is reported in log file)

When i log into their account on another computer i do not receive the error.


 
Posté : 11/05/2020 4:02 pm
(@iconic)
Posts: 280
Reputable Member
Début du sujet
 

Log attached


 
Posté : 11/05/2020 4:05 pm
(@babynus)
Posts: 14952
Membre Admin
 

Hi,

Message is clear "Maybe max_input_vars is too small in php.ini"
The form has too much input fields to fit this parameter, because of too many lines.
Try and increase max_input_vars or reduce number on lines (close old activities)


 
Posté : 11/05/2020 4:31 pm
(@iconic)
Posts: 280
Reputable Member
Début du sujet
 

But that does not explain why it works on a completely different computer without the error and on the laptop my staff member is using it has the error.


 
Posté : 11/05/2020 4:38 pm
(@iconic)
Posts: 280
Reputable Member
Début du sujet
 

I have increased my max_input_vars in my php.ini to 10,000 and the error still occurs. Please help.


 
Posté : 11/05/2020 5:19 pm
(@babynus)
Posts: 14952
Membre Admin
 

Did you restart PHP after change in php.ini ?


 
Posté : 11/05/2020 5:25 pm
(@iconic)
Posts: 280
Reputable Member
Début du sujet
 

Yes I restarted the httpd service and the problem is still happening.


 
Posté : 11/05/2020 5:38 pm
(@babynus)
Posts: 14952
Membre Admin
 

Same error in log file ?


 
Posté : 11/05/2020 5:45 pm
(@babynus)
Posts: 14952
Membre Admin
 

NB : if you have suhosin, you must also increase
suhosin.post.max_vars
suhosin.request.max_vars


 
Posté : 11/05/2020 5:46 pm
(@iconic)
Posts: 280
Reputable Member
Début du sujet
 

Updated the values of suhosin.post.max_vars
suhosin.request.max_vars

fixed the problem


 
Posté : 12/05/2020 8:40 am
Share:
Retour en haut