Page 1 of 1

phpinfo() dont read new changes in php.ini

PostPosted: 16. November 2013 16:00
by fhavio
Hi,

I read a lot of post's related with this problem, but until now any of the options are working, that's why i come here to tell my problem.
I'm making an app for android and when i was trying to make an upload i'm receiving this error:

Unknown: Input variables exceeded 1000. To increase the limit change max_input_vars in php.ini. in Unknown on line 0

I'm sending an url with GET variables to my file in server, for what i see the problem is the size of variables that it is using (i dont know why this error is happening), so i went to php.ini and change that variable "max_input_vars" per default it is 1000 and i put it to 9999, to check. So like normal after editing and saving it, i stop all the apache processes, close xampp_control_panel and start it all again (i even restart the computer twice to be certain). Try the app and same error, went to php_info() file and everything was like beggining the value was in 1000 instead of 9999. but the php.ini was like i let it, so it saved.

I search for others .ini files and nothing. I read something about .htaccess files but i dont understand that well i search for somes but dont see anything unsual.

Even with this error a file is created in host with the correct name but without size, i test with a later xampp but was worst anything happens.

My xampp is 1.8.2 and my PHP is 5.4.19

Best Regards.

Re: phpinfo() dont read new changes in php.ini

PostPosted: 16. November 2013 16:09
by Altrea
Hi,

phpinfo() shows two values for this setting, a local value and a master value.
Which of them or both are showing the old value?

best wishes,
Altrea

Re: phpinfo() dont read new changes in php.ini

PostPosted: 16. November 2013 16:12
by fhavio
Hi,
Yeah both of the values are 1000.

BR

Re: phpinfo() dont read new changes in php.ini

PostPosted: 16. November 2013 16:29
by Altrea
The only reason for that is that you don't properly set this setting in your php configuration value.
Which configuration files are relevant are listed in your phpinfo() information.

Everything else is a syntax issue. By default the setting max_input_vars is commented out by a ; in front of the line. This needs to be removed.

Re: phpinfo() dont read new changes in php.ini

PostPosted: 16. November 2013 16:59
by fhavio
Ty man it was that omg i never remember of the comma :p

Thanks a lot

Re: phpinfo() dont read new changes in php.ini

PostPosted: 16. November 2013 17:00
by Altrea
Glad your problem could be solved.
Have fun with XAMPP and all that crazy stuff 8)