• I’ve noticed on a few sites recently (using themes I’d built) that when I go to Appearance >> Menus to work with a menu the browser locks up for a few minutes. No errors in the console though. Sometimes it’ll eventually get to where I can start making edits, but sometimes it just times out. It doesn’t seem to do that through the customizer when I checked. Has there been some change to how menus are called? This is what I have in my functions file typically:

    add_action( 'init', 'register_my_menus' );
    
    function register_my_menus() {
    	register_nav_menus(
    		array(
    			'primary' => __( 'Primary', 'virtuoso' )
    			)
    		);
    	}
Viewing 13 replies - 1 through 13 (of 13 total)
  • Moderator James Huff

    (@macmanx)

    Volunteer Moderator

    This may be a plugin or theme conflict. Please attempt to disable all plugins, and switch to the default Twenty Twenty-One theme. If the problem goes away, enable them one by one to identify the source of the problem.

    If you can install plugins, install Health Check. On the troubleshooting tab, you can click the button to disable all plugins and change the theme for you, while you’re still logged in, without affecting normal visitors to your site.

    Thread Starter mywebmaestro

    (@mywebmaestro)

    It looks like it’s not the theme… it does the same thing with the default WordPress theme enabled. And, interestingly, after I installed the health check plugin as you suggested, with only the default theme and NO plugins enabled, it still does the same thing. When I click the dropdown to switch between menus, I get an outline of the dropdown but it doesn’t finish rendering – something isn’t loading in the background fully and it’s locking up. Most of the sites I’ve seen it on the last few days have been on my own server, though I saw a site on GoDaddy’s hosting do a shorter version of the same thing today as well. It didn’t hang quiet as long, but it was obviously getting a bit stuck at the same point. I think it’s a current WordPress version issue.

    Moderator James Huff

    (@macmanx)

    Volunteer Moderator

    How many pages do you have?

    Thread Starter mywebmaestro

    (@mywebmaestro)

    Only a few. Though the behavior does seem like what you’d expect if you had many many pages it was dealing with. (I’ve seen similar on another site a while back that did have many.) But, in all the cases recently it’s been less than 10 pages.

    Moderator James Huff

    (@macmanx)

    Volunteer Moderator

    Ok, PHP memory might be low then.

    What does it say under Health Check?

    Thread Starter mywebmaestro

    (@mywebmaestro)

    It says “Good” for site health… only note under performance, etc., is “your site is not using localized timezones”.

    Moderator James Huff

    (@macmanx)

    Volunteer Moderator

    At Tools > Site Health > Info > Server in your site’s Dashboard, what does it say for “PHP memory limit”?

    Thread Starter mywebmaestro

    (@mywebmaestro)

    512M

    Moderator James Huff

    (@macmanx)

    Volunteer Moderator

    Hm, that should be far more than needed, possibly too much, but that shouldn’t cause this problem.

    What version of PHP are you running per the same tab in Health Check?

    Thread Starter mywebmaestro

    (@mywebmaestro)

    That was my hunch as well… PHP version is 7.4.22

    Moderator James Huff

    (@macmanx)

    Volunteer Moderator

    That should be just fine.

    Do you have this issue with a fresh installation on the same server?

    Most hosting providers let you add free subdomains, like test.example.com

    Thread Starter mywebmaestro

    (@mywebmaestro)

    I tried installing WP on a test account, and am so far not seeing it happen… I’ve tried installing a handful of the normal things I install as well, including my basic theme, etc. But not the same result. I think I’m going to have to just check it every step of my next project to see if there’s some place where it’s going wrong. My main concern was that I needed to update my theme code, which seems to not be the case for this, so I guess that’s good… but it would be nice to know what’s causing it. 🙂

    Moderator James Huff

    (@macmanx)

    Volunteer Moderator

    Interesting, yeah so the problem isn’t WordPress itself.

    I recommend doing exactly as you described next on the test site, just keep re-implementing things until you find the one that slowed it down so much.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Appearance > Menus lagging?’ is closed to new replies.