• Hi,
    I have the issue that the site menu is not updating for logged-in users, and still showing the menu options for logged-out users.
    Every page that was visited before logging-in now pulls a cached version of the page,
    showing the menu for users who are logged-out. Clicking on a page they didn’t visit before logging-in shows the logged-in menu.

    I use Ultimate Member together with w3cache and Soledad Theme.

    I disabled all plugins, except my theme plugins, Ultimate Member and W3Cache and removed all custom CSS, deselected all optimization options, removed all theme file modifiying, all code snippets but the error still happens.
    I even tried to create a new menu with only 1 page there and the login/logout elements with their visibility depending on the logged in/out status and the error still happens.

    Theme and server support both still couldn’t find the problem.

Viewing 14 replies - 1 through 14 (of 14 total)
  • Plugin Support Aswin Giri

    (@aswingiri)

    Hello @siki88

    Can you please try disabling “Ultimate member” plugin and see if changes to the menu reflect on your site so that we can know if “Ultimate member” is causing the issue.

    Thread Starter siki88

    (@siki88)

    The problem is only for the conditional menu items, so deactivating Ultimate Member to check would make no sense. When I go to a page that was visited before logging-in, it pulls a cached version of the page with the conditional menu not updated to the logged in state, meaning when I hover over Account menu point, it will still display me Login and Register there.
    And for all pages that I didn’t visit before logging in, it will show me under Account menu point Profile, Settings and Logout.

    Plugin Support Ultimate Member Support

    (@ultimatemembersupport)

    Hi @siki88

    Sorry for the late response. Could you please confirm that this issue still occurs when you deactivate the caching plugins? Has the hosting provider disabled any server cache to test the issue?

    Regards,

    Thread Starter siki88

    (@siki88)

    My server provider disabled Varnish and it still didn’t fix the issue.
    Memcached can’t be stopped and the server uses Redis and I don’t know if Redis could be the problem?
    The error is not happening with w3cache plugin disabled.

    Plugin Support Ultimate Member Support

    (@ultimatemembersupport)

    Hi @siki88

    Could you please tell us what is your hosting provider? Do you have any custom code in the htaccess file for the redirection purposes?

    Regards,

    Thread Starter siki88

    (@siki88)

    I use Cloudways as hosting provider.

    The only relevant thing to that apart from the W3 Cache stuff in my htaccess is this:

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteRule ^en/wp-login.php /wp-login.php [QSA,L]
    RewriteRule ^fr/wp-login.php /wp-login.php [QSA,L]
    RewriteRule ^de/wp-login.php /wp-login.php [QSA,L]
    RewriteRule ^it/wp-login.php /wp-login.php [QSA,L]
    RewriteRule ^es/wp-login.php /wp-login.php [QSA,L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    • This reply was modified 2 years, 7 months ago by siki88.
    Plugin Support Ultimate Member Support

    (@ultimatemembersupport)

    Hi @siki88

    Could you please try creating a backup of your current htaccess and then add back the default WP htaccess? Here’s the default htaccess content:

    RewriteEngine On
    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]

    Let’s see if this is causing the issue.

    Thread Starter siki88

    (@siki88)

    I tried to insert it on the very bottom of my htaccess but it didn’t work. My complete htaccess is really big, because w3cache put a lot of stuff inside there. So I wasn’t sure where to add your code. When using the basic htaccess, my page won’t work until I save permalink structure again and then it puts all those things in there again. Probably because I’m using custom permalink structure with Permalinks Manager Pro plugin.
    But I dont think thats the problem, because a while ago I disabled all plugins, except my theme plugins, Ultimate Member and W3Cache and removed all custom CSS, deselected all optimization options, removed all theme file modifiying, all code snippets but the error still occured.

    Thread Starter siki88

    (@siki88)

    This user her had the exact same problem but he never became an answer

    https://www.ads-software.com/support/topic/issue-with-caching-of-site-menu/

    Plugin Support Ultimate Member Support

    (@ultimatemembersupport)

    Hi @siki88

    Do you have similar services like Cloudflare installed on the Cloudways server?

    Thread Starter siki88

    (@siki88)

    No.

    I installed the 2.4.0 update now. That fixed this error, but now it’s like reversed. I don’t have the problem with pages not updating after login anymore, but after logout. Meaning when I visited pages while being logged in and then log out, the visited pages will still show the logged in view. Strange.

    Facing Same issue trying to get soultion

    @siki88 @oaufi

    Did you find a solution or reason why this is happening? I’ve seen a lot of topics about this, but none of them has a solution or a reason why it’s happening.

    Thread Starter siki88

    (@siki88)

    Yes @hagenb and @oaufi . The solution for WPRocket is using this:

    https://docs.wp-rocket.me/article/1696-logged-out-cache-displayed-to-logged-in-users

    Just download the .zip file and upload it to your plugins in WordPress. That fixed it for me.

    It took me so much time and effort to find the solution, I hope nobody else will ever have to search for it. Let me know if I could help you.

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Navigation menu not updating’ is closed to new replies.