Forum

ERROR : Undefined i...
 
Notifications
Retirer tout

ERROR : Undefined index: nbLines in saveImputation.php at line 40

12 Posts
3 Utilisateurs
0 Reactions
10.2 K Vu
(@jck1307)
Posts: 6
Active Member
Début du sujet
 
[#3856]

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


 
Posté : 24 Nov AM 08:1111
(@babynus)
Posts: 14952
Membre Admin
 

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)


 
Posté : 24 Nov PM 14:1111
(@emcl01)
Posts: 5
Active Member
 

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é : 20 Jan PM 18:011
(@babynus)
Posts: 14952
Membre Admin
 

Post log file here.


 
Posté : 20 Jan PM 19:011
(@emcl01)
Posts: 5
Active Member
 

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


 
Posté : 20 Jan PM 20:011
(@babynus)
Posts: 14952
Membre Admin
 

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.


 
Posté : 20 Jan PM 20:011
(@emcl01)
Posts: 5
Active Member
 

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.


 
Posté : 20 Jan PM 20:011
(@babynus)
Posts: 14952
Membre Admin
 

Can you confirm that with only few lines (less that 10 to be sure), all works fine ?


 
Posté : 20 Jan PM 20:011
(@emcl01)
Posts: 5
Active Member
 

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.


 
Posté : 20 Jan PM 20:011
(@babynus)
Posts: 14952
Membre Admin
 

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


 
Posté : 20 Jan PM 20:011
(@babynus)
Posts: 14952
Membre Admin
 

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

 
Posté : 20 Jan PM 20:011
(@emcl01)
Posts: 5
Active Member
 

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.


 
Posté : 20 Jan PM 21:011
Share:
Retour en haut