Forum

Welcome to ProjeQtOr new Forum. We migrated old forum to the new website.
You will find all your posts here, with your usual account.
Just one point : you’ll have to reinitialize your password. Use “Lost password” feature.

[SOLVED] Entering h...
 
Notifications
Clear all

[SOLVED] Entering hours in timesheet causes max_input_vars error

10 Posts
2 Users
0 Reactions
4,858 Views
(@iconic)
Posts: 280
Active Member
Topic starter
 
[#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.


 
Posted : 11 May 2020 16H02
(@iconic)
Posts: 280
Active Member
Topic starter
 

Log attached


 
Posted : 11 May 2020 16H05
babynus
(@babynus)
Posts: 14966
Main Contributor 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)


 
Posted : 11 May 2020 16H31
(@iconic)
Posts: 280
Active Member
Topic starter
 

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.


 
Posted : 11 May 2020 16H38
(@iconic)
Posts: 280
Active Member
Topic starter
 

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


 
Posted : 11 May 2020 17H19
babynus
(@babynus)
Posts: 14966
Main Contributor Admin
 

Did you restart PHP after change in php.ini ?


 
Posted : 11 May 2020 17H25
(@iconic)
Posts: 280
Active Member
Topic starter
 

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


 
Posted : 11 May 2020 17H38
babynus
(@babynus)
Posts: 14966
Main Contributor Admin
 

Same error in log file ?


 
Posted : 11 May 2020 17H45
babynus
(@babynus)
Posts: 14966
Main Contributor Admin
 

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


 
Posted : 11 May 2020 17H46
(@iconic)
Posts: 280
Active Member
Topic starter
 

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

fixed the problem


 
Posted : 12 May 2020 8H40
Share:

Scroll to Top