OJS 3.0.2 Not working

I made a backup of database, website files and upload folders before I started to update OJS 3.0.2 installation. But now the backed up dta is not working and I am getting many JS errors when I go to admin panel. Please help.

StageParticipantGridHandler.js:18 Uncaught TypeError: Cannot read property 'stageParticipant' of undefined
    at StageParticipantGridHandler.js:18
    at StageParticipantGridHandler.js:51
(anonymous) @ StageParticipantGridHandler.js:18
(anonymous) @ StageParticipantGridHandler.js:51
StageParticipantNotifyHandler.js:19 Uncaught TypeError: Cannot read property 'stageParticipant' of undefined
    at StageParticipantNotifyHandler.js:19
    at StageParticipantNotifyHandler.js:198
(anonymous) @ StageParticipantNotifyHandler.js:19
(anonymous) @ StageParticipantNotifyHandler.js:198
AddParticipantFormHandler.js:28 Uncaught TypeError: Cannot read property 'stageParticipant' of undefined
    at AddParticipantFormHandler.js:28
    at AddParticipantFormHandler.js:70
(anonymous) @ AddParticipantFormHandler.js:28
(anonymous) @ AddParticipantFormHandler.js:70
jquery.js:3561 Slow network is detected. See https://www.chromestatus.com/feature/5636954674692096 for more details. Fallback font will be used while loading: http://fonts.gstatic.com/s/notosans/v7/o-0NIpQlx3QUlC5A4PNjXhFVZNyB.woff2
jquery.js:3561 Slow network is detected. See https://www.chromestatus.com/feature/5636954674692096 for more details. Fallback font will be used while loading: http://fonts.gstatic.com/s/notosans/v7/o-0IIpQlx3QUlC5A4PNr5TRA.woff2
jquery.js:3561 Slow network is detected. See https://www.chromestatus.com/feature/5636954674692096 for more details. Fallback font will be used while loading: http://tj.uettaxila.edu.pk/lib/pkp/fonts/fontawesome/fontawesome-webfont.woff2?v=4.3.0
submissions:1 Access to Font at 'http://tj.uettaxila.edu.pk/lib/pkp/fonts/fontawesome/fontawesome-webfont.woff2?v=4.3.0' from origin 'http://localhost:8080' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8080' is therefore not allowed access. The response had HTTP status code 404.
submissions:1 Slow network is detected. See https://www.chromestatus.com/feature/5636954674692096 for more details. Fallback font will be used while loading: http://tj.uettaxila.edu.pk/lib/pkp/fonts/fontawesome/fontawesome-webfont.woff?v=4.3.0
submissions:1 Access to Font at 'http://tj.uettaxila.edu.pk/lib/pkp/fonts/fontawesome/fontawesome-webfont.woff?v=4.3.0' from origin 'http://localhost:8080' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8080' is therefore not allowed access. The response had HTTP status code 404.
submissions:1 Slow network is detected. See https://www.chromestatus.com/feature/5636954674692096 for more details. Fallback font will be used while loading: http://tj.uettaxila.edu.pk/lib/pkp/fonts/fontawesome/fontawesome-webfont.ttf?v=4.3.0
submissions:1 Access to Font at 'http://tj.uettaxila.edu.pk/lib/pkp/fonts/fontawesome/fontawesome-webfont.ttf?v=4.3.0' from origin 'http://localhost:8080' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8080' is therefore not allowed access.
Handler.js:372 Uncaught ReferenceError: _ is not defined
    at proxyConstructor.$.pkp.classes.Handler.handleJson (Handler.js:372)
    at proxyConstructor.$.pkp.controllers.UrlInDivHandler.handleLoadedContent_ (UrlInDivHandler.js:96)
    at Object.success (Handler.js:304)
    at fire (jquery.js:3099)
    at Object.fireWith [as resolveWith] (jquery.js:3211)
    at done (jquery.js:9310)
    at XMLHttpRequest.callback (jquery.js:9720)
$.pkp.classes.Handler.handleJson @ Handler.js:372
$.pkp.controllers.UrlInDivHandler.handleLoadedContent_ @ UrlInDivHandler.js:96
(anonymous) @ Handler.js:304
fire @ jquery.js:3099
fireWith @ jquery.js:3211
done @ jquery.js:9310
callback @ jquery.js:9720
XMLHttpRequest.send (async)
send @ jquery.js:9666
ajax @ jquery.js:9211
jQuery.(anonymous function) @ jquery.js:9357
$.pkp.controllers.UrlInDivHandler.reload @ UrlInDivHandler.js:59
$.pkp.controllers.UrlInDivHandler @ UrlInDivHandler.js:31
$.pkp.classes.ObjectProxy.parent @ ObjectProxy.js:112
proxyConstructor @ Helper.js:283
$.pkp.classes.Helper.objectFactory @ Helper.js:209
(anonymous) @ jquery.pkp.js:37
each @ jquery.js:384
each @ jquery.js:137
$.fn.pkpHandler @ jquery.pkp.js:31
(anonymous) @ submissions:120
fire @ jquery.js:3099
fireWith @ jquery.js:3211
ready @ jquery.js:3423
completed @ jquery.js:3453
Handler.js:372 Uncaught ReferenceError: _ is not defined
    at proxyConstructor.$.pkp.classes.Handler.handleJson (Handler.js:372)
    at proxyConstructor.$.pkp.controllers.UrlInDivHandler.handleLoadedContent_ (UrlInDivHandler.js:96)
    at Object.success (Handler.js:304)
    at fire (jquery.js:3099)
    at Object.fireWith [as resolveWith] (jquery.js:3211)
    at done (jquery.js:9310)
    at XMLHttpRequest.callback (jquery.js:9720)
