Calendar Not Visible When Logged Out
Permalink
I've created a new calendar in Concrete5 v8.3.2 using the theme supermint 3.
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.
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.
The URL ishttp://www.arcilinc.org
Sorry, below is the url with the calendar.
http://www.arcilinc.org/index.php/calendar...
http://www.arcilinc.org/index.php/calendar...
@ewc07
There are JavaScript errors that are preventing the calendar from displaying.
The errors may be caused by the theme, add-ons, or custom code.
There are JavaScript errors that are preventing the calendar from displaying.
The errors may be caused by the theme, add-ons, or custom code.
Is there any way to tell what is causing the js error?
@ewc07
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
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
I'm having the same issue. I have a page with nothing but the Calendar block on it and it won't show. Inspector shows an apparent jquery conflict, but I can't resolve it with nothing on the page to remove. The calendar block works fine on my Home page with a much more complex layout. Does anyone have any ideas for me?
site:https://www.brandontennis.org/calendar...
site:https://www.brandontennis.org/calendar...
@Pixelfixer
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?
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?
Yes, I'm using the Framework theme. I don't think I have modified it in any major way other than color / font tweaks. I haven't tried switching to the Elemental Theme yet - I can give that a try. But, if it was the fault of the theme, why does the same block work fine on the Home page, yet not on a blank page?
I switched to the Elemental theme and same result. The calendar works fine on the Home page but doesn't show on the Calendar page.
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.
Baffling.
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.
Baffling.
Have you fixed this because the calendar is displaying for me now?
http://www.arcilinc.org/index.php/calendar...
http://www.arcilinc.org/index.php/calendar...
No. It will not display on the Calendar page for me on my Mac using Chrome. It will display for me on my PC using Chrome, but the calendar entries will not display on the calendar.
@Pixelfixer
When viewing your calendar page in Firefox and Chrome on Windows, there is a console error.
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.
Also, what happens if you disable caching and clear the cache?
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)
Viewing 15 lines of 16 lines. View entire code block.
Also, what happens if you disable caching and clear the cache?
MrKDilkington,
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.
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.
Well, removing the video background had no effect. I thought it may have been consuming too much RAM and causing the squirrely behavior in the Calendar. Back to the drawing board.
MrKDilkington,
Does the fact that everything works fine while logged in give you any clues to a specific conflict? Is there possibly a link to a javascript file I need to comment out somewhere?
Does the fact that everything works fine while logged in give you any clues to a specific conflict? Is there possibly a link to a javascript file I need to comment out somewhere?
When something works when logged in and not otherwise, that often indicates that you're relying on some javascript that's automatically loaded when logged in only. The classic case is jquery, but there are other possibilities.
Thanks, but what could be missing when logged out? I'm using the core Calendar block only, on a blank page where it breaks. It appears that maybe javascript causing the conflict is maybe being blocked when in Edit mode. But, I don't know how to find where to disable it, if indeed that's the case. Any other ideas out there?
Hi Pixelfixer, were you able to figure this out? I am experiencing the same issue
Not entirely. On a test site, I recreated the situation by installing everything clean and it all works. So, it appears to be some sort of hard-to-find glitch that goes away with a clean install. I still haven't done that on my site with the problem since I'm still hoping to find the problem before I have to totally re-do the site.
It looks like clearing the cache fixed the issue for me for the time being. I am waiting to see if the issue comes back.
Hey MrK. I'm getting the same issue with the backbone theme on 8.4.4. When logged out, magnific-popup.js looks like it is being included but in some sort of cached way, and after the calendar.
<script type="text/javascript" src="/concrete/js/fullcalendar/fullcalendar.js"></script>
<script type="text/javascript" src="/concrete/js/fullcalendar/locale-all.js"></script>
<script type="text/javascript" src="/application/files/cache/js/535db848734021d11edbdafc1763a2b480d34e89.js" data-source="/concrete/js/jquery-magnific-popup.js /concrete/js/lightbox.js"></script>
This might explain why clearing the cache sometimes works but isn't a permanent fix.
Thanks!
Do you know if this javascript caching method is a core c5 behaviour?
<script type="text/javascript" src="/concrete/js/fullcalendar/fullcalendar.js"></script>
<script type="text/javascript" src="/concrete/js/fullcalendar/locale-all.js"></script>
<script type="text/javascript" src="/application/files/cache/js/535db848734021d11edbdafc1763a2b480d34e89.js" data-source="/concrete/js/jquery-magnific-popup.js /concrete/js/lightbox.js"></script>
This might explain why clearing the cache sometimes works but isn't a permanent fix.
Thanks!
Do you know if this javascript caching method is a core c5 behaviour?
I had the same issue and clearing the cache worked for me also. Strange!!
After some time, the issue did resurface for me so I would keep an eye on the issue
To solve this I require the core/lightbox asset in my page_theme.php in the registerAssets function.
Though it's not necessary for the theme, but it helps to show up the full calendar, events and the details lightbox.
Though it's not necessary for the theme, but it helps to show up the full calendar, events and the details lightbox.
$this->requireAsset('javascript', 'core/lightbox');
Thanks for the tip! Can you provide more details on where to install that line of code?
Depends how you installed your theme:
application/themes/yourtheme/page_theme.php
or
packages/yourpackage/themes/yourtheme/page_theme.php
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...
application/themes/yourtheme/page_theme.php
or
packages/yourpackage/themes/yourtheme/page_theme.php
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...
Found it. Installed it.
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. :-)
Thanks!
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. :-)
Thanks!
I am unable to reproduce this issue.
What is the URL for the page with a Calendar block on it?