I recently upgraded to OJS 3.1.1.
I am getting following errors on JS console when I try to access submissions page on admin panel .
jquery.js:9666 GET http://localhost:8080/tjapril1/index.php/technical-journal/api/v1/_submissions?status=1&assignedTo=-1&searchPhrase=&count=20&offset=0&_=1523026587408 500 (Internal Server Error)
send @ jquery.js:9666
ajax @ jquery.js:9211
get @ build.js:1
(anonymous) @ build.js:1
fire @ jquery.js:3099
fireWith @ jquery.js:3211
ready @ jquery.js:3423
completed @ jquery.js:3453
ModalHandler.js:214 Uncaught TypeError: Cannot read property 'trigger' of undefined
at proxyConstructor.$.pkp.controllers.modal.ModalHandler.modalOpen (ModalHandler.js:214)
at $e.ajaxErrorCallback (build.js:6)
at Object.error (build.js:1)
at fire (jquery.js:3099)
at Object.fireWith [as rejectWith] (jquery.js:3211)
at done (jquery.js:9312)
at XMLHttpRequest.callback (jquery.js:9720)
$.pkp.controllers.modal.ModalHandler.modalOpen @ ModalHandler.js:214
ajaxErrorCallback @ build.js:6
error @ build.js:1
fire @ jquery.js:3099
fireWith @ jquery.js:3211
done @ jquery.js:9312
callback @ jquery.js:9720
XMLHttpRequest.send (async)
send @ jquery.js:9666
ajax @ jquery.js:9211
get @ build.js:1
(anonymous) @ build.js:1
fire @ jquery.js:3099
fireWith @ jquery.js:3211
ready @ jquery.js:3423
completed @ jquery.js:3453
ModalHandler.js:204 Uncaught TypeError: Cannot read property 'addClass' of undefined
at ModalHandler.js:204
(anonymous) @ ModalHandler.js:204
setTimeout (async)
$.pkp.controllers.modal.ModalHandler.modalOpen @ ModalHandler.js:203
ajaxErrorCallback @ build.js:6
error @ build.js:1
fire @ jquery.js:3099
fireWith @ jquery.js:3211
done @ jquery.js:9312
callback @ jquery.js:9720
XMLHttpRequest.send (async)
send @ jquery.js:9666
ajax @ jquery.js:9211
get @ build.js:1
(anonymous) @ build.js:1
fire @ jquery.js:3099
fireWith @ jquery.js:3211
ready @ jquery.js:3423
completed @ jquery.js:3453
ModalHandler.js:210 Uncaught TypeError: Cannot read property 'focus' of undefined
at ModalHandler.js:210
(anonymous) @ ModalHandler.js:210
setTimeout (async)
$.pkp.controllers.modal.ModalHandler.modalOpen @ ModalHandler.js:209
ajaxErrorCallback @ build.js:6
error @ build.js:1
fire @ jquery.js:3099
fireWith @ jquery.js:3211
done @ jquery.js:9312
callback @ jquery.js:9720
XMLHttpRequest.send (async)
send @ jquery.js:9666
ajax @ jquery.js:9211
get @ build.js:1
(anonymous) @ build.js:1
fire @ jquery.js:3099
fireWith @ jquery.js:3211
ready @ jquery.js:3423
completed @ jquery.js:3453
jquery.js:9666 GET http://localhost:8080/tjapril1/index.php/technical-journal/api/v1/_submissions?status=1&searchPhrase=&count=20&offset=0&_=1523026587409 500 (Internal Server Error)
send @ jquery.js:9666
ajax @ jquery.js:9211
get @ build.js:1
(anonymous) @ build.js:1
fire @ jquery.js:3099
fireWith @ jquery.js:3211
ready @ jquery.js:3423
completed @ jquery.js:3453
ModalHandler.js:214 Uncaught TypeError: Cannot read property 'trigger' of undefined
at proxyConstructor.$.pkp.controllers.modal.ModalHandler.modalOpen (ModalHandler.js:214)
at $e.ajaxErrorCallback (build.js:6)
at Object.error (build.js:1)
at fire (jquery.js:3099)
at Object.fireWith [as rejectWith] (jquery.js:3211)
at done (jquery.js:9312)
at XMLHttpRequest.callback (jquery.js:9720)
$.pkp.controllers.modal.ModalHandler.modalOpen @ ModalHandler.js:214
ajaxErrorCallback @ build.js:6
error @ build.js:1
fire @ jquery.js:3099
fireWith @ jquery.js:3211
done @ jquery.js:9312
callback @ jquery.js:9720
XMLHttpRequest.send (async)
send @ jquery.js:9666
ajax @ jquery.js:9211
get @ build.js:1
(anonymous) @ build.js:1
fire @ jquery.js:3099
fireWith @ jquery.js:3211
ready @ jquery.js:3423
completed @ jquery.js:3453
ModalHandler.js:204 Uncaught TypeError: Cannot read property 'addClass' of undefined
at ModalHandler.js:204
(anonymous) @ ModalHandler.js:204
setTimeout (async)
$.pkp.controllers.modal.ModalHandler.modalOpen @ ModalHandler.js:203
ajaxErrorCallback @ build.js:6
error @ build.js:1
fire @ jquery.js:3099
fireWith @ jquery.js:3211
done @ jquery.js:9312
callback @ jquery.js:9720
XMLHttpRequest.send (async)
send @ jquery.js:9666
ajax @ jquery.js:9211
get @ build.js:1
(anonymous) @ build.js:1
fire @ jquery.js:3099
fireWith @ jquery.js:3211
ready @ jquery.js:3423
completed @ jquery.js:3453
jquery.js:9666 GET http://localhost:8080/tjapril1/index.php/technical-journal/api/v1/_submissions?status%5B%5D=4&status%5B%5D=3&searchPhrase=&count=20&offset=0&_=1523026587410 500 (Internal Server Error)
send @ jquery.js:9666
ajax @ jquery.js:9211
get @ build.js:1
(anonymous) @ build.js:1
fire @ jquery.js:3099
fireWith @ jquery.js:3211
ready @ jquery.js:3423
completed @ jquery.js:3453
ModalHandler.js:214 Uncaught TypeError: Cannot read property 'trigger' of undefined
at proxyConstructor.$.pkp.controllers.modal.ModalHandler.modalOpen (ModalHandler.js:214)
at $e.ajaxErrorCallback (build.js:6)
at Object.error (build.js:1)
at fire (jquery.js:3099)
at Object.fireWith [as rejectWith] (jquery.js:3211)
at done (jquery.js:9312)
at XMLHttpRequest.callback (jquery.js:9720)
$.pkp.controllers.modal.ModalHandler.modalOpen @ ModalHandler.js:214
ajaxErrorCallback @ build.js:6
error @ build.js:1
fire @ jquery.js:3099
fireWith @ jquery.js:3211
done @ jquery.js:9312
callback @ jquery.js:9720
XMLHttpRequest.send (async)
send @ jquery.js:9666
ajax @ jquery.js:9211
get @ build.js:1
(anonymous) @ build.js:1
fire @ jquery.js:3099
fireWith @ jquery.js:3211
ready @ jquery.js:3423
completed @ jquery.js:3453
ModalHandler.js:204 Uncaught TypeError: Cannot read property 'addClass' of undefined
at ModalHandler.js:204
(anonymous) @ ModalHandler.js:204
setTimeout (async)
$.pkp.controllers.modal.ModalHandler.modalOpen @ ModalHandler.js:203
ajaxErrorCallback @ build.js:6
error @ build.js:1
fire @ jquery.js:3099
fireWith @ jquery.js:3211
done @ jquery.js:9312
callback @ jquery.js:9720
XMLHttpRequest.send (async)
send @ jquery.js:9666
ajax @ jquery.js:9211
get @ build.js:1
(anonymous) @ build.js:1
fire @ jquery.js:3099
fireWith @ jquery.js:3211
ready @ jquery.js:3423
completed @ jquery.js:3453
2ModalHandler.js:210 Uncaught TypeError: Cannot read property 'focus' of undefined
1. When I try to access the URL that returns 500 error I get
Slim Application Error
A website error has occurred. Sorry for the temporary inconvenience.
2. however when I remove index.php/journal name/ from path I get
Fatal Error: [06-Apr-2018 15:02:57 UTC] PHP Fatal error: Uncaught Error: Call to undefined function import() in C:\wamp64\www\tjapril1\api\v1\_submissions\index.php:19
How can I solve these?
My base URL is
base_url = “http://localhost:8080/tjapril1/” I also tried base_url = “http://localhost:8080/tjapril1/index.php/technical-journal/”
and restful_urls = Off