Implemented Uncaught ReferenceError: Joomla is not defined
- Tim Davis
-
Topic Author
- Offline
Less
More
- Posts: 54
- Thank you received: 1
3 years 9 months ago - 3 years 9 months ago #1683
by Tim Davis
Uncaught ReferenceError: Joomla is not defined was created by Tim Davis
Hi Ruud,
I am trying to get ochGlightbox to work on a site and am getting a Uncaught ReferenceError: Joomla is not defined error showing in dev tools.
The page I need to get working is:
carsoncitycoinclub.com/mintage-figures/mintage-totals
Thanks!
Tim
I am trying to get ochGlightbox to work on a site and am getting a Uncaught ReferenceError: Joomla is not defined error showing in dev tools.
The page I need to get working is:
carsoncitycoinclub.com/mintage-figures/mintage-totals
Thanks!
Tim
This message contains confidential information
Last edit: 3 years 9 months ago by Ruud van Lent.
The topic has been locked.
- Ruud van Lent
-
- Offline
Less
More
- Posts: 1698
- Thank you received: 110
3 years 9 months ago #1684
by Ruud van Lent
Replied by Ruud van Lent on topic Uncaught ReferenceError: Joomla is not defined
Hi Tim,
following the Joomla API (also for JS), my script depends on Joomla's core.js ("Core.js defines the 'Joomla' namespace and contains functions which are used across extensions")
This site doesn't load (for unknown reasons) this Joomla script.
in the OP (first post) is a downloadlink to a new / test version of ochGlightBox that will load the needed Joomla Core JS functionality.
Can you give it a try and report back if it works for this site?
thanks in advance,
Ruud.
following the Joomla API (also for JS), my script depends on Joomla's core.js ("Core.js defines the 'Joomla' namespace and contains functions which are used across extensions")
This site doesn't load (for unknown reasons) this Joomla script.
in the OP (first post) is a downloadlink to a new / test version of ochGlightBox that will load the needed Joomla Core JS functionality.
Can you give it a try and report back if it works for this site?
thanks in advance,
Ruud.
The topic has been locked.
- Tim Davis
-
Topic Author
- Offline
Less
More
- Posts: 54
- Thank you received: 1
3 years 9 months ago #1685
by Tim Davis
Replied by Tim Davis on topic Uncaught ReferenceError: Joomla is not defined
Hi Ruud,
Yes, that worked, thank you very much.
I'm not sure why the site isn't loading the script either. I'm new to working on this one and know that it was a 1.0 site that antohter company migrated (as much as that term fits) to 1.5 and then to 3.
I've been helping them get some basics fixed up for future upgrades. This fix for them is greatly appreciated!
Tim
Yes, that worked, thank you very much.
I'm not sure why the site isn't loading the script either. I'm new to working on this one and know that it was a 1.0 site that antohter company migrated (as much as that term fits) to 1.5 and then to 3.
I've been helping them get some basics fixed up for future upgrades. This fix for them is greatly appreciated!
Tim
The topic has been locked.
- Ruud van Lent
-
- Offline
Less
More
- Posts: 1698
- Thank you received: 110
3 years 9 months ago - 3 years 9 months ago #1686
by Ruud van Lent
Replied by Ruud van Lent on topic Uncaught ReferenceError: Joomla is not defined
Hi Tim,
glad it worked
It will be part of the next release, but the test release is good to go (will update automatically when new release is released).
For my customers I never upgrade sites that are to be used on production. I always start from 'scratch' as that way i am sure that there are no 'naughty' code left over from the often long history of updating.
I have created a special component for that: you just do a clean joomla install, install the component and basically hit 'import' (it's a little bit more complicated, but this is the idea). All content, required plugins / modules / extensions settings (not the code itself, that needs to be fresh installed) etc. will then be imported
This way you are guaranteed that bad code, unmaintained left-overs, mallware etc. are not on the new site.
anyway, going off-topic here
glad it worked

It will be part of the next release, but the test release is good to go (will update automatically when new release is released).
For my customers I never upgrade sites that are to be used on production. I always start from 'scratch' as that way i am sure that there are no 'naughty' code left over from the often long history of updating.
I have created a special component for that: you just do a clean joomla install, install the component and basically hit 'import' (it's a little bit more complicated, but this is the idea). All content, required plugins / modules / extensions settings (not the code itself, that needs to be fresh installed) etc. will then be imported
This way you are guaranteed that bad code, unmaintained left-overs, mallware etc. are not on the new site.
anyway, going off-topic here

Last edit: 3 years 9 months ago by Ruud van Lent.
The topic has been locked.