How to increase the menu limit in Wordpress on XAMPP

Problems with the Windows version of XAMPP, questions, comments, and anything related.

How to increase the menu limit in Wordpress on XAMPP

Postby afindcom » 01. April 2016 15:14

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.
afindcom
 
Posts: 5
Joined: 01. April 2016 13:17
Location: South Africa
Operating System: Windows 10

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

Postby Altrea » 01. April 2016 15:27

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
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 8297
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 10 Pro x64

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

Postby afindcom » 01. April 2016 16:25

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.
afindcom
 
Posts: 5
Joined: 01. April 2016 13:17
Location: South Africa
Operating System: Windows 10

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

Postby Altrea » 01. April 2016 16:50

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.
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 8297
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 10 Pro x64

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

Postby afindcom » 04. April 2016 08:46

Thank you for the reply. Once i rebooted my pc it worked. I have changed the value in the php.ini file to 8000.
afindcom
 
Posts: 5
Joined: 01. April 2016 13:17
Location: South Africa
Operating System: Windows 10


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 49 guests