• Resolved kamalx

    (@kamalx)


    Hi
    First time poster to troubleshooting section here; I found similar posts in the forum but not exactly the same problem neither any solution to it yet.

    I made a simple custom theme for WP3.1.3. and used a custom nav menu to organize the menu items in it. Tested it on local machine (with an xampp setup on Linux – default apache and php settings as in xampp) and it works fine, however the same theme on WP 3.1.3 gives me problems while trying to save the custom nav menu on a production server. Everything else on it is working fine – but I’m dependent on this nav-menu for setting up the website and its just not working.

    There are only 4 links in the nav menu; I just can’t imagine that to exceed any limits on post vars or memory with just 4 items in it. :/

    The problem:
    When I have a customized permalink structure (similar to settings on my local testing machine which works flawlessly), I get a 404 Page not found error on clicking “Save” after customizing the nav menu on the production server.

    When I set it back to default permalinks (the ones using page IDs and all), it gives the following error on clicking the “Save” button after customizing the nav menu on the production server:

    400 Bad Request

    Your browser sent a request that this server could not understand.

    Unlike some other people who’ve posted about problems regarding nav-menus.php rendering nothing, I am very well able to customize the menu in the dashboard interface, but just can’t save it by any means. Not sure if it could be due to same or different reasons.

    I’m working with a fresh install without any plugins enabled. I’ve tried saving the custom menu with the packaged twentyten theme, the same error occurs. Any guidance greatly appreciated. I totally fail to understand what is happening here. Never encountered this kind of issue with any other sites on any other production servers so far. Also, is there a way to manually update the db to get the desired menu without screwing up the entire installation? That would really help in case I can’t find a solution to the nav-menus.php issue. :S
    Thanks heaps!

Viewing 10 replies - 1 through 10 (of 10 total)
  • I don’t know if this helps, but when I constructed my own dynamic menu (not using nav-menus.php) nothing showed up until I had at least one published post in each relevant category (the cats actually listed in the menu).

    Further, creating and uploading php pages into the themes directory doesn’t do anything until you create a WP Page by that name via the Dashboard…then my 404 pages suddenly started disappearing…

    Thread Starter kamalx

    (@kamalx)

    Hey ixwa, thanks for your reply! I’ll make sure I check that when I use categories in the custom menu.

    However, in this case, all the pages linked to from the custom menu have been already published and have titles and content in them. The default links I have on the theme work fine too. Just that I am not able to customize the menu the way I want _and save it_ using the Menus editor in the dashboard.

    Also, the code used in the theme to get those page links in an unordered list ( using a call to wp_nav_menu() ) works fine on my local test machine.

    Thanks for your time though! ??

    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 Twenty Ten 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.

    – re-uploading the wp-admin and wp-includes folders from a fresh download of WordPress.

    – resetting your custom permalinks back to the default setting. If this works, then you may have a server-related problem..

    Thread Starter kamalx

    (@kamalx)

    Hey esmi, thanks for your reply!

    I have tried all the points you suggested. I did not activate any plugins at all since i set up the site and it only has the default packaged Akismet and Hello Dolly plugins in the plugins folder, but I did the “resetting the plugins folder” step anyway.

    Also, default twentyten theme with the default permalink settings didn’t work either in this case. It still fails to save the customized menu and immediately throws a 400 Bad request error (if permalinks are set to some nice url the error thrown is 404 Page not found as I mentioned in my first post).

    I am trying to save the menu over and over, hoping that if there is something wrong on the server, it might work as soon as it is sorted out. :S

    This sounds like a faulty install or a server related problem. Do you have access to server error logs?

    Thread Starter kamalx

    (@kamalx)

    Oh well, wait… It works!

    Meh, it will remain a mystery to me what fixed the issue, but it works now.

    I already had it set to default theme, default permalink structure, with no plugins activated whatsoever.

    Recollecting the last thing I did following your post (@esmi):

    Resetting the plugins folder” using FTP. It again gave the same errors once, but worked on subsequent attempt.

    Not sure what fixed it. ?? It works with my theme too now! ??

    Thanks much esmi! Perhaps it was the plugins folder!
    Cheers!

    Sounds like there was something funky with the original plugins folder. Glad you got it working anyway. ??

    Thread Starter kamalx

    (@kamalx)

    Thanks much!

    I saw your post after posting my reply and I was actually thinking on the same lines – some server problem (but no idea what exactly), as I already tried a clean install of the whole thing for a second time. Can’t go wrong twice on that one. ??

    But then, everything else works, so how come!

    Weird that whatever the issue is with the plugins folder (assuming that is the issue) it triggered without ever activating the plugins and it affected only the functionality of wp-admin/nav-menus.php from observations so far. Foxed, I am.

    Does your host operate a web cache? I’m wondering if resetting the plugins folder flushed the cache.

    Thread Starter kamalx

    (@kamalx)

    The problem is, its a clients’ production server and I have very limited information about the host. Since things have worked there so far without issues, all I was provided with was FTP and required db credentials.
    I’ll try and find out that bit about web cache though.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘WP 3.1.3 – nav-menus.php returns 404 not found on 'Save'’ is closed to new replies.