• I am using the Magnum theme and have hit a limit on the number of menu items I can add.

    I can get up to 90 items on my menu, and then it stops – I can add more, but when I click save menu, it reverts to the top 90 items.

    I have seen a similar issue on the forums recommending changing the PHP memory allocation and script timeout settings on the server.

    My ISP however advises that the limit on the server is set to 256MB and they don’t use suhosin so don’t think that is the issue. They advise I can try increasing the PHP memory limit further using ini_set() but think this might be a WordPress issue rather than a hosting issue. They suggest editing the PHP code as follows: ini_set(‘memory_limit’,’384M’);

    Unfortunately I do not know where to set ini_set() having searched some of the code in the theme editor. Any ideas?

Viewing 2 replies - 31 through 32 (of 32 total)
  • max_input_vars = 2000 worked for me!

    Here is how I solved this problem with cPanel:

    1. Login to cPanel, then choose “PHP Variables Manager”.

    2. Click on your WordPress folder.

    3. Enter max_input_vars in the variable box & click add.

    4. Enter a value for this variable. (I entered 5000, because my menu is really large)

    5. If you have Suhosin installed on your PHP, also enter suhosin.post.max_vars & suhosin.request.max_vars & add values for them.

    6. Make sure to select “Apply changes to all sub-directories” checkbox & click save.

    Well, that’s it. Before I tried to create a php.ini manually, but it didn’t work. Doing it with cPanel & selecting “Apply changes to all sub-directories” did the trick for me. Hope this helps…

Viewing 2 replies - 31 through 32 (of 32 total)
  • The topic ‘Menu Size Limit’ is closed to new replies.