Skip Navigation

[Resolved] Views stop working for logged out users

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

Problem:
Views stop working for logged out users all of the sudden.

Solution:
The issue is resolved. The Siteground Support team found out that the following options in the Siteground Speed Optimizer interfered with the Toolset Views :
- Defer Render-blocking JavaScript option
- Combine JavaScript option
Both are in the Frontend optimizations menu of the Speed Optimizer.

These 2 options got to be turned off here, in order for the Toolset Views to be displayed properly in Pages and Templates.

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.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

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

Supporter timezone: America/Sao_Paulo (GMT-03:00)

This topic contains 8 replies, has 2 voices.

Last updated by Mateus Getulio 10 months, 1 week ago.

Assisted by: Mateus Getulio.

Author
Posts
#2665551
Page-Fetes_logged-in_.JPG
Page-Fetes_logged-in.JPG
Template-Fete-1927_logged-out.JPG
Template-Fete-1927_logged-in.JPG
Page-Fetes_logged-out.JPG

I have several pages and templates with views displaying a loop of Objets
(Objet is a custon type, connected to Expositions and to Createurs with a Many-to-many relationship)
- for logged in users, with Administrator or Editor role for instance, the views in pages or Templates display properly
- for logged out users, the same views don't display at all in pages, and display strangely in Templates

This issue happened suddenly, without any relevant changes I can remember...

Is there any documentation that you are following?
Views - Custom Lists of Posts : but I did not find any clues to resolve the issue

Is there a similar example that we can see?
1.- Page displaying all Expositions (here "Fêtes des vignerons")
--- logged in : hidden link -> see attached screen capture : Page-Fetes_logged-in.JPG
--- logged out : hidden link -> see attached screen capture : Page-Fetes_logged-out.JPG

2. Template displaying Objects connected to the Exposition (here "Fête de 1927")
--- logged in : hidden link -> see attached screen capture : Template-Fete-1927_logged-in.JPG
--- logged out : hidden link -> see attached screen capture : Template-Fete-1927_logged-out.JPG

#2665807

Mateus Getulio
Supporter

Languages: English (English )

Timezone: America/Sao_Paulo (GMT-03:00)

Hello,

I would like to request temporary access (wp-admin and FTP) to your site to take better look at the issue. You will find the needed fields for this below the comment area when you log in to leave your next reply. The information you will enter is private which means only you and I can see and have access to it.

Our Debugging Procedures

I will be checking various settings in the backend to see if the issue can be resolved. Although I won't be making changes that affect the live site, it is still good practice to backup the site before providing us access. In the event that we do need to debug the site further, I will duplicate the site and work in a separate, local development environment to avoid affecting the live site.

Privacy and Security Policy

We have strict policies regarding privacy and access to your information. Please see:
https://toolset.com/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/

**IMPORTANT**

- Please make a backup of site files and database before providing us access.
- If you do not see the wp-admin/FTP fields this means your post & website login details will be made PUBLIC. DO NOT post your website details unless you see the required wp-admin/FTP fields. If you do not, please ask me to enable the private box. The private box looks like this: hidden link

Please, let me know if you need any additional details. Have a nice day.

#2665969

Mateus Getulio
Supporter

Languages: English (English )

Timezone: America/Sao_Paulo (GMT-03:00)

Hey there,

Thank you for sharing those details.

I checked it and I found the following records on the browser console when accessing your site without being logged-in:

siteground-optimizer-combined-js-48f3d37bc0e28f690166e487a4269dc5.js:1 Uncaught SyntaxError: Identifier 'wpvViewHead' has already been declared (at siteground-optimizer-combined-js-48f3d37bc0e28f690166e487a4269dc5.js:1:1)
The resource <URL> was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate `as` value and it is preloaded intentionally.
The resource <URL> was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate `as` value and it is preloaded intentionally.
fetes-des-vignerons/:1 The resource <em><u>hidden link</u></em> was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate `as` value and it is preloaded intentionally.

I noticed that while logged-in, the first line which is an error and the rest of those records didn't appear in the console.

As I test, I temporarily disabled Speed Optimizer by Siteground and the error stopped happening, can you please test it again?

I'd recommend reaching out to Siteground support, perhaps they might be in a better position to find and fix the culprit of this error faster.

Thank you,
Mateus

#2666099

Hi Mateus,
Thank you for your prompt response.
Indeed, the Siteground Speed optimizer is the source of this issue :
- I tried to change it's configurations for caching,but to no avail

I will contact the Sitegroung support and convey your findings to them
.
Please do not close this ticket, until I am able to get back to you with hopefully the fix from Siteground support, which myight be of help to some of Toolset users who run into the same problem.

Best regards,
Francesco

#2666559

Mateus Getulio
Supporter

Languages: English (English )

Timezone: America/Sao_Paulo (GMT-03:00)

Hello Francesco,

Sure thing.

In the meantime I'm marking this ticket as pending until we hear back from you.

Thank you, please let us know!

#2667791

Hi Mateus,
The Siteground Support team is looking into theis issue.
Please leave this ticket open, so I can put in their founfings.

Best regards,
Francesco

#2667945

Mateus Getulio
Supporter

Languages: English (English )

Timezone: America/Sao_Paulo (GMT-03:00)

Hi Francesco,

Thank you for letting us know.

Please keep us in the loop.

Best,

#2668411

Hi Mateus,

The issue ia resolved. The Siteground Support team found out that the following options in the Siteground Speed Optimizer interfered with the Toolset Views :
- Defer Render-blocking JavaScript option
- Combine JavaScript option
Both are in the Frontend optimizations menu of the Speed Optimizer.

These 2 options must be turned off, in order for the Toolset Views to be displayed properly in Pages and Templates.

Hopefully this will help other Toolset users, who also use the Siteground Speed Optimizer.

Best regards.
Francesco

#2668607

Mateus Getulio
Supporter

Languages: English (English )

Timezone: America/Sao_Paulo (GMT-03:00)

Hello Francesco,

Thank you very much for coming back and sharing the solution.

This is really helpful.

If you need our assistance in the future, please drop us a line.

Best regards,

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