$.pkp.classes.Handler.hasHandler is not a function

After upgrade to from 2.4.8 to 3.1 I get the following JS errors?



build.js:1 Uncaught TypeError: $.pkp.classes.Handler.hasHandler is not a function
    at HTMLDivElement.<anonymous> (build.js:1)
    at Function.each (jquery.js:384)
    at jQuery.fn.init.each (jquery.js:137)
    at Object.init (build.js:1)
    at submissions:153
build.js:1 Uncaught TypeError: $.pkp.classes.Handler.hasHandler is not a function
    at HTMLDivElement.<anonymous> (build.js:1)
    at Function.each (jquery.js:384)
    at jQuery.fn.init.each (jquery.js:137)
    at Object.init (build.js:1)
    at submissions:166
build.js:1 Uncaught TypeError: $.pkp.classes.Handler.hasHandler is not a function
    at HTMLDivElement.<anonymous> (build.js:1)
    at Function.each (jquery.js:384)
    at jQuery.fn.init.each (jquery.js:137)
    at Object.init (build.js:1)
    at submissions:179
build.js:1 Uncaught TypeError: $.pkp.classes.Handler.hasHandler is not a function
    at HTMLDivElement.<anonymous> (build.js:1)
    at Function.each (jquery.js:384)
    at jQuery.fn.init.each (jquery.js:137)
    at Object.init (build.js:1)
    at submissions:192
Handler.js:38 Uncaught Error: The handler "$.pkp.controllers.SiteHandler" has already been bound to the selected element!
    at proxyConstructor.$.pkp.classes.Handler (Handler.js:38)
    at proxyConstructor.$.pkp.classes.ObjectProxy.parent (ObjectProxy.js:110)
    at proxyConstructor.$.pkp.controllers.SiteHandler [as constructor] (SiteHandler.js:35)
    at proxyConstructor.$.pkp.classes.ObjectProxy.parent (ObjectProxy.js:110)
    at new proxyConstructor (Helper.js:280)
    at Function.$.pkp.classes.Helper.objectFactory (Helper.js:206)
    at HTMLBodyElement.<anonymous> (jquery.pkp.js:38)
    at Function.each (jquery.js:384)
    at jQuery.fn.init.each (jquery.js:137)
    at jQuery.fn.init.$.fn.pkpHandler (jquery.pkp.js:32)

Any help would be appreciated.

Regards

Hi @Nardusg,

Is it possible that you’ve somehow mixed some of your OJS 2.x code with your OJS 3.x code? It’s behaving as though some of the Javascript is still old code from your 2.x version.

Regards,
Alec Smecher
Public Knowledge Project Team

Seem to be working this morning, might have been a caching issue, thanks.