[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[EP-tech] document.observe is not a function Error in EPrints3.4.4
CAUTION: This e-mail originated outside the University of Southampton.
Hi
I recently upgraded EPrints to version 3.4.4 and the statistics stopped working. On inspection, I see 2 error popping up and the errors are;
1. Uncaught ReferenceError: Class is not defined in auto-3.4.4.js:283:18
The line contains var EPJS_Menus = Class.create({...
2. Uncaught TypeError: document.observe is not a function
This error is from the line
document.observe("dom:loaded",function(){
new EPJS_Stats_Table ({ 'context': {
'range':'_ALL_',
'datatype':'downloads'
},
'options': {
'container_id': 'top-authors', 'top': 'authors', 'view': 'Table', 'limit': '10', 'title': 'Top Authors'
}
});
});
I have added ingredients/prototypejs as a dependency
What can be the issue? and what is the possible solution?
Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20230106/05d663de/attachment.html