EPrints Technical Mailing List Archive

See the EPrints wiki for instructions on how to join this mailing list and related information.

Message: #09145


< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First

[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