Forum

Error in imputation
 
Notifications
Clear all

Error in imputation

12 Posts
3 Users
0 Reactions
13.4 K Views
(@amma)
Posts: 5
Active Member
Topic starter
 
[#923]

I get an error at Imputation.
And when I checked the log file I found that there is an error in tool/saveimputation.php
I change the value of max_input_vars but it doesn't work.


 
Posted : 28 Jan 2013 13H13
(@babynus)
Posts: 14952
Member Admin
 

What is the error logged ?


 
Posted : 28 Jan 2013 13H22
(@amma)
Posts: 5
Active Member
Topic starter
 

The error is : cause = Undefined index: workValue_6
the line 42 of the file saveimputation.php


 
Posted : 28 Jan 2013 13H42
(@babynus)
Posts: 14952
Member Admin
 

This is typically the kind of error due to incorrect max_input_vars.

I guess you already fixed the problem :
http://projectorria.toolware.fr/index.php/forum/5-ask-questions/2957-error-with-inpultation#2959

Maybe your fixed was removed (or not duplicated on new environment), or you have to increase max value.

php_value max_input_vars 3000
php_value suhosin.post.max_vars 3000
php_value suhosin.request.max_vars 3000

Advice : implement this fix directly in php.ini of your PHP server. You will possibly avoid reproducing on new instances...


 
Posted : 28 Jan 2013 13H54
(@amma)
Posts: 5
Active Member
Topic starter
 

I put:

php_value max_input_vars 4000
php_value suhosin.post.max_vars 4000
php_value suhosin.request.max_vars 4000

But it doesn't work.


 
Posted : 28 Jan 2013 14H20
(@babynus)
Posts: 14952
Member Admin
 

Did you change it in local php.ini (in folder /tool) or directly in php;ini of PHP server ?

There may be a change in your php configuration that forbits now to overwrite defaut configuration with local php.ini files.
Maybe you could try wih a .htaccess file.


 
Posted : 28 Jan 2013 14H59
(@sde)
Posts: 8
Active Member
 

Hi Babynus,

I have the same problem.
I've already changed the
php_value max_input_vars 3000 in php.ini on the server and I have alwys this problem for some ressources.

What do you suggest ?
Thanks,

SDE


 
Posted : 20 Jan 2014 18H23
(@babynus)
Posts: 14952
Member Admin
 

Try also to change the suhosin vars :

php_value max_input_vars 4000
php_value suhosin.post.max_vars 4000
php_value suhosin.request.max_vars 4000


 
Posted : 20 Jan 2014 19H28
(@sde)
Posts: 8
Active Member
 

I did it but I always have this problem.
It seems it works for some ressources but I have the problem with one.

The log file is:
2014-01-21 10:05:30 ===== TRACE ===== WARNING - Left work not retrieved from screen
2014-01-21 10:05:30 ===== TRACE ===== - Maybe max_input_vars is too small in php.ini
2014-01-21 10:05:30 ===== TRACE ===== - Assignment #1731 on Activity #269 for resource #17
2014-01-21 10:05:30 ** ERROR ** ERROR **
2014-01-21 10:05:30
** ERROR ** on file 'C:Apache2htdocsprojectorriatoolsaveImputation.php' at line (59)
2014-01-21 10:05:30
** ERROR ***** cause = Error - Maybe max_input_vars is too small in php.ini

What do you suggest ? Thanks,
SDE


 
Posted : 21 Jan 2014 12H10
(@babynus)
Posts: 14952
Member Admin
 

hi,

Where did you change values and how did you do it.

The exemple provided is defined to be in a .htaccess file :

php_value max_input_vars 4000
php_value suhosin.post.max_vars 4000
php_value suhosin.request.max_vars 4000

But then your apache confifiguration must allow .htaccesss changes :

AllowOverride All

Or directly in PHP.ini, but syntax is a bit different :

max_input_vars = 4000
suhosin.post.max_vars = 4000
suhosin.request.max_vars =4000


 
Posted : 21 Jan 2014 15H35
(@sde)
Posts: 8
Active Member
 

I did it directly in the PHP.ini with the synthax you propose.

But it seems we have the problem only for one user...


 
Posted : 21 Jan 2014 15H47
(@babynus)
Posts: 14952
Member Admin
 

But it seems we have the problem only for one user...

This confirms it is a max_input_vars issue : only users with many lines face the issue.
If you rediuce number of line (active assignments) for this user, issue will disapear...

Are you sure your restarted PHP after change in PHP.ini ?
Can you try a phpinfo() (exemple in joined file) to check that your change is taken into account ?


 
Posted : 21 Jan 2014 16H23
Share:

Scroll to Top