Skip Navigation

[Resolved] View showing results inconsistently

This support ticket is created 3 years, 7 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: Africa/Casablanca (GMT+01:00)

This topic contains 7 replies, has 2 voices.

Last updated by deepS 3 years, 6 months ago.

Assisted by: Jamal.

Author
Posts
#2024065
Screenshot_1.jpg

Hi,
I have created a custom post type called Jobs which has a custom field - 'Last date of Application/Date of Interview'.
Problem URL: hidden link

There are three views on the page. See screenshots. I have issues with the view 2 and 3. The results are irregular. If you have noticed that View 1 has an image but View 2 is showing 'No Job Expiring Today'.

See View 1 shows the image only when there is an unexpired job that means view 2 is not picking up the right result by showing 'No Job Expiring Today'. If you debug it, it shows the result.

Now the View 3: It is displaying the jobs that have already expired. I have tried clearing cache files but doesn't work. The thing I have noticed that there is a problem with pagination while random results are showing fine. Please have a look.

#2024165

Hello and thank you for contacting the Toolset support.

To better assist you with this issue, I'll need to take a closer look at how the views are configured. Would you allow me temporary access to your website? Your next reply will be private to let you share credentials safely. ** Make a database backup before sharing credentials. **

If you can prepare a staging site and let me check it that would very helpful. This way, I can deactivate themes/plugins if needed, without impacting your users.

#2026443

I logged into your website and started analyzing the views when I realized that now they are returning "correct" results, check this screenshot hidden link

Am I missing something? Please explains what is not working as expected and tell me what would you expect instead.

#2026465

As I have told you, it behaves inconsistently. Once you enter the backend and click some the settings, the view shows the proper result and again suddenly behaves in a wrong way. I request you to check the same tomorrow. You will notice that the results are different from what it should be.

#2026477

This smells like a cache issue. Would you like to deactivate WP Rocket temporarily and check if the issue is reproducible?

I am sure you will understand, that if we can't reproduce an error, we can't really fix it. If you can find patterns that could explain this error or a way to reproduce it, I am sure, we'll fix it quickly.

#2027095

I understand your point and tried deactivating all the plugins but doesn't work. One interesting fact is it works good on the mobile device but have issues with the desktop. Today it happens again. What I did- I entered the view and changes the result display order to something else and then again back to the old order setting. It works fine. So far I realised it will work fine for the rest of the day. The problem will reappear again tomorrow. What I understand I am filtering with the 'Today()' value where it might have some issue.

I don't know how to reproduce the issue but really annoying. I would request you if you could discuss with your technical team and can fix the problem. Thanks.

#2027691

As you are saying the issue may arise tomorrow, it still smells like a cache issue. Can you disable the internal Toolset cache on the view with the cached="off" attribute, and check again?

[wpv-view name="job-list-expiring-today" cached="off"]

https://toolset.com/documentation/programmer-reference/views/views-shortcodes/#vf-154377

We'll also need to check these errors on a different server, my local setup, or on our online platform, to exclude any possible server-level cache or issue.

I am afraid, that if we don't know clear steps to reproduce the issue, I can't escalate it to another level of support. I need to gather all the technical details about the issue before escalating it. Maybe I'll fix it 🙂

#2030787

My issue is resolved now. Thank you!