Advertisement

Google Calendar Error: JavaScript is required to show this page

General questions relating to Joomla! 5.x.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting.
Forum Post Assistant - If you are serious about wanting help, you should use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10
Post Reply
bethanyanderson
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Sat Sep 14, 2024 9:57 pm

Google Calendar Error: JavaScript is required to show this page

Post by bethanyanderson » Sun Sep 15, 2024 1:43 am

I have a Google calendar embedded into my site. I was doing article page updates one day when suddenly, my calendar started throwing this error:

"JavaScript is required to show this page. Let this site use JavaScript in your browser settings. Learn more"
Google Calendar Error.jpg
I don't recall doing any updates that day before it happened. I later tried to update my template but that did not resolve the issue. This error shows up on all devices, all browsers. It's not a browser issue but that's all I can find trying to do online searches.

Right after it started, I got several errors on my site and then got an email from my hosting company about server issues and that my site was being migrated. However, after the migration, when I opened a ticket with them, they said it's not on their end.

I really need some help on getting this solved. It's been a few weeks and I've gotten nowhere.

Thank you,
Bethany
You do not have the required permissions to view the files attached to this post.

Advertisement
User avatar
toivo
Joomla! Master
Joomla! Master
Posts: 17793
Joined: Thu Feb 15, 2007 5:48 am
Location: Sydney, Australia

Re: Google Calendar Error: JavaScript is required to show this page

Post by toivo » Sun Sep 15, 2024 3:18 am

Welcome to the Joomla forum!

What is the URL of the website?
Toivo Talikka, Global Moderator

User avatar
toivo
Joomla! Master
Joomla! Master
Posts: 17793
Joined: Thu Feb 15, 2007 5:48 am
Location: Sydney, Australia

Re: Google Calendar Error: JavaScript is required to show this page

Post by toivo » Sun Sep 15, 2024 3:38 am

Ok, I found the URL.

Click F12 to see Developer Tools pane in the browser. The Console tab displays the javascript error message that explains the issue: "Blocked script execution in '<URL>' because the document's frame is sandboxed and the 'allow-scripts' permission is not set."

Set the sandbox attribute in the iframe tag to allow javascript. Presumably (not tested):

Code: Select all

<iframe sandbox="allow-scripts">
Ref. HTML <iframe> sandbox Attribute
Toivo Talikka, Global Moderator

bethanyanderson
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Sat Sep 14, 2024 9:57 pm

Re: Google Calendar Error: JavaScript is required to show this page

Post by bethanyanderson » Sun Sep 15, 2024 11:53 am

Thank you toivo, I'll work to figure that out as I'm not aware of any sandbox stuff. When I go into that F12 console, I don't see that message, here's what I do see:
F12 Console Messages.jpg
https://elizabethtonchurch.com/index.ph ... -of-events
You do not have the required permissions to view the files attached to this post.

User avatar
toivo
Joomla! Master
Joomla! Master
Posts: 17793
Joined: Thu Feb 15, 2007 5:48 am
Location: Sydney, Australia

Re: Google Calendar Error: JavaScript is required to show this page

Post by toivo » Sun Sep 15, 2024 12:12 pm

Which browser are you using?
Toivo Talikka, Global Moderator

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44580
Joined: Sat Apr 05, 2008 9:58 pm

Re: Google Calendar Error: JavaScript is required to show this page

Post by Webdongle » Sun Sep 15, 2024 5:18 pm

bethanyanderson wrote: Sun Sep 15, 2024 11:53 am I'll work to figure that out as I'm not aware of any sandbox stuff. ...
Methinks that instead of typing

Code: Select all

<iframe>src="theurl.html"</iframe>
You type

Code: Select all

<iframe sandbox="allow-scripts">src="theurl.html" sandbox></iframe>
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

bethanyanderson
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Sat Sep 14, 2024 9:57 pm

Re: Google Calendar Error: JavaScript is required to show this page

Post by bethanyanderson » Mon Sep 16, 2024 12:26 am

I normally use Firefox.

What is Sandbox in this instance?

User avatar
toivo
Joomla! Master
Joomla! Master
Posts: 17793
Joined: Thu Feb 15, 2007 5:48 am
Location: Sydney, Australia

Re: Google Calendar Error: JavaScript is required to show this page

Post by toivo » Mon Sep 16, 2024 1:34 am

bethanyanderson wrote: Mon Sep 16, 2024 12:26 amI normally use Firefox.
Firefox does not display the javascript error but Google Chrome, Microsoft Edge and Vivaldi display it:
Blocked-Script.png

bethanyanderson wrote: Mon Sep 16, 2024 12:26 amWhat is Sandbox in this instance?
It means the security restrictions in an iframe with untrusted content like scripts and forms. In practice this setting disallows javascript. Web developers regard iframes as insecure.

If you can edit the code that defines the <iframe> tag, try to remove the attribute sandbox="" and the calendar may start working.
You do not have the required permissions to view the files attached to this post.
Toivo Talikka, Global Moderator

bethanyanderson
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Sat Sep 14, 2024 9:57 pm

Re: Google Calendar Error: JavaScript is required to show this page

Post by bethanyanderson » Mon Sep 16, 2024 2:27 am

sandbox="" won't delete, it just comes back. It shows up automatically, even when I pull in fresh code from Google.

If I try to fill any values in the sandbox "", they are just erased.

I've used Google calendars for years like this on a few sites. I am unsure why it would have just started out the blue, unless I did an update of some sort and just can't recall.

So now I understand my problem better, I am still unable to solve it. Any additional advice is greatly appreciated.

User avatar
toivo
Joomla! Master
Joomla! Master
Posts: 17793
Joined: Thu Feb 15, 2007 5:48 am
Location: Sydney, Australia

Re: Google Calendar Error: JavaScript is required to show this page

Post by toivo » Mon Sep 16, 2024 4:11 am

Did you add the calendar code using a Joomla module or just the options in the paid Cacoon template? If the code was inserted into the template directly, are there any options to finetune the behaviour and accept scripts?
Toivo Talikka, Global Moderator

Advertisement

Post Reply

Return to “General Questions/New to Joomla! 5.x”