Submissions (My queue, Unassigned, all active, Archives) Javascript Problem

Hello everyone, I have a problem in the archives section of a specific magazine. It does not load the “Unassigned” or “all active” section. This portal has several magazines but only one error is presented. At the beginning there is a modal that indicates an unknown error, attached screenshots, please help me with this. Thank you

Captura%20de%20pantalla%20de%202019-11-07%2011-42-47

@bozana @asmecher can you help me please?

Hi @d_marquez,

Check your PHP error log for details.

Regards,
Alec Smecher
Public Knowledge Project Team

Hi @asmecher

This is the error on php log…

[Fri Nov 22 09:08:53.916177 2019] [php7:notice] [pid 27810] [client 181.60.62.141:59604] Slim Application Error:\nType: Error\nMessage: Call to a member function getContextId() on null\nFile: /mnt/ojs/unbosque/bosque3112/lib/pkp/classes/submission/reviewAssignment/ReviewAssignment.inc.php\nLine: 526\nTrace: #0 /mnt/ojs/unbosque/bosque3112/lib/pkp/classes/submission/reviewAssignment/ReviewAssignment.inc.php(502): ReviewAssignment->isRead()\n#1 /mnt/ojs/unbosque/bosque3112/lib/pkp/classes/submission/reviewRound/ReviewRound.inc.php(205): ReviewAssignment->getStatus()\n#2 /mnt/ojs/unbosque/bosque3112/lib/pkp/classes/services/PKPSubmissionService.inc.php(780): ReviewRound->determineStatus()\n#3 /mnt/ojs/unbosque/bosque3112/lib/pkp/classes/services/PKPSubmissionService.inc.php(512): PKP\Services\PKPSubmissionService->getPropertyStages(Object(Article))\n#4 /mnt/ojs/unbosque/bosque3112/lib/pkp/classes/services/PKPSubmissionService.inc.php(607): PKP\Services\PKPSubmissionService->getProperties(Object(Article), Array, Array)\n#5 /mnt/ojs/unbosque/bosque3112/lib/pkp/api/v1/_submissions/PKPBackendSubmissionsHandler.inc.php(150): PKP\Services\PKPSubmissionService->getBackendListProperties(Object(Article), Array)\n#6 [internal function]: PKPBackendSubmissionsHandler->getSubmissions(Object(Slim\Http\Request), Object(APIResponse), Array)\n#7 /mnt/ojs/unbosque/bosque3112/lib/pkp/lib/vendor/slim/slim/Slim/Handlers/Strategies/RequestResponse.php(41): call_user_func(Array, Object(Slim\Http\Request), Object(APIResponse), Array)\n#8 /mnt/ojs/unbosque/bosque3112/lib/pkp/lib/vendor/slim/slim/Slim/Route.php(335): Slim\Handlers\Strategies\RequestResponse->__invoke(Array, Object(Slim\Http\Request), Object(APIResponse), Array)\n#9 /mnt/ojs/unbosque/bosque3112/lib/pkp/lib/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(117): Slim\Route->__invoke(Object(Slim\Http\Request), Object(APIResponse))\n#10 /mnt/ojs/unbosque/bosque3112/lib/pkp/lib/vendor/slim/slim/Slim/Route.php(313): Slim\Route->callMiddlewareStack(Object(Slim\Http\Request), Object(APIResponse))\n#11 /mnt/ojs/unbosque/bosque3112/lib/pkp/lib/vendor/slim/slim/Slim/App.php(513): Slim\Route->run(Object(Slim\Http\Request), Object(APIResponse))\n#12 /mnt/ojs/unbosque/bosque3112/lib/pkp/classes/security/authorization/internal/ApiAuthorizationMiddleware.inc.php(74): Slim\App->__invoke(Object(Slim\Http\Request), Object(APIResponse))\n#13 [internal function]: ApiAuthorizationMiddleware->__invoke(Object(Slim\Http\Request), Object(APIResponse), Object(Slim\App))\n#14 /mnt/ojs/unbosque/bosque3112/lib/pkp/lib/vendor/slim/slim/Slim/DeferredCallable.php(43): call_user_func_array(Object(ApiAuthorizationMiddleware), Array)\n#15 [internal function]: Slim\DeferredCallable->__invoke(Object(Slim\Http\Request), Object(APIResponse), Object(Slim\App))\n#16 /mnt/ojs/unbosque/bosque3112/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))\n#17 /mnt/ojs/unbosque/bosque3112/lib/pkp/classes/security/authorization/internal/ApiTokenDecodingMiddleware.inc.php(82): Slim\App->Slim\{closure}(Object(Slim\Http\Request), Object(APIResponse))\n#18 [internal function]: ApiTokenDecodingMiddleware->__invoke(Object(Slim\Http\Request), Object(APIResponse), Object(Closure))\n#19 /mnt/ojs/unbosque/bosque3112/lib/pkp/lib/vendor/slim/slim/Slim/DeferredCallable.php(43): call_user_func_array(Object(ApiTokenDecodingMiddleware), Array)\n#20 [internal function]: Slim\DeferredCallable->__invoke(Object(Slim\Http\Request), Object(APIResponse), Object(Closure))\n#21 /mnt/ojs/unbosque/bosque3112/lib/pkp/lib/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(70): call_user_func(Object(Slim\DeferredCallable), Object(Slim\Http\Request), Object(APIResponse), Object(Closure))\n#22 /mnt/ojs/unbosque/bosque3112/lib/pkp/classes/handler/APIHandler.inc.php(67): Slim\App->Slim\{closure}(Object(Slim\Http\Request), Object(APIResponse))\n#23 [internal function]: APIHandler->{closure}(Object(Slim\Http\Request), Object(APIResponse), Object(Closure))\n#24 /mnt/ojs/unbosque/bosque3112/lib/pkp/lib/vendor/slim/slim/Slim/DeferredCallable.php(43): call_user_func_array(Object(Closure), Array)\n#25 [internal function]: Slim\DeferredCallable->__invoke(Object(Slim\Http\Request), Object(APIResponse), Object(Closure))\n#26 /mnt/ojs/unbosque/bosque3112/lib/pkp/lib/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(70): call_user_func(Object(Slim\DeferredCallable), Object(Slim\Http\Request), Object(APIResponse), Object(Closure))\n#27 /mnt/ojs/unbosque/bosque3112/lib/pkp/classes/handler/APIHandler.inc.php(89): Slim\App->Slim\{closure}(Object(Slim\Http\Request), Object(APIResponse))\n#28 [internal function]: APIHandler->{closure}(Object(Slim\Http\Request), Object(APIResponse), Object(Closure))\n#29 /mnt/ojs/unbosque/bosque3112/lib/pkp/lib/vendor/slim/slim/Slim/DeferredCallable.php(43): call_user_func_array(Object(Closure), Array)\n#30 [internal function]: Slim\DeferredCallable->__invoke(Object(Slim\Http\Request), Object(APIResponse), Object(Closure))\n#31 /mnt/ojs/unbosque/bosque3112/lib/pkp/lib/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(70): call_user_func(Object(Slim\DeferredCallable), Object(Slim\Http\Request), Object(APIResponse), Object(Closure))\n#32 /mnt/ojs/unbosque/bosque3112/lib/pkp/lib/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(117): Slim\App->Slim\{closure}(Object(Slim\Http\Request), Object(APIResponse))\n#33 /mnt/ojs/unbosque/bosque3112/lib/pkp/lib/vendor/slim/slim/Slim/App.php(406): Slim\App->callMiddlewareStack(Object(Slim\Http\Request), Object(APIResponse))\n#34 /mnt/ojs/unbosque/bosque3112/lib/pkp/lib/vendor/slim/slim/Slim/App.php(314): Slim\App->process(Object(Slim\Http\Request), Object(APIResponse))\n#35 /mnt/ojs/unbosque/bosque3112/lib/pkp/classes/core/APIRouter.inc.php(110): Slim\App->run()\n#36 /mnt/ojs/unbosque/bosque3112/lib/pkp/classes/core/Dispatcher.inc.php(134): APIRouter->route(Object(Request))\n#37 /mnt/ojs/unbosque/bosque3112/lib/pkp/classes/core/PKPApplication.inc.php(247): Dispatcher->dispatch(Object(Request))\n#38 /mnt/ojs/unbosque/bosque3112/index.php(68): PKPApplication->execute()\n#39 {main}\nView in rendered output by enabling the “displayErrorDetails” setting.\n, referer: https://revistas.unbosque.edu.co/index.php/HEB/submissions

Hi @d_marquez,

I think you might be encountering the same data error that’s described here:

Could you try the SQL query listed there?

Regards,
Alec Smecher
Public Knowledge Project Team

Hi @asmecher

The proposed solution is valid for moments prior to an update from ojs 2 to ojs 3, in this case it has been working for a long time in ojs 3 and the problem appeared recently (we don’t know why).

Since the solution did not work, I decided to go to the file referenced in the log (./lib/pkp/classes/submission/reviewAssignment/ReviewAssignment.inc.php\nLine: 526) and add a condition.

if ($ article! = null), this way it was solved (provisionally). We hope that another version of OJs will be released to perform the migration.