Hello,
I’m trying to upgrade Default Theme 1.6.0 to 1.6.2 but I’m getting the following error in the JS console:
Uncaught ReferenceError: Omeka is not defined
Uncaught ReferenceError: Omeka is not defined
at HTMLDocument. (default.js?v=1.6.2:30:28)
I looked it and it seems in default.js line 30 , 31 use Omeka object:
var expandString = Omeka.jsTranslate('Expand');
var collapseString = Omeka.jsTranslate('Collapse');
Found that Omeka object was removed Remove unused object. When I’m adding var Omeka = {}; back, it fixes the error.
What version of Omeka Classic are you using? It should be 3.0 or 3.0.1 for use with this theme version, I think?
The change you mention about removing the “Omeka” object goes along with a core change that should be causing it to be loaded, just from another place.
It might be worthwhile to clear your browser cache just to make sure the latest versions of things are all being loaded.
Sorry, I misread that you were using Classic rather than S.
I think this is just a problem of the Default theme’s INI information being incorrect: it really requires Omeka S 3.1.0 or greater, not 3.0.0. So your version 3.0.2 is too old for it.
If you want to stay with your current version of Omeka S for now, going back to the 1.6.0 version of the Default theme should be fine and will resolve the problem.