• I have meanwhile about 200 menu entries on my homepage. It seams so, that I have reach now a limit. Everytime, if I try to add a new menu entry (a new internal page of homepage), I get this error message (500 Internal Server Error):
    Internal Server Error

    The server encountered an internal error or misconfiguration and was unable to complete your request.

    Please contact the server administrator at [no address given] to inform them of the time this error occurred, and the actions you performed just before this error.

    More information about this error may be available in the server error log.

    Installed is the latest version of virtue (3.4.10), WordPress 6.6.2, PHP Version: 8.1.30 64 Bit OS, Memory: Total: 512M Used: 24,85 MB

    Can I increase the value of available menu entries anythere?

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Eze

    (@chieze)

    Hi @katzentatzewp,

    There is no hard-coded limit to the number of menu items you can add. However, practical limits are often imposed by your server’s configuration rather than WordPress itself. These limits arise from server-side settings and resources, which can affect the ability to save and manage large menus.

    Here are some ways to resolve this:

    1. PHP max_input_vars LimitEach menu item generates several input fields in the form that gets submitted when saving the menu. The default limit for input variables is often set to 1000, which means when you have many menu items (and nested submenus), this limit might be exceeded.

    • Solution: Increase the max_input_vars setting to a higher number (e.g., 3000 or more, depending on the size of your menu). You can ask your hosting provider to increase the max_input_vars value in your php.ini file, .htaccess, or wp-config.php.

    2. PHP max_execution_time

    • When saving a large menu, it may take longer for the server to process all the menu items. If the script takes too long, it could time out if the execution time limit is too low.
    • Solution: Increase the max_execution_time in the server configuration to allow more time for processing the menu save request.

    Since you’re seeing a 500 Internal Server Error, it’s worth checking the server error logs for more details. These logs can provide specific information about what’s causing the issue and may suggest additional areas to adjust.

    I hope this helps! Please feel free to let me know if you need any more help on this.

    Cheers,
    Eze

    Hi there!

    We haven’t heard from you in a while. If you’re all set, kindly mark this topic as resolved.

    Otherwise, let us know if we can assist you further with it.

    Thread Starter katzentatzewp

    (@katzentatzewp)

    I have tried it all, the number of vars sets meanwhile very high, but nothing helps as decrease the number of menu entries as whole below 200. That is not my goal.

    max_execution_time = 5000
    max_input_vars=10000
    suhosin.post.max_vars = 10000
    suhosin.request.max_vars = 10000

    Hi there!

    Please reach out to your hosting provider and ask a copy of your website’s PHP error log. This should give us more information about what errors occurred on your page.

    Send us a copy of it here too.

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.