Hello,
when saving imputations, I get the following error:
ERROR : Undefined index: nbLines
in saveImputation.php
at line 40
However, the nbLines parameter is present in the POST parameters of the saveImputation.php request
The most surprising thing is the fact my installation was working for few month without any problems. The only thing which occures is I created some new activities yesterday then moved it under another one and lost it. So, I recreated it.
As I still had the problem, I updated to 6.0.1 but still the same problem.
Any ideas about what's wrong?
Thanks a lot,
JC
You must be facing the "max_input_vars" issue.
Try and change the value of this parameter in your php.ini
(you'll find several posts on the subject in the forum)
Hello,
I am encountering the same problem.
max_input_vars was already set to 4000 as recommended, now increased to 10000 but still having the same error.
Do you see any other reason or task to perform to identify what could be the root cause.
Thanks,
Regards,
CL
Post log file here.
Hi,
Here are the last 3 lines of the log (these lines repeats each time I want to save in 'Real Work Allocation' tab, then I only put the last ones).
2017-01-20 17:59:30.489 ** ERROR ** ERROR **
2017-01-20 17:59:30.489 ** ERROR ** on file '/srv/www/htdocs/projeqtor/tool/saveImputation.php' at line (40)
2017-01-20 17:59:30.489 ** ERROR ***** cause = Undefined index: nbLines
Currently running on ProjeQtOr 6.0.5, but problem was the same on 6.0.4 (I upgraded to 6.0.5 this afternoon).
Thanks.
CL
Sure it is the max_input_vars issue.
How many line do you have on your real work allocation screen ?
Can you confirm that with only few lines (less that 10 to be sure), all works fine ?
NB : After changing max_input_vars, you must restart your php server.
Hello,
I did it and check using php 'info' and checked (PHP 5.5.14)
max_input_vars 10000 10000
memory_limit 256M 256M
I even increased the memory limit to 256M instead of 128M
Thanks,
CL.
Can you confirm that with only few lines (less that 10 to be sure), all works fine ?
Hello,
Oups, sorry I forgot to reply to your first question (I read too fast).
Yes, I confirm that with less then 10 lines, it works.
Thanks,
CL.
So it is sure it is a max_input_vars issue
If you use suhosin, you have to cha
max_input_vars = 4000
suhosin.post.max_vars = 4000
suhosin.request.max_vars = 4000
So it is sure it is a max_input_vars issue
If you use suhosin, you have to change suhosin values :
max_input_vars = 4000 suhosin.post.max_vars = 4000 suhosin.request.max_vars = 4000
Hello,
It seems to work now !!
I added these two extra parameters to the PHP.INI config and restart it and it seems to operate (they were not in my PHP.INI)
Thanks a lot !!
Best Regards,
CL.