Calendar Not Visible When Logged Out
Everything works fine while logged in. I can create events, etc. Everything looks great I also added an event list that looks fine. However, when I log out I can no longer see the calendar. I can still see the event list. I checked permissions and it shows viewable by guests.
I've looked through the forums but can't find anyone having a similar problem.
Does anyone have any ideas of something I've missed, incompatibility with the theme, or if this is a bug in 8.3.2.
I am unable to reproduce this issue.
What is the URL for the page with a Calendar block on it?
The errors may be caused by the theme, add-ons, or custom code.
One approach is to backup your site to recreate it online or locally. Using the backup, you can start eliminating the possible sources of the error in steps.
- switch to the default Elemental theme
- remove custom blocks and add-ons
- remove custom code
It looks like you are using the Framework theme. Have you modified it in any way?
Have you tried switching to the default Elemental theme to see if you still get the error?
Then I switched back to Framework theme and changed the page type on the Calendar page from "Full" to "Home", first deleting the Calendar block then re-adding it to the page after switching the page type to "Home", since the Calendar block is working fine on the Home page. Still no change.
Everything works as it should while logged into the editor, but fails when logged out.
When viewing your calendar page in Firefox and Chrome on Windows, there is a console error.
"Uncaught TypeError: element.attr(...).magnificPopup is not a function"
When you switched to the Elemental theme, did you clear the cache after switching?
The calendar is not working on the home page, it throws errors.
fullcalendar.js:6 Uncaught ReferenceError: moment is not defined at fullcalendar.js:6 at fullcalendar.js:6 (anonymous) @ fullcalendar.js:6 (anonymous) @ fullcalendar.js:6 lang-all.js:1 Uncaught ReferenceError: moment is not defined at lang-all.js:1 at lang-all.js:1 (anonymous) @ lang-all.js:1 (anonymous) @ lang-all.js:1 (index):453 Uncaught TypeError: $(...).fullCalendar is not a function at HTMLDocument.<anonymous> ((index):453) at j (jquery.js:2) at Object.fireWith [as resolveWith] (jquery.js:2) at Function.ready (jquery.js:2)
Also, what happens if you disable caching and clear the cache?
Thanks for taking a look at this.
I'm also seeing the same console errors.
I did clear cache, both C5 and Chrome, after switching to the Elemental theme.
I have been experimenting with various cache settings and I'm not seeing any improvement.
Also, there is an "intermittent" element to this. Sometimes it works, and then it doesn't, without having made any changes. I'm also seeing the background video on the home page is not loading intermittently. I'm going to remove that and see if it is the source of these problems.
This might explain why clearing the cache sometimes works but isn't a permanent fix.
Though it's not necessary for the theme, but it helps to show up the full calendar, events and the details lightbox.
There you simply add the above line of code in the registerAssets function. It's described in the docs:https://documentation.concrete5.org/developers/designing-for-concret...
I did something else, randomly, a while back and it started working. So, I don't have a change to view, but I like the insurance. :-)