WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] WordPress menu problem (14 posts)

  1. vitenyi
    Member
    Posted 3 years ago #

    Hi
    I have a main menu at top http://www.gasztrotrip.hu.
    I've added two pages at the end of the menu ('Rólunk' and 'Kapcsolat'). The problem is, that the last menu item always become an empty link <a>..</a> after I save the menu. I tried to rename, modify pages, menu items but the result is the same.
    Why?
    Is there anybody facing the same problem like me?
    Thx

  2. alchymyth
    The Sweeper & Moderator
    Posted 3 years ago #

    your site and links look ok - no empty link.

    are you using the browser back button after saving the menu?
    this might lead to your described behaviour.

  3. vitenyi
    Member
    Posted 3 years ago #

    Hi, alchymyth,
    can you click at the last main menu item "Kapcsolat"?
    No, I never use browser navigations in back-end.

  4. alchymyth
    The Sweeper & Moderator
    Posted 3 years ago #

    no, i missed that. you are right, there is no url in that link.
    sorry for the confusion.

  5. esmi
    Theme Diva & Forum Moderator
    Posted 3 years ago #

    Have you tried:

    - deactivating all plugins to see if this resolves the problem? If this works, re-activate the plugins one by one until you find the problematic plugin(s).

    - switching to the default theme to rule out any theme-specific problems?

    - resetting the plugins folder by FTP or phpMyAdmin? Sometimes, an apparently inactive plugin can still cause problems.

  6. vitenyi
    Member
    Posted 3 years ago #

    I deactivated all plugins and switched to another theme. Deleted the last menu item and add again. The problem is still persists.
    But I have a suspicion. Is it possible, that there is a limitation for menu items, exactly 15??? My last item is the sixteens, including main and sub menu items.

  7. mrmist
    Forum Janitor
    Posted 3 years ago #

    If you are talking of the WP3.0 + navigation menus I can assure you that there is no limit of 15 in place, at least not by default.

  8. vitenyi
    Member
    Posted 3 years ago #

    WP3.0.1

  9. esmi
    Theme Diva & Forum Moderator
    Posted 3 years ago #

    Erm - there was a Trac ticket that established that there was an issue with some servers.

  10. vitenyi
    Member
    Posted 3 years ago #

    Thanks esmi!

    It is a similar topic: i-can-not-for-more-than-15-menu-items-why
    Unfortunately I've no access to error_log check the problem.
    I'll ask ISP.

  11. vitenyi
    Member
    Posted 3 years ago #

    So, my ISP set the next parameters:
    suhosin.post.max_vars = 0
    suhosin.request.max_vars = 0

    (0 is unlimited)
    Thanks

  12. zsero
    Member
    Posted 3 years ago #

    Luckily this is one of the top 3 pages of google search "wordpress menu limit", so I quickly found a solution. I wrote a letter to my ISP to set the limit to 5000 and now it's solved. I just asked them to set the following two values in PHP.

    suhosin.post.max_vars = 5000
    suhosin.request.max_vars = 5000

    But I think WordPress with it's millions of downloads should really think about a different structure for the menu data, as I think not all users go as far as this and really look after the problem. And something as popular as WordPress really shouldn't work in a "ask you ISP to set these values for you" way!

  13. kranthi.goli@vectramind.in
    Member
    Posted 2 years ago #

    Hi,

    The problem is in my website, in the menu, "The page content should be viewed only if a particular user is logged in. If that particular user is not logged in, and that user clicked that menu item, it should re direct to login page. Please help me on this issue.

    <div class="indent-1"><div id="dropmenu">
                        <?php
                            wp_page_menu('show_home=0&sort_column=menu_order, post_title&link_before=&link_after=');
                        ?>
                    </div></div>

    [Please post code snippets between backticks or use the code button.]

  14. drokkon
    Member
    Posted 2 years ago #

    Does anyone know if there's anything I can try besides adding

    suhosin.post.max_vars = 5000
    suhosin.request.max_vars = 5000

    or

    suhosin.post.max_vars = 0
    suhosin.request.max_vars = 0

    to my PHP.ini? I'm on a VPS, so I can theoretically do whatever is necessary, but I've tried adding both variations on the suhosin method and my menu still tops out at around 56 items. It just doesn't save anything beyond that.

Topic Closed

This topic has been closed to new replies.

About this Topic