Inline navigation not displaying correct menu items

Good day,

We’re experiencing a strange issue where a Navigation Inline element in a site’s header does not display the correct menu items (https://modelmaker.co.za/). This seems to be a recent issue and I’m not sure if it started after any of the recent updates.

It may also be related to the membership plugin being used on the site. We are using Ultimate Member which have also received some major updates recently. When a user is logged in the main menu appears correctly as shown in the screenshot below:

However, when the user logs out, the menu displays as follows:

I’ve checked all the Ultimate Member settings that apply to the display of the menus and all seems to be in order. I have purged all the W3 Total Cache settings and I’ve deactivated the plugin, I’ve also cleared the Cloudflare and browser caches but nothing has made a difference.

I even created another test menu and assigned it to the header, but it refuses to display the new menu even. It just keeps displaying this strange alternate version of the main menu.

Are you able to provide some insight as to what could be the cause for this issue?

Thanks in advance or your assistance.

Kind regards,

Hi @Glasseye,

Thanks for reaching out.
It seems that the issue is related to the Server Level Cache, I would suggest you contact your hosting provider to purge all the server-level cache. If that does not resolve your issue, please provide login credentials for your site in a secure note to examine it further, including:

– WordPress Site URL & Login URL
– WordPress Admin username/password

To create a secure note, click the key icon underneath any of your posts.

Thanks

Hi there,

We have established that server level cache is also not the issue.

I have provided the login details in a secure note.

Thanks

Hello @Glasseye,

Thanks for sharing the login details it seems that you have set the same header condition multiple times on both the headers. I would suggest you change the header condition and for the front page in the header. Your header Priority should be set as 0.

Please have a look at our condition and assignment doc.

Thanks

Many thanks Prakash,

I’m not sure why those multiple conditions are there, I did not set them. And I also did not set the priority to “5”. Not sure if that is something that happened with one of the updates. But I managed to fix the problem.

There were two factors involved with this issue - one was the Header conditions you addressed (which I believe prevented any changes I was making to the menu from displaying on the front-end) and the second factor was a problem caused by an Ultimate Member plugin update.

I removed the extra conditions on the headers and set the priority of the two headers to “0”, as per your suggestion, and even though the problem still persisted it at least allowed the menu changes to show on the front end again so I could continue testing and troubleshooting.

I then tried rebuilding the menu bit by bit, refreshing to see if anything breaks as I go along. I then found when I tried to add certain pages to the menu that they would not appear on the front end. I looked into those particular pages and found that they were all pages that could only be viewed by users that were logged in.

Since we’re using the Ultimate Member plugin to manage users on this site, I looked into the Ultimate Member settings for these pages and found that during an update of Ultimate Member it had reverted a setting on all those problematic pages that would display a 404 page when the user is not logged in, instead of redirecting the user to the login page.

This setting caused the page’s link to not appear in the menu. Once I deactivated this 404 setting and told Ultimate Member to redirect the user to the login page, the link immediately reappeared in the main menu and the issue was fixed.

Apologies for the long description, but perhaps it will help someone in future with a similar issue.

Hi Glasseye,

Glad to know that the problem is fixed. And thanks for posting the reason, it will help others having this type of issue.

Thanks

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