In continuation to this thread: https://toolset.com/forums/topic/logged-in-users-seing-logged-out-pages/
The problem is persistent and you are actually experiencing the exact same problem on https://toolset.com/.
Here are the steps to reproduce:
1. Go to lien caché
2. Go to Shop
3. Go to Staffroom
4. Go to blogs
5. Log in (top right) (I will need to provide you with credentials)
6. Go to Staffroom (notice login and yellow join now button, top right)
7. Ctrl+R to refresh (notice you now see the page in a logged in state)
8. Go to Shop (notice login and yellow join now button, top right)
7. Ctrl+R to refresh (notice you now see the page in a logged in state)
Dear Peter,
I assume we are talking about the problem step 8):
Go to Shop (notice login and yellow join now button, top right)
The expected result is "the page in a logged in state".
If it is, how do you setup the "notice login and yellow join now button" in shop page? are you using Views shortcode to setup it?
In case there is any other compatibility problem, please try this:
1) deactivate other plugins and switch to wordpress default theme, and test again
2) If the problem still persists, please provide a database dump file (ZIP file) of your website in below private detail box, I need to test and debug it in my localhost, thanks
I tried it in below URLs:
https://toolset.com/
I see below it works fine, it is displaying correct user info, see screenshot 1.JPG
Then I tried below URL:
https://toolset.com/account/sites/
It works fine too, see screenshot 2.JPG
There isn't same problem as you mentioned above:
Go to Shop (notice login and yellow join now button, top right)
In order to debug this problem, please provide detail steps for duplicate same problem:
how do you setup the "notice login and yellow join now button" in shop page? are you using Views shortcode to setup it?
I need to test and debug it in my localhost, thanks
The problem was present on your site yesterday morning. I cannot re-create it now. you have the steps to recreate on my site in the original post.
Please provide me with some way to give you a copy of the site in order for you to test.
Alternatively, I can give you access to staging version of the site.
This is extremely urgent and is currently costing us customers and money. I have exhausted all options with my hosting company and everything points back to Toolset. yes, I am using Views, Types, Layouts etc.
I have removed all caching including core WordPress caching, yet I still have this issue. Please help!
As I mentioned above, I need the detail steps to duplicate same problem:
how do you setup the "notice login and yellow join now button" in shop page? are you using Views shortcode to setup it?
I need the detail steps to duplicate same problem and debug it in my localhost.
If you can help us to duplicate the problem, that will be able to locate the problem.
And we need to check if there is any other compatibility problem in your website, please make sure the problem does exists when you:
deactivate other plugins and switch to wordpress default theme, and test again
If there isn't detail steps, and in your hidden post:
https://toolset.com/forums/topic/logged-in-users-seeing-logged-out-pages-part-2/#post-585245
You mentioned: The file size is too large to upload on here.
Please provide a test site with the same problem, in a minimal wordpress installation, without other plugins or custom theme, and fill below private detail box with login details and ftp access.
I can also debug it in a live website, thanks
I tried the credentials you provided above, but I get the 404 error, please check it, make sure it is valid.
And my working time is GMT+8 from 9:00 ~18:00.
And there is a misunderstanding, in the original post, you have described steps to see the problem:
https://toolset.com/forums/topic/logged-in-users-seeing-logged-out-pages-part-2/#post-584949
But I need detail steps to duplicate same problem, that means
1) I need to know how do you setup the "notice login and yellow join now button" in shop page? are you using Views shortcode to setup it? How do you setup it?
2) Are you using custom PHP codes to setup those "join now button"?
Please answer above questions?
lien caché
Sorry. It's ".com." not ."net". However this information was clear in the original post, too.
I was also very clear on the answer to your two questions (which are actually the same question worded differently) in my previous reply "https://toolset.com/forums/topic/logged-in-users-seeing-logged-out-pages-part-2/#post-586878" - "The conditional in the header uses wp-types conditional shortcodes and checks if current user is null."
Is there perhaps someone else who can help me with this? I feel like we are getting absolutely nowhere at the moment.
Thanks for the details, I can see the problem in your website, what you need is reload the page every each time you visit, I searched it in google, find some related thread, for example:
lien caché
Please let me know if you still need assistance from other supporters
Yes I would like further support, please. I am not satisfied with this solution. It appears that you are suggesting that this is a problem with the Toolset Layouts theme.
It isn't theme problem, you need to disable the browser cache, for example, you can modify theme file header-layouts.php from:
<?php
remove_theme_mod( 'menu_floating' );
?>
<!DOCTYPE html>
<html <?php language_attributes(); ?> class="no-js">
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
To:
<?php
remove_theme_mod( 'menu_floating' );
header("Cache-Control: no-cache, no-store, must-revalidate"); // HTTP 1.1.
header("Pragma: no-cache"); // HTTP 1.0.
header("Expires: 0"); // Proxies.
?>
<!DOCTYPE html>
<html <?php language_attributes(); ?> class="no-js">
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta http-equiv="expires" content="-1">
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Cache-Control" content="no-cache" />
And I just test it in your website, it works fine, you will need to clear your browser cache to test the result.