Skip Navigation

[Resolved] This short code prints out a user name even after the user has logged out

This thread is resolved. Here is a description of the problem and solution.

Problem:

This short code
[wpv-current-user info="login"]
Prints out a user name even after the user has logged out of wordpres.

I was reading the views code but it is big. Any suggestion about what could cause this?

Solution:

It is a cache problem, you will need to disable Views cache of "side bar login", you can replace the view shortcode from:

[wpv-view name="side bar login"]

To:

[wpv-view name="side bar login" cache="off"]

Relevant Documentation:

https://wp-types.com/documentation/user-guides/views-shortcodes/#wpv-view

This support ticket is created 4 years, 2 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 2 replies, has 2 voices.

Last updated by ferdinandoa 4 years, 2 months ago.

Assisted by: Luo Yang.

Author
Posts
#1792295

I am dealing with an interesting situation here. This short code
[wpv-current-user info="login"]
Prints out a user name even after the user has logged out of wordpres.
I was reading the views code but it is big. Any suggestion about what could cause this?
It is visible on the front page of hidden link, the text: "testsite1 Ciao Redazione !".
the part "testsite1", if you can see that part, is a username. Maybe it is necessary to login and logout to get the problem.
But I can replicate this even changing browsers or using incognito mode.
This is used in the view called "side bar login".
This is a development copy of the site, you can edit it at will, there is no problem.

#1792653
logout.JPG

Thanks for the details, I can see the problem in your website.

It is a cache problem, you will need to disable Views cache of "side bar login", I have done below modifications in your website:
Dashboard-> Aspetto-> Widget, find and edit widget "Momizat - Custom Text Widget", replace the view shortcode from:
[wpv-view name="side bar login"]
To:
[wpv-view name="side bar login" cache="off"]

Please test again, check if it is fixed, more help:
hidden link
cached (opt): off
Turns off the caching system for the View.

#1797187

My issue is resolved now. Thank you!