$.pkp.classes.Handler.handleJson @ Handler.js:372
$.pkp.controllers.UrlInDivHandler.handleLoadedContent_ @ UrlInDivHandler.js:96
(anonymous) @ Handler.js:304
fire @ jquery.js:3099
fireWith @ jquery.js:3211
done @ jquery.js:9310
callback @ jquery.js:9720
XMLHttpRequest.send (async)
send @ jquery.js:9666
ajax @ jquery.js:9211
jQuery.(anonymous function) @ jquery.js:9357
$.pkp.controllers.UrlInDivHandler.reload @ UrlInDivHandler.js:59
$.pkp.controllers.UrlInDivHandler @ UrlInDivHandler.js:31
$.pkp.classes.ObjectProxy.parent @ ObjectProxy.js:112
proxyConstructor @ Helper.js:283
$.pkp.classes.Helper.objectFactory @ Helper.js:209
(anonymous) @ jquery.pkp.js:37
each @ jquery.js:384
each @ jquery.js:137
$.fn.pkpHandler @ jquery.pkp.js:31
(anonymous) @ submissions:54
fire @ jquery.js:3099
fireWith @ jquery.js:3211
ready @ jquery.js:3423
completed @ jquery.js:3453
Handler.js:372 Uncaught ReferenceError: _ is not defined
    at proxyConstructor.$.pkp.classes.Handler.handleJson (Handler.js:372)
    at proxyConstructor.$.pkp.controllers.TabHandler.dataFilter (TabHandler.js:251)
    at Object.dataFilter (Handler.js:304)
    at ajaxConvert (jquery.js:8789)
    at done (jquery.js:9260)
    at XMLHttpRequest.callback (jquery.js:9720)
$.pkp.classes.Handler.handleJson @ Handler.js:372
$.pkp.controllers.TabHandler.dataFilter @ TabHandler.js:251
(anonymous) @ Handler.js:304
ajaxConvert @ jquery.js:8789
done @ jquery.js:9260
callback @ jquery.js:9720
XMLHttpRequest.send (async)
send @ jquery.js:9666
ajax @ jquery.js:9211
load @ jquery-ui.js:15665
(anonymous) @ jquery-ui.js:407
_create @ jquery-ui.js:14973
(anonymous) @ jquery-ui.js:407
_createWidget @ jquery-ui.js:575
$.(anonymous function).(anonymous function) @ jquery-ui.js:368
(anonymous) @ jquery-ui.js:522
each @ jquery.js:384
each @ jquery.js:137
$.fn.(anonymous function) @ jquery-ui.js:514
$.pkp.controllers.TabHandler @ TabHandler.js:64
$.pkp.classes.ObjectProxy.parent @ ObjectProxy.js:112
proxyConstructor @ Helper.js:283
$.pkp.classes.Helper.objectFactory @ Helper.js:209
(anonymous) @ jquery.pkp.js:37
each @ jquery.js:384
each @ jquery.js:137
$.fn.pkpHandler @ jquery.pkp.js:31
(anonymous) @ submissions:154
fire @ jquery.js:3099
fireWith @ jquery.js:3211
ready @ jquery.js:3423
completed @ jquery.js:3453

Hi @Taz,

It looks like your Javacript is a mix of several OJS versions. Have you flushed your browser cache, to ensure it’s seeing the right JS code?

Regards,
Alec Smecher
Public Knowledge Project Team

1 Like

Thanks. Fixed some errors. I can see everything except active submissions. But I get another error now

Uncaught SyntaxError: Unexpected token , at eval (<anonymous>) at jquery.js:339 at Function.globalEval (jquery.js:340) at jQuery.fn.init.domManip (jquery.js:5931) at jQuery.fn.init.append (jquery.js:5704) at jQuery.fn.init.<anonymous> (jquery.js:5830) at jQuery.access (jquery.js:4108) at jQuery.fn.init.html (jquery.js:5794) at proxyConstructor.$.pkp.controllers.UrlInDivHandler.handleLoadedContent_ (UrlInDivHandler.js:101) at Object.success (Handler.js:268)