2.4.8.2 to 3.1.0.1 Upgrade: Error in Submission

I successfully completed the upgrade from 2.4.8.2 to 3.1.0.1 but whenever i click the Submissions menu it an Error pops up: An unexpected error has occurred. Please reload the page and try again. i have to click the close or OK button twice to discard it.
42

I’ve been searching the forum, my case is different because my php version is 5.6

This is my php errors log

#33 /public_html/index.php(68): PKPApplication->execute(), referer: http://annalsofhealthresearch.com/index.php/ahr/submissions
#32 /public_html/lib/pkp/classes/core/PKPApplication.inc.php(243): Dispatcher->dispatch(Object(Request)), referer: http://annalsofhealthresearch.com/index.php/ahr/submissions
#31 /public_html/lib/pkp/classes/core/Dispatcher.inc.php(134): APIRouter->route(Object(Request)), referer: http://annalsofhealthresearch.com/index.php/ahr/submissions
#30 /public_html/lib/pkp/classes/core/APIRouter.inc.php(110): Slim\App->run(), referer: http://annalsofhealthresearch.com/index.php/ahr/submissions
#29 /public_html/lib/pkp/lib/vendor/slim/slim/Slim/App.php(296): Slim\App->process(Object(Slim\Http\Request), Object(APIResponse)), referer: http://annalsofhealthresearch.com/index.php/ahr/submissions
#28 /public_html/lib/pkp/lib/vendor/slim/slim/Slim/App.php(388): Slim\App->callMiddlewareStack(Object(Slim\Http\Request), Object(APIResponse)), referer: http://annalsofhealthresearch.com/index.php/ahr/submissions
#27 /public_html/lib/pkp/lib/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(117): Slim\App->Slim\{closure}(Object(Slim\Http\Request), Object(APIResponse)), referer: http://annalsofhealthresearch.com/index.php/ahr/submissions
#26 /public_html/lib/pkp/lib/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(70): call_user_func(Object(Slim\DeferredCallable), Object(Slim\Http\Request), Object(APIResponse), Object(Closure)), referer: http://annalsofhealthresearch.com/index.php/ahr/submissions
#24 /public_html/lib/pkp/lib/vendor/slim/slim/Slim/DeferredCallable.php(43): call_user_func_array(Object(Closure), Array), referer: http://annalsofhealthresearch.com/index.php/ahr/submissions
#22 /public_html/lib/pkp/classes/handler/APIHandler.inc.php(89): Slim\App->Slim\{closure}(Object(Slim\Http\Request), Object(APIResponse)), referer: http://annalsofhealthresearch.com/index.php/ahr/submissions
#21 /public_html/lib/pkp/lib/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(70): call_user_func(Object(Slim\DeferredCallable), Object(Slim\Http\Request), Object(APIResponse), Object(Closure)), referer: http://annalsofhealthresearch.com/index.php/ahr/submissions
#19 /public_html/lib/pkp/lib/vendor/slim/slim/Slim/DeferredCallable.php(43): call_user_func_array(Object(Closure), Array), referer: http://annalsofhealthresearch.com/index.php/ahr/submissions
#17 /public_html/lib/pkp/classes/handler/APIHandler.inc.php(67): Slim\App->Slim\{closure}(Object(Slim\Http\Request), Object(APIResponse)), referer: http://annalsofhealthresearch.com/index.php/ahr/submissions
#16 /public_html/lib/pkp/lib/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(70): call_user_func(Object(Slim\DeferredCallable), Object(Slim\Http\Request), Object(APIResponse), Object(Closure)), referer: http://annalsofhealthresearch.com/index.php/ahr/submissions
#14 /public_html/lib/pkp/lib/vendor/slim/slim/Slim/DeferredCallable.php(43): call_user_func_array(Object(ApiTokenDecodingMiddleware), Array), referer: http://annalsofhealthresearch.com/index.php/ahr/submissions
#12 /public_html/lib/pkp/classes/security/authorization/internal/ApiTokenDecodingMiddleware.inc.php(82): Slim\App->Slim\{closure}(Object(Slim\Http\Request), Object(APIResponse)), referer: http://annalsofhealthresearch.com/index.php/ahr/submissions
#11 /public_html/lib/pkp/lib/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(70): call_user_func(Object(Slim\DeferredCallable), Object(Slim\Http\Request), Object(APIResponse), Object(Slim\App)), referer: http://annalsofhealthresearch.com/index.php/ahr/submissions
#9 /public_html/lib/pkp/lib/vendor/slim/slim/Slim/DeferredCallable.php(43): call_user_func_array(Object(ApiAuthorizationMiddleware), Array), referer: http://annalsofhealthresearch.com/index.php/ahr/submissions
#7 /public_html/lib/pkp/classes/security/authorization/internal/ApiAuthorizationMiddleware.inc.php(74): Slim\App->__invoke(Object(Slim\Http\Request), Object(APIResponse)), referer: http://annalsofhealthresearch.com/index.php/ahr/submissions
#6 /public_html/lib/pkp/lib/vendor/slim/slim/Slim/App.php(495): Slim\Route->run(Object(Slim\Http\Request), Object(APIResponse)), referer: http://annalsofhealthresearch.com/index.php/ahr/submissions
#5 /public_html/lib/pkp/lib/vendor/slim/slim/Slim/Route.php(313): Slim\Route->callMiddlewareStack(Object(Slim\Http\Request), Object(APIResponse)), referer: http://annalsofhealthresearch.com/index.php/ahr/submissions
#4 /public_html/lib/pkp/lib/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(117): Slim\Route->__invoke(Object(Slim\Http\Request), Object(APIResponse)), referer: http://annalsofhealthresearch.com/index.php/ahr/submissions
#3 /public_html/lib/pkp/lib/vendor/slim/slim/Slim/Route.php(335): Slim\Handlers\Strategies\RequestResponse->__invoke(Array, Object(Slim\Http\Request), Object(APIResponse), Array), referer: http://annalsofhealthresearch.com/index.php/ahr/submissions
#2 /public_html/lib/pkp/lib/vendor/slim/slim/Slim/Handlers/Strategies/RequestResponse.php(41): call_user_func(Array, Object(Slim\Http\Request), Object(APIResponse), Array), referer: http://annalsofhealthresearch.com/index.php/ahr/submissions
Trace: #0 /home/aohr/public_html/lib/pkp/api/v1/_submissions/PKPBackendSubmissionsHandler.inc.php(157): Slim\Http\Response->withJson(Array), referer: http://annalsofhealthresearch.com/index.php/ahr/submissions

This is the console:
GET http://annalsofhealthresearch.com/v3/index.php/ahr/api/v1/submissions?status%5B%5D=4&status%5B%5D=3&searchPhrase=&count=20&offset=0&=1513545883180 500 (Internal Server Error)
pkp.min.js:317 Uncaught TypeError: Cannot read property ‘trigger’ of undefined
at a.pkp.controllers.modal.ModalHandler.modalOpen (pkp.min.js:317)
at Le.ajaxErrorCallback (build.js:1)
at Le.n [as ajaxErrorCallback] (build.js:1)
at Object.error (build.js:1)
at j (jquery.min.js:2)
at Object.fireWith [as rejectWith] (jquery.min.js:2)
at x (jquery.min.js:4)
at XMLHttpRequest.b (jquery.min.js:4)
pkp.min.js:317 Uncaught TypeError: Cannot read property ‘addClass’ of undefined
at pkp.min.js:317

Hi @assetJournal

In your log info this URL: http://annalsofhealthresearch.com/v3/index.php/ahr/api/v1/ is returning a 404 error code. It is related with a not found resource, please check in your config.inc.php your base_url value if its pointing correctly to your journal URL.

Regards,
Israel Cefrin
Public Knowledge Project Team

Hi @assetJournal, for me this message from php error:

[18-Dec-2017 13:27:04 Europe/Berlin] PHP Strict Standards: Declaration of SubmissionFileDAO::fromRow() should be compatible with PKPSubmissionFileDAO::fromRow($row, $fileImplementation) in /Applications/MAMP/htdocs/agro/classes/article/SubmissionFileDAO.inc.php on line 23
[18-Dec-2017 13:28:33 Europe/Berlin] PHP Strict Standards: Declaration of SubmissionFileDAO::fromRow() should be compatible with PKPSubmissionFileDAO::fromRow($row, $fileImplementation) in /Applications/MAMP/htdocs/agro/classes/article/SubmissionFileDAO.inc.php on line 23
[18-Dec-2017 13:28:44 Europe/Berlin] PHP Strict Standards: Declaration of SubmissionFileDAO::fromRow() should be compatible with PKPSubmissionFileDAO::fromRow($row, $fileImplementation) in /Applications/MAMP/htdocs/agro/classes/article/SubmissionFileDAO.inc.php on line 23
[18-Dec-2017 13:28:44 Europe/Berlin] PHP Strict Standards: Declaration of SubmissionFileDAO::fromRow() should be compatible with PKPSubmissionFileDAO::fromRow($row, $fileImplementation) in /Applications/MAMP/htdocs/agro/classes/article/SubmissionFileDAO.inc.php on line 23
[18-Dec-2017 13:28:44 Europe/Berlin] PHP Strict Standards: Declaration of SubmissionFileDAO::fromRow() should be compatible with PKPSubmissionFileDAO::fromRow($row, $fileImplementation) in /Applications/MAMP/htdocs/agro/classes/article/SubmissionFileDAO.inc.php on line 23
[18-Dec-2017 13:28:46 Europe/Berlin] Slim Application Error:
Type: RuntimeException
Code: 5
Message: Malformed UTF-8 characters, possibly incorrectly encoded
File: /Applications/MAMP/htdocs/agro/lib/pkp/lib/vendor/slim/slim/Slim/Http/Response.php
Line: 353
Trace: #0 /Applications/MAMP/htdocs/agro/lib/pkp/api/v1/_submissions/PKPBackendSubmissionsHandler.inc.php(157): Slim\Http\Response->withJson(Array)
#1 [internal function]: PKPBackendSubmissionsHandler->getSubmissions(Object(Slim\Http\Request), Object(APIResponse), Array)
#2 /Applications/MAMP/htdocs/agro/lib/pkp/lib/vendor/slim/slim/Slim/Handlers/Strategies/RequestResponse.php(41): call_user_func(Array, Object(Slim\Http\Request), Object(APIResponse), Array)
#3 /Applications/MAMP/htdocs/agro/lib/pkp/lib/vendor/slim/slim/Slim/Route.php(335): Slim\Handlers\Strategies\RequestResponse->__invoke(Array, Object(Slim\Http\Request), Object(APIResponse), Array)
#4 /Applications/MAMP/htdocs/agro/lib/pkp/lib/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(117): Slim\Route->__invoke(Object(Slim\Http\Request), Object(APIResponse))
#5 /Applications/MAMP/htdocs/agro/lib/pkp/lib/vendor/slim/slim/Slim/Route.php(313): Slim\Route->callMiddlewareStack(Object(Slim\Http\Request), Object(APIResponse))
#6 /Applications/MAMP/htdocs/agro/lib/pkp/lib/vendor/slim/slim/Slim/App.php(495): Slim\Route->run(Object(Slim\Http\Request), Object(APIResponse))
#7 /Applications/MAMP/htdocs/agro/lib/pkp/classes/security/authorization/internal/ApiAuthorizationMiddleware.inc.php(74): Slim\App->__invoke(Object(Slim\Http\Request), Object(APIResponse))
#8 [internal function]: ApiAuthorizationMiddleware->__invoke(Object(Slim\Http\Request), Object(APIResponse), Object(Slim\App))
#9 /Applications/MAMP/htdocs/agro/lib/pkp/lib/vendor/slim/slim/Slim/DeferredCallable.php(43): call_user_func_array(Object(ApiAuthorizationMiddleware), Array)
#10 [internal function]: Slim\DeferredCallable->__invoke(Object(Slim\Http\Request), Object(APIResponse), Object(Slim\App))
#11 /Applications/MAMP/htdocs/agro/lib/pkp/lib/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(70): call_user_func(Object(Slim\DeferredCallable), Object(Slim\Http\Request), Object(APIResponse), Object(Slim\App))
#12 /Applications/MAMP/htdocs/agro/lib/pkp/classes/security/authorization/internal/ApiTokenDecodingMiddleware.inc.php(82): Slim\App->Slim{closure}(Object(Slim\Http\Request), Object(APIResponse))
#13 [internal function]: ApiTokenDecodingMiddleware->__invoke(Object(Slim\Http\Request), Object(APIResponse), Object(Closure))
#14 /Applications/MAMP/htdocs/agro/lib/pkp/lib/vendor/slim/slim/Slim/DeferredCallable.php(43): call_user_func_array(Object(ApiTokenDecodingMiddleware), Array)
#15 [internal function]: Slim\DeferredCallable->__invoke(Object(Slim\Http\Request), Object(APIResponse), Object(Closure))
#16 /Applications/MAMP/htdocs/agro/lib/pkp/lib/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(70): call_user_func(Object(Slim\DeferredCallable), Object(Slim\Http\Request), Object(APIResponse), Object(Closure))
#17 /Applications/MAMP/htdocs/agro/lib/pkp/classes/handler/APIHandler.inc.php(67): Slim\App->Slim{closure}(Object(Slim\Http\Request), Object(APIResponse))
#18 [internal function]: APIHandler->{closure}(Object(Slim\Http\Request), Object(APIResponse), Object(Closure))
#19 /Applications/MAMP/htdocs/agro/lib/pkp/lib/vendor/slim/slim/Slim/DeferredCallable.php(43): call_user_func_array(Object(Closure), Array)
#20 [internal function]: Slim\DeferredCallable->__invoke(Object(Slim\Http\Request), Object(APIResponse), Object(Closure))
#21 /Applications/MAMP/htdocs/agro/lib/pkp/lib/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(70): call_user_func(Object(Slim\DeferredCallable), Object(Slim\Http\Request), Object(APIResponse), Object(Closure))
#22 /Applications/MAMP/htdocs/agro/lib/pkp/classes/handler/APIHandler.inc.php(89): Slim\App->Slim{closure}(Object(Slim\Http\Request), Object(APIResponse))
#23 [internal function]: APIHandler->{closure}(Object(Slim\Http\Request), Object(APIResponse), Object(Closure))
#24 /Applications/MAMP/htdocs/agro/lib/pkp/lib/vendor/slim/slim/Slim/DeferredCallable.php(43): call_user_func_array(Object(Closure), Array)
#25 [internal function]: Slim\DeferredCallable->__invoke(Object(Slim\Http\Request), Object(APIResponse), Object(Closure))
#26 /Applications/MAMP/htdocs/agro/lib/pkp/lib/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(70): call_user_func(Object(Slim\DeferredCallable), Object(Slim\Http\Request), Object(APIResponse), Object(Closure))
#27 /Applications/MAMP/htdocs/agro/lib/pkp/lib/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(117): Slim\App->Slim{closure}(Object(Slim\Http\Request), Object(APIResponse))
#28 /Applications/MAMP/htdocs/agro/lib/pkp/lib/vendor/slim/slim/Slim/App.php(388): Slim\App->callMiddlewareStack(Object(Slim\Http\Request), Object(APIResponse))
#29 /Applications/MAMP/htdocs/agro/lib/pkp/lib/vendor/slim/slim/Slim/App.php(296): Slim\App->process(Object(Slim\Http\Request), Object(APIResponse))
#30 /Applications/MAMP/htdocs/agro/lib/pkp/classes/core/APIRouter.inc.php(110): Slim\App->run()
#31 /Applications/MAMP/htdocs/agro/lib/pkp/classes/core/Dispatcher.inc.php(134): APIRouter->route(Object(Request))
#32 /Applications/MAMP/htdocs/agro/lib/pkp/classes/core/PKPApplication.inc.php(243): Dispatcher->dispatch(Object(Request))
#33 /Applications/MAMP/htdocs/agro/index.php(68): PKPApplication->execute()
#34 {main}
View in rendered output by enabling the “displayErrorDetails” setting.

Have you any suggestions?

Hi @Tiziano

Does your error showed up after a upgrade from 2.4.8.2 to 3.1.0.1 in submission panel?

If not, please, open a specific thread to your question. It helps to not clutter the forum.

Regards,
Israel Cefrin
Public Knowledge Project Team

Yes, it’s the same problem, sorry me for not wrote it… :wink:

Hi @Tiziano

What is your PHP version? One more thing, are you using MAMP and, likewise, a MacOS stack.
Please double check your file/folder permission (not only read/write but ownership as well).

Regards,
Israel Cefrin
Public Knowledge Project Team

Sorry for the delay. Here is the base_url setting

base_url = “http://annalsofhealthresearch.com

Just noticed I copied the wrong console error (it was for the test migration of the site) here is the right console error:

GET http://annalsofhealthresearch.com/index.php/ahr/api/v1/submissions?status=1&searchPhrase=&count=20&offset=0&=1513615373180 500 (Internal Server Error)
Uncaught TypeError: Cannot read property ‘trigger’ of undefined
at a.pkp.controllers.modal.ModalHandler.modalOpen (pkp.min.js:317)
at Le.ajaxErrorCallback (build.js:1)
at Le.n [as ajaxErrorCallback] (build.js:1)
at Object.error (build.js:1)
at j (jquery.min.js:2)
at Object.fireWith [as rejectWith] (jquery.min.js:2)
at x (jquery.min.js:4)
at XMLHttpRequest.b (jquery.min.js:4)
a.pkp.controllers.modal.ModalHandler.modalOpen @ pkp.min.js:317
ajaxErrorCallback @ build.js:1
n @ build.js:1
error @ build.js:1
j @ jquery.min.js:2
fireWith @ jquery.min.js:2
x @ jquery.min.js:4
b @ jquery.min.js:4
XMLHttpRequest.send (async)
send @ jquery.min.js:4
ajax @ jquery.min.js:4
get @ build.js:1
n @ build.js:1
(anonymous) @ build.js:1
j @ jquery.min.js:2
fireWith @ jquery.min.js:2
ready @ jquery.min.js:2
K @ jquery.min.js:2
pkp.min.js:317 Uncaught TypeError: Cannot read property ‘addClass’ of undefined
at pkp.min.js:317
(anonymous) @ pkp.min.js:317
setTimeout (async)
a.pkp.controllers.modal.ModalHandler.modalOpen @ pkp.min.js:317
ajaxErrorCallback @ build.js:1
n @ build.js:1
error @ build.js:1
j @ jquery.min.js:2
fireWith @ jquery.min.js:2
x @ jquery.min.js:4
b @ jquery.min.js:4
XMLHttpRequest.send (async)
send @ jquery.min.js:4
ajax @ jquery.min.js:4
get @ build.js:1
n @ build.js:1
(anonymous) @ build.js:1
j @ jquery.min.js:2
fireWith @ jquery.min.js:2
ready @ jquery.min.js:2
K @ jquery.min.js:2
2pkp.min.js:317 Uncaught TypeError: Cannot read property ‘focus’ of undefined
at pkp.min.js:317

Still stuck, followed the hints on [OJS 3.1.0.1] Error in Submission setting area - #12 by Tiziano

Still having the console error:
jquery.min.js:4 GET http://annalsofhealthresearch.com/index.php/ahr/api/v1/submissions?status%5B%5D=4&status%5B%5D=3&searchPhrase=&count=20&offset=0&=1513637272752 500 (Internal Server Error)

Partial PHP Error log
#5 /home/aohr/public_html/lib/pkp/lib/vendor/slim/slim/Slim/Route.php(313): Slim\Route->callMiddlewareStack(Object(Slim\Http\Request), Object(APIResponse)), referer: http://annalsofhealthresearch.com/index.php/ahr/submissions
#4 /home/aohr/public_html/lib/pkp/lib/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(117): Slim\Route->__invoke(Object(Slim\Http\Request), Object(APIResponse)), referer: http://annalsofhealthresearch.com/index.php/ahr/submissions
#3 /home/aohr/public_html/lib/pkp/lib/vendor/slim/slim/Slim/Route.php(335): Slim\Handlers\Strategies\RequestResponse->__invoke(Array, Object(Slim\Http\Request), Object(APIResponse), Array), referer: http://annalsofhealthresearch.com/index.php/ahr/submissions
#2 /home/aohr/public_html/lib/pkp/lib/vendor/slim/slim/Slim/Handlers/Strategies/RequestResponse.php(41): call_user_func(Array, Object(Slim\Http\Request), Object(APIResponse), Array), referer: http://annalsofhealthresearch.com/index.php/ahr/submissions
Trace: #0 /home/aohr/public_html/lib/pkp/api/v1/_submissions/PKPBackendSubmissionsHandler.inc.php(157): Slim\Http\Response->withJson(Array), referer: http://annalsofhealthresearch.com/index.php/ahr/submissions

Hi @assetJournal

Could you test acess http://annalsofhealthresearch.com/api/v1/submissions/ and check php error log what is reported?

It is returning a 505 and it happens when web server has some issue to handle requests.

Regards,
Israel Cefrin
Public Knowledge Project Team

Hi @assetJournal

Your webserver is a Nginx , right?

Regards,
Israel Cefrin
Public Knowledge Project Team

hi @israel.cefrin,
I have the same submission error and http://myjournal.com/api/v1/submissions returns a 404 error. The base_url in config.inc.php is correct. Any idea about how can I fix the problem ?

Hi @zaratushtra

In your php error log do you have same message? Are you using OJS 3.1.0.1?

Regards,
Israel Cefrin
Public Knowledge Project Team

hi @israel.cefrin,

I am using IJS 3.1.0.0 . You can check my error log :

21

Regards

@zaratushtra

Have you tested keep in your base_url the /index.php/journal_acron path?

Regards,
Israel Cefrin
Public Knowledge Project Team

@israel.cefrin

I have just tested my base_url to /index.php/journal_acron . It did not work.

Regards,

@zaratushtra

Have you replaced “journal_acron” with your journal path right? E.g. index.php/xyz

Regards,
Israel Cefrin
Public Knowledge Project Team

@israel.cefrin,

Yes of course, this is what I have there :

00

Hi @zaratushtra

Please try this approach from other user:

He had same issue as you.
Regards,
Israel Cefrin
Public Knowledge Project Team

Hi @israel.cefrin,

Unfortunately his solution did not work out for my case. I also changed the charset_normalization to utf-8 bu no result.

Regards,

Hi @zaratushtra

Have you cleared your cache template after change? Could you try it and check if error still remains?
And could you confirm what is your webserver (Apache, Nginx…)?

Regards,
Israel Cefrin
Public Knowledge Project Team