Skip Navigation

[Resolved] issue without login can't showing view data in front

This support ticket is created 4 years, 8 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
- - 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00
- - - - - - -

Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)

This topic contains 6 replies, has 2 voices.

Last updated by Beda 4 years, 8 months ago.

Assisted by: Beda.

Author
Posts
#1320947

issue without login can't showing view data in front

#1321029

Do I unterstand correctly that you have a view, listing some posts, and cannot see that view unless you are logged in?

Most likely, you then have a Query Filter for authorship of the post (current user) or you use Access, to hide the View until the User is logged in?

If none of that fits the issue, please can you add:
- exact steps you take to see the issue
- where the issue happens
- what you expect instead
- if the issue persist with other theme and plugins or not

I can then check why it's happening and what to do in order to solve it.

If you need, you can add Log In details below, and also screenshots to explain the issue, so I can better understand and help you faster.

Thanks!

#1321845

That's right, the entire DIV section "all-update-list-view" is empty when logged out.

That HTML DIV is wrapping the View, so it cannot be from the Loop, or any part inside the View or further "Downstream", instead it must be where the View is inserted to, or in its Layout editor.

I found that you use hidden link Content Template for this page, and that's where the "all-update-list-view" DIV is created, wrapping the [wpv-view name="all-updates-view-new"] view.
Nothing wrong with this.

The View itself (hidden link), has HTML Conditional ShortCodes in the loop.
So, after all, it could be some condition - however, I do not see any checks upon the current user, or author.

You do not use Toolset Access, so there can be no interference from there either.

The only I saw, is that your ShortCodes both in the View loop and Content Template are misconfigured.
They feature breaking syntax, visible by the reddish highlighted code.
You can see this in 2 places:
Loop Of the View:

[image-shortcode-2 image="[types field='overview-image' output='raw' resize='proportional'][/types][wpv-conditional if="( $(wpcf-overview-image) eq '' )"][types field='header-background' output='raw' resize='proportional'][/types][/wpv-conditional]"]

Content Template:

[image-shortcode-1 image="[types field='header-background' output='raw' resize='proportional'][/types]"]<img src='[types field='header-background' output='raw' resize='proportional'][/types]' alt='image'>

Can you try removing that code and ensure there is no other reddish highlighted code, as well as no missign or over opening HTML tag?
This seems like a live site so I neglected to do this test myself.

If that does not help, I'd suggest creating a very simple View, where you display those posts (no query, no filter) and create a very simple loop, to see if that is visible on the front end as a logged-out user.

If not, it has something to do with another plugin or Theme.
I'd then suggest, testing all this again without any other plugin but Toolset, and another Theme.
This should be done on a staging site, possibly.

Also, imperative before all these tests, is to update all plugins used in the setup - I see that Toolset is outdated currently, and an update would be required in order to narrow down the issue.

#1322027

Hi Beda

I remove shortcode which you send me still same issue arise.

Thanks

#1322031

I understand.
Can you confirm:

1. the plugins are updated (see https://toolset.com/forums/topic/issue-without-login-cant-showing-view-data-in-front/#post-1321845 bottom)
2. Does a simple View work? (see https://toolset.com/forums/topic/issue-without-login-cant-showing-view-data-in-front/#post-1321845 after the code samples)
3. Finally, if this does not help, does it work without other plugins and another theme? (see https://toolset.com/forums/topic/issue-without-login-cant-showing-view-data-in-front/#post-1321845, I suggest doing that on a staging site)

In this case, I'd probably need a copy of the site. It's much faster and easier to narrow down the issue as at this point it would require "taking the site apart" to spot how to replicate the issue, so to determine if it's a bug or a misconfiguration.

As I see it on your site, there is no reason for the content to be hidden.
One of my first steps locally will be to export all your content and views, and import it to another install
This will show if maybe the install is faulty, or the settings in the views are.

Thank you

#1322073

My issue is resolved now. Thank you!

#1322763

Can I ask what the key-point was solving the issue?

I can then update the ticket's solution, helping you and others with the same issue in future 🙂

Thank you!

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.