My wp-admin/nav-menus.php has gone missing

Hey guys.

This is probably an unusual one. I’m running X Ethos, if you’re not familiar with my (many) questions, LOL.

I recently added some menus to my navbar, and went back to adjust them further, and since that point, I keep getting a 404 error. I’ve tried re-uploading nav-menus.php, I’ve tried clearing my cache - nada. 404 'til the day I die, it seems.

Everything else (that I can see at least) works in the admin area just fine.

Any thoughts or suggestions?

Hi There,

Upon checking your website, I could see that you’ve 36 active plugins.

Please try testing a plugin conflict. You can do this by deactivating all third-party plugins, and see if the problem remains. If it’s fixed, you’ll know a plugin caused the problem, and you can narrow down which one by reactivating them one at a time.

Hope it helps.

Based on the testing I just did, it’s Cornerstone. That was the very last plugin I reactivated, and that’s when I got the 404 error. Is it safe to leave Cornerstone deactivated?

Naturally, Cornerstone turned itself back on when I checked the X settings page. So I guess I can just turn cornerstone off if I need to update the menu in any way?

Hi Amie,

We do check a lot of sites, but we have not seen Cornerstone doing this issue. This looks like a memory limit exhaustion to me, as you have a lot of Plugins but your site has only 96M memory limit, WordPress alone requires 128M.

Let’s try increasing your memory limit, add this on your wp-config.php file located at the root directory of your site.

define( 'WP_MEMORY_LIMIT', '512M' );
define( 'WP_MAX_MEMORY_LIMIT', '512M' );

You can add it just before the line:

/* That’s all, stop editing! Happy blogging. */

Some hosting does not allow their users on manually doing this, so you might need to contact your hosting support to do this for you.

While you’re at it, please also ask your hosting support how you can upgrade your PHP version to 5.6 or higher (but not v7.2). Because right now you have PHP version 5.5.38, which is lower than what is required by WordPress.

Let us know how it goes,
Cheers!

I think I have done both on my own (my server is a VPS, so I’m able to make changes) … is there any way you can check to see if that’s the case?

I believe I upped the memory to 512M and to PHP version 7.0, but again, not certain.

Regardless,and with clearing the cache, the menu continues to 404.

Hi There,

Yes, I see that the memory limit is increased now. Can you check your Wordpress’ file nav-menus.php under \wp-admin directory if its present. If not, you might need to re-install your Wordpress as we don’t know what other files that you’re missing.

I also notice that the site is under CloudFlare, please login to your CF dashboard, purge the entire caching and deactivate (dev mode) it for a while.

Also try re-saving the Permalinks (Settings > Permalinks)

Thanks,

It’s definitely present - see image below.

CF purged and dev mode’d.

Permalinks saved x2.

Menus still 404 so long as cornerstone is enabled.

Hi There,

Let’s enable the WP_DEBUG to try to catch what is causing the error. Please add this on your wp-config.php file.

define('WP_DEBUG', true);
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false);

Add that before the line:

/* That's all, stop editing! Happy blogging. */

If you don’t mind, please provide us with FTP credentials in a secure note, so we can take a closer look.

Thanks,

Done. Secure note coming up…

Hi @chicknlil,

Is this a multi site? Or converted from multi site? The error that I see in your error logs are about queries related to multi site.

But I did disable the entire plugin folder through FTP and it starts working, hence, the culprit is one of them or combination. You could try testing for a plugin conflict. You can do this by deactivating all third party plugins, and seeing if the problem remains. If it’s fixed, you’ll know a plugin caused the problem, and you can narrow down which one by reactivating them one at a time.

Let us know how it goes!

Hi @chicknlil

It also turns out that loading nav-menus.php?action=locations works, while nav-menus.php is still giving “Server not found 404 error”, this is most likely a caching issue on your server, I suggest reaching out to your web host regarding this issue.

Thanks.

To the first responder, I’d already done the plugin check, and Cornerstone came up as the culprit.

So I guess I’ll work with what I’ve got and go from there. Thanks guys for trying.

You’re most welcome! Cornerstone has no relation to WP Menus, so it must be a combination and cornerstone only triggers it. Thanks!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.