OJS 3.2.0-3 Upgrade - Slim Application Error

Hoping someone has a solution to an upgrade problem.

Prior to upgrading OJS, we upgraded PHP to 7.4 on our CentOS 7 server. After upgrading OJS from 2.4.8 to 3.2.0-3 using the tar file, we get an error message after logging in as a Journal Manager:

“An unexpected error has occurred. Please reload the page and try again.”

The URL showing in the browser location field is:

https://journal.ourschool.edu/index.php/journal/submissions

If we click OK in the error message window, the error message goes away and we have access to the Submissions screen.

A “Loading” message appears at the top of the screen with a circular spinning graphic that continues until we browse away. A list of links appears on the left side of the page: Submissions, Issues, Settings, Users & Roles, Tools, and Statistics. None of the links works, except the Submissions link reloads the page.

The message in the php error log says:

[Fri Jun 19 09:48:57.836231 2020] [php7:notice] [pid 17991] [client 172.31.42.123:55338] Slim Application Error:\nType: RuntimeException\nCode: 5\nMessage: Malformed UTF-8 characters, possibly incorrectly encoded\nFile: /var/www/html/journal/lib/pkp/lib/vendor/slim/slim/Slim/Http/Response.php\nLine: 356\nTrace: #0 /var/www/html/journal/lib/pkp/api/v1/_submissions/PKPBackendSubmissionsHandler.inc.php(166): Slim\Http\Response->withJson()\n#1 [internal function]: PKPBackendSubmissionsHandler->getMany()\n#2 /var/www/html/journal/lib/pkp/lib/vendor/slim/slim/Slim/Handlers/Strategies/RequestResponse.php(40): call_user_func()\n#3 /var/www/html/journal/lib/pkp/lib/vendor/slim/slim/Slim/Route.php(281): Slim\Handlers\Strategies\RequestResponse->__invoke()\n#4 /var/www/html/journal/lib/pkp/lib/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(117): Slim\Route->__invoke()\n#5 /var/www/html/journal/lib/pkp/lib/vendor/slim/slim/Slim/Route.php(268): Slim\Route->callMiddlewareStack()\n#6 /var/www/html/journal/lib/pkp/lib/vendor/slim/slim/Slim/App.php(503): Slim\Route->run()\n#7 /var/www/html/journal/lib/pkp/classes/security/authorization/internal/ApiAuthorizationMiddleware.inc.php(76): Slim\App->__invoke()\n#8 [internal function]: ApiAuthorizationMiddleware->__invoke()\n#9 /var/www/html/journal/lib/pkp/lib/vendor/slim/slim/Slim/DeferredCallable.php(57): call_user_func_array()\n#10 [internal function]: Slim\DeferredCallable->__invoke()\n#11 /var/www/html/journal/lib/pkp/lib/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(70): call_user_func()\n#12 /var/www/html/journal/lib/pkp/classes/security/authorization/internal/ApiCsrfMiddleware.inc.php(46): Slim\App->Slim\{closure}()\n#13 [internal function]: ApiCsrfMiddleware->__invoke()\n#14 /var/www/html/journal/lib/pkp/lib/vendor/slim/slim/Slim/DeferredCallable.php(57): call_user_func_array()\n#15 [internal function]: Slim\DeferredCallable->__invoke()\n#16 /var/www/html/journal/lib/pkp/lib/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(70): call_user_func()\n#17 /var/www/html/journal/lib/pkp/classes/security/authorization/internal/ApiTokenDecodingMiddleware.inc.php(82): Slim\App->Slim\{closure}()\n#18 [internal function]: ApiTokenDecodingMiddleware->__invoke()\n#19 /var/www/html/journal/lib/pkp/lib/vendor/slim/slim/Slim/DeferredCallable.php(57): call_user_func_array()\n#20 [internal function]: Slim\DeferredCallable->__invoke()\n#21 /var/www/html/journal/lib/pkp/lib/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(70): call_user_func()\n#22 /var/www/html/journal/lib/pkp/classes/handler/APIHandler.inc.php(68): Slim\App->Slim\{closure}()\n#23 [internal function]: APIHandler->{closure}()\n#24 /var/www/html/journal/lib/pkp/lib/vendor/slim/slim/Slim/DeferredCallable.php(57): call_user_func_array()\n#25 [internal function]: Slim\DeferredCallable->__invoke()\n#26 /var/www/html/journal/lib/pkp/lib/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(70): call_user_func()\n#27 /var/www/html/journal/lib/pkp/classes/handler/APIHandler.inc.php(127): Slim\App->Slim\{closure}()\n#28 [internal function]: APIHandler->{closure}()\n#29 /var/www/html/journal/lib/pkp/lib/vendor/slim/slim/Slim/DeferredCallable.php(57): call_user_func_array()\n#30 [internal function]: Slim\DeferredCallable->__invoke()\n#31 /var/www/html/journal/lib/pkp/lib/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(70): call_user_func()\n#32 /var/www/html/journal/lib/pkp/classes/handler/APIHandler.inc.php(132): Slim\App->Slim\{closure}()\n#33 [internal function]: APIHandler->{closure}()\n#34 /var/www/html/journal/lib/pkp/lib/vendor/slim/slim/Slim/DeferredCallable.php(57): call_user_func_array()\n#35 [internal function]: Slim\DeferredCallable->__invoke()\n#36 /var/www/html/journal/lib/pkp/lib/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(70): call_user_func()\n#37 /var/www/html/journal/lib/pkp/lib/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(117): Slim\App->Slim\{closure}()\n#38 /var/www/html/journal/lib/pkp/lib/vendor/slim/slim/Slim/App.php(392): Slim\App->callMiddlewareStack()\n#39 /var/www/html/journal/lib/pkp/classes/handler/APIHandler.inc.php(124): Slim\App->process()\n#40 [internal function]: APIHandler->{closure}()\n#41 /var/www/html/journal/lib/pkp/lib/vendor/slim/slim/Slim/DeferredCallable.php(57): call_user_func_array()\n#42 [internal function]: Slim\DeferredCallable->__invoke()\n#43 /var/www/html/journal/lib/pkp/lib/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(70): call_user_func()\n#44 /var/www/html/journal/lib/pkp/classes/handler/APIHandler.inc.php(132): Slim\App->Slim\{closure}()\n#45 [internal function]: APIHandler->{closure}()\n#46 /var/www/html/journal/lib/pkp/lib/vendor/slim/slim/Slim/DeferredCallable.php(57): call_user_func_array()\n#47 [internal function]: Slim\DeferredCallable->__invoke()\n#48 /var/www/html/journal/lib/pkp/lib/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(70): call_user_func()\n#49 /var/www/html/journal/lib/pkp/lib/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(117): Slim\App->Slim\{closure}()\n#50 /var/www/html/journal/lib/pkp/lib/vendor/slim/slim/Slim/App.php(392): Slim\App->callMiddlewareStack()\n#51 /var/www/html/journal/lib/pkp/lib/vendor/slim/slim/Slim/App.php(297): Slim\App->process()\n#52 /var/www/html/journal/lib/pkp/classes/core/APIRouter.inc.php(115): Slim\App->run()\n#53 /var/www/html/journal/lib/pkp/classes/core/Dispatcher.inc.php(143): APIRouter->route()\n#54 /var/www/html/journal/lib/pkp/classes/core/PKPApplication.inc.php(278): Dispatcher->dispatch()\n#55 /var/www/html/journal/index.php(68): PKPApplication->execute()\n#56 {main}\nView in rendered output by enabling the “displayErrorDetails” setting.\n, referer: https://journal.ourschool.edu/index.php/JOURNAL/submissions

This turned out to be a problem with the database. We were trying to convert it to UTF-8 encoding, but it was already in UTF-8.

1 Like

I take it back. Even when we verify that the database has nothing but UTF-8 encoding, we still get this error.

Found the answer here: [OJS 3.1.0.1] Error in Submission setting area - #18 by Tiziano

1 Like