Elegant Errors - Javascript

Elegant Errors - Javascript

by Dale Thomas -
Number of replies: 6


Here is the issue in Chrome Dev Tools. 


The issue repros in Firefox


COnsole


errors

Average of ratings: -
In reply to Dale Thomas

Re: Elegant Errors - Javascript

by Gareth J Barnard -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers

When I go to http://aflacu.com/ I notice that the Bootstrap theme is being used and that has a similar problem with 'zoom'.

Looking further, on the network tab in developer tools it states in zoom.js -> // Combo resource m/1405117627/theme_bootstrap/zoom/zoom-min.js ($CFG->dirroot/theme/bootstrap/yui/zoom/zoom.js) not found!

Therefore have you uploaded the JS files to the server?  As http://aflacu.com/theme/bootstrap/yui/zoom/zoom.js gives a 404 and hence logically would be the same sort of issue with the Essential theme.  i.e. http://aflacu.com/theme/essential/javascript/coloursswitcher.js gives a 404 too.
In reply to Gareth J Barnard

Re: Elegant Errors - Javascript

by Dale Thomas -

hi there, I feel I'm going to regret this but what javascript files?

In reply to Dale Thomas

Re: Elegant Errors - Javascript

by Gareth J Barnard -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers

The ones that come with the theme, i.e.:

/theme/bootstrap/yui/zoom/zoom.js - being /yui/zoom/zoom.js within the bootstrap folder after extraction from downloading and installing the theme.

and

/theme/essential/javascript/coloursswitcher.js - being /javascript/coloursswitcher.js within the essential folder from downloading and installing the theme.


In reply to Dale Thomas

Re: Elegant Errors - Javascript

by Danny Wahl -

The thread title says "Elegant" but the pics appear to be "Essential".

In reply to Danny Wahl

Re: Elegant Errors - Javascript

by Dale Thomas -

You are correct.  It was Essentials.  Not Elegant.  Sorry.  I had both of them installed. 


Also, I re-uploaded the JS files and that resolved the issues.  AWESOME!  thanks!


Dale