Skip Navigation

[Gelöst] I have a problem with displaying content

Dieser Thread wurde gelöst. Hier ist eine Beschreibung des Problems und der Lösung.

Problem:
The customer was facing an issue where the Full Calendar JavaScript, embedded within a view on their site, stopped displaying events. Despite trying updates and checks, the calendar remained empty.
Solution:
We initially checked for errors and confirmed the calendar's functionality. When further issues were detailed by the customer, we requested temporary admin and FTP access to diagnose the problem. After modifying the calendar-object view and observing a purge of internal cache, the events appeared again. To ensure updates were reflected immediately and to tackle ongoing caching issues, we advised the customer to disable caching for the specific view using the 'cached="off"' parameter in the Toolset view setup.

This support ticket is created vor 6 Monaten. 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.

Heute stehen keine Supporter zur Arbeit im Werkzeugsatz-Forum zur Verfügung. Sie können gern Tickets erstellen, die wir bearbeiten werden, sobald wir online sind. Vielen Dank für Ihr Verständnis.

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)

Dieses Thema enthält 6 Antworten, hat 2 Stimmen.

Zuletzt aktualisiert von Mateus Getulio vor 6 Monaten.

Assistiert von: Mateus Getulio.

Author
Artikel
#2696158

Tell us what you are trying to do?
For years, I use Full calendar javascript on versteckter Link
This javascript is written within a view. It stops working lately. I can't find out what causes this issue. I tried to solve the problem by updating the related post part, but that did'nt help. Can you take a look at my site?

Is there any documentation that you are following?
versteckter Link

#2696166

Mateus Getulio
Supporter

Sprachen: Englisch (English )

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

Hello there,

I checked it and the calendar seems fully functional. Also, I wasn't able to replicate any errors within the console in the browser dev tools.

Did you manage to fix the issue on your end?

If not, could you please elaborate a little more on this issue, so I can better understand? E.g. Is there an error message, what are the steps you've tried, etc.

Sometimes screenshots illustrating what you mean may go a long way to clarify what words fail to transmit, so if you like, make use of “upload an image” below the comment area.

Thank you, please let us know.

Mateus

#2696529
relation.png
custom-post.png
date-and-name.png
rooster.png

The problem is: I have a custom post for months. I use posts for days and I connect these to the month. In the post I have 2 custom fields, date and name. They have to appear on the calendar, but this is not working at the moment. The calendar is empty.

see screenshots.

code in the view:
[wpv-layout-start]
[wpv-items-found]
<!-- wpv-loop-start -->
<script>
var calOb={
firstDay: 1,
weekMode: 'variable',
events:[<wpv-loop>
[wpv-item index=1] { title :'[types field="naam"][/types]', start : '[types style="text" format="Y-m-d" field="dag"]'} [wpv-item index=other], { title :'[types field="naam"][/types]', start : '[types style="text" format="Y-m-d" field="dag"]'} </wpv-loop>]};
jQuery(document).ready(function(){
jQuery('#calendar').fullCalendar(calOb); });
</script>
<!-- wpv-loop-end -->
[/wpv-items-found]
[wpv-layout-end]

#2696590

Mateus Getulio
Supporter

Sprachen: Englisch (English )

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

Hello,

Thank you for providing us with that extra information.

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: versteckter Link

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

#2696932

Mateus Getulio
Supporter

Sprachen: Englisch (English )

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

calendar may.png

Hello Dido,

Thank you for providing me with those credentials.

I made a minor change to the calendar-object view and saved it. Then I noticed that the events started appearing in the calendar again, please check the screenshot.

I reverted my change and noticed that the calendar remained functional. I believe this could be due to some internal cache that was purged as a side effect of me changing the view.

Can you please test it again to make sure that it is working on your end as well?

Best,
Mateus

#2697035

Hi Mateus,

I can see the new dates, but May 6 is not appearing. I have published this post. I also changed June 1, but this is also not updating on the front end. I think you have a point about caching. I removed the cache on the server and in the browser. I also added these lines to the .htaccess file:

<FilesMatch "^/bevalling/dienstrooster">
Header set Cache-Control "max-age=0, public, must-revalidate"
</FilesMatch>

However, none of this is helping. Do you have any other suggestions?

#2697120

Mateus Getulio
Supporter

Sprachen: Englisch (English )

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

Hello Dido,

I edited the page Dienstrooster and added 'cached="off"' to the view:

[wpv-view name="Calendar object" cached="off"]

That forces Toolset to disable the caching system for that view.

Now, every change I make to the CPT Rooster gets automatically replicated to the calendar.

Please test it again and confirm it.

Best,
Mateus

#2697163

Mateus, I am very glad that you helped me solve the problem!