Make WordPress Core

Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#21029 closed defect (bug) (invalid)

404 error when trying to edit a menu

Reported by: thewanderingbrit Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.4
Component: Menus Keywords:
Focuses: Cc:


Since upgrading to 3.4, when I try to edit a menu that is not the first one to appear on the screen (i.e., I click on the tab of the menu I want to edit), I am presented with a 404 error. Tried saving permalinks, but no good.

URL trying to reach to edit menu is http://www.doitwithwp.com/wp-admin/nav-menus.php?action=edit&menu=379

Change History (3)

#1 @nacin
3 years ago

  • Keywords reporter-feedback close added; needs-patch removed

This is some sort of server configuration issue. Very simply, wp-admin/nav-menus.php is a file that should definitely be getting the request here. Something is preventing '&menu=' from allowing Apache to pass that directly to wp-admin/nav-menus.php, and instead what is happening is it is falling through and reaching index.php. Do you have any custom .htaccess rules?

You may wish to try the support forums: http://wordpress.org/support/.

#2 @thewanderingbrit
3 years ago

  • Resolution set to invalid
  • Status changed from new to closed

You're right. Sorry for the false alarm.

The Perishable Press 5G blacklist firewall uses the following command:

<ifModule mod_rewrite.c>
 RewriteEngine On
 RewriteBase /
 RewriteCond %{QUERY_STRING} (environ|localhost|mosconfig|scanner) [NC,OR]
 RewriteCond %{QUERY_STRING} (menu|mod|path|tag)\=\.?/? [NC,OR]
 RewriteRule .* - [F]

Removing the menu element fixed the issue.

Thanks for the insight.

#3 @helenyhou
3 years ago

  • Keywords reporter-feedback close removed
  • Milestone Awaiting Review deleted
Note: See TracTickets for help on using tickets.