Page 1 of 1

How to increase the menu limit in Wordpress on XAMPP

PostPosted: 01. April 2016 15:14
by afindcom
Hi

I have a website with about 190 pages. Most of the pages are also a menu item as they are products with lots of detail and diagrams.
The problem is that servers only allow you ±90 menu items and you have to change the php.ini file with max_input_vars = 3000. or more (the default 1000 is too low)

The problem is that chanign the php.ini does not work on XAMPP.

Any suggestions?

btw. most of the posts on the net are very old. about 2 years old so I hope with the newer Apache versions there are better solutions.

Re: How to increase the menu limit in Wordpress on XAMPP

PostPosted: 01. April 2016 15:27
by Altrea
Hi,

afindcom wrote:The problem is that chanign the php.ini does not work on XAMPP.

Sure, why shouldn't this work?

best wishes,
Altrea

Re: How to increase the menu limit in Wordpress on XAMPP

PostPosted: 01. April 2016 16:25
by afindcom
Hi Altrea

It is quite heartening to hear that you are surprised that it does not work, this means that I am doing something wrong.
I have edited my php.ini file in the XAMPP control panel to the following:
; How many GET/POST/COOKIE input variables may be accepted
max_input_vars=8000

I have also tried to edit the .htaccess file with max_input_cars=8000;, but no change.

I might be changing the wrong .htaccess file or pho.ini.

Also. how do you reboot the XAMPP module. by just closing and restarting? Might there be some cache influencing the results?

Thanks so much for your replies.

Re: How to increase the menu limit in Wordpress on XAMPP

PostPosted: 01. April 2016 16:50
by Altrea
Open your phpinfo (http://localhost/dashboard/phpinfo.php) and search for the value of max_input_vars.
If this value is still 1000 than your change has no effect. Keep in mind that you need to restart Apache after changes in the php.ini.

Re: How to increase the menu limit in Wordpress on XAMPP

PostPosted: 04. April 2016 08:46
by afindcom
Thank you for the reply. Once i rebooted my pc it worked. I have changed the value in the php.ini file to 8000.