When I attempt to view statistics for a specific period, I get an error and the stats do not change.
For example, I go to stats/publishedSubmissions and the period is set to 2020-10-31 - 2020-11-30.
I change the dates to 2020-10-01 - 2020-10-31.
I get a pop-up dialog: An unexpected error has occurred. Please reload the page and try again.
In the Apache log:
[Tue Dec 01 12:32:05.471696 2020] [php7:notice] [pid 1056] [client 192.168.50.4:45488] Slim Application Error:\nType: Error\nMessage: Call to undefined method PublishedMonographDAO::getByArticleId()\nFile: /var/www/html/lib/pkp/api/v1/stats/PKPStatsHandler.inc.php\nLine: 171\nTrace: #0 [internal function]: PKPStatsHandler->getSubmissionList(Object(Slim\\Http\\Request), Object(APIResponse), Array)\n#1 /var/www/html/lib/pkp/lib/vendor/slim/slim/Slim/Handlers/Strategies/RequestResponse.php(41): call_user_func(Array, Object(Slim\\Http\\Request), Object(APIResponse), Array)\n#2 /var/www/html/lib/pkp/lib/vendor/slim/slim/Slim/Route.php(356): Slim\\Handlers\\Strategies\\RequestResponse->__invoke(Array, Object(Slim\\Http\\Request), Object(APIResponse), Array)\n#3 /var/www/html/lib/pkp/lib/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(117): Slim\\Route->__invoke(Object(Slim\\Http\\Request), Object(APIResponse))\n#4 /var/www/html/lib/pkp/lib/vendor/slim/slim/Slim/Route.php(334): Slim\\Route->callMiddlewareStack(Object(Slim\\Http\\Request), Object(APIResponse))\n#5 /var/www/html/lib/pkp/lib/vendor/slim/slim/Slim/App.php(516): Slim\\Route->run(Object(Slim\\Http\\Request), Object(APIResponse))\n#6 /var/www/html/lib/pkp/classes/security/authorization/internal/ApiAuthorizationMiddleware.inc.php(74): Slim\\App->__invoke(Object(Slim\\Http\\Request), Object(APIResponse))\n#7 [internal function]: ApiAuthorizationMiddleware->__invoke(Object(Slim\\Http\\Request), Object(APIResponse), Object(Slim\\App))\n#8 /var/www/html/lib/pkp/lib/vendor/slim/slim/Slim/DeferredCallable.php(43): call_user_func_array(Object(ApiAuthorizationMiddleware), Array)\n#9 [internal function]: Slim\\DeferredCallable->__invoke(Object(Slim\\Http\\Request), Object(APIResponse), Object(Slim\\App))\n#10 /var/www/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))\n#11 /var/www/html/lib/pkp/classes/security/authorization/internal/ApiTokenDecodingMiddleware.inc.php(82): Slim\\App->Slim\\{closure}(Object(Slim\\Http\\Request), Object(APIResponse))\n#12 [internal function]: ApiTokenDecodingMiddleware->__invoke(Object(Slim\\Http\\Request), Object(APIResponse), Object(Closure))\n#13 /var/www/html/lib/pkp/lib/vendor/slim/slim/Slim/DeferredCallable.php(43): call_user_func_array(Object(ApiTokenDecodingMiddleware), Array)\n#14 [internal function]: Slim\\DeferredCallable->__invoke(Object(Slim\\Http\\Request), Object(APIResponse), Object(Closure))\n#15 /var/www/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))\n#16 /var/www/html/lib/pkp/classes/handler/APIHandler.inc.php(66): Slim\\App->Slim\\{closure}(Object(Slim\\Http\\Request), Object(APIResponse))\n#17 [internal function]: APIHandler->{closure}(Object(Slim\\Http\\Request), Object(APIResponse), Object(Closure))\n#18 /var/www/html/lib/pkp/lib/vendor/slim/slim/Slim/DeferredCallable.php(43): call_user_func_array(Object(Closure), Array)\n#19 [internal function]: Slim\\DeferredCallable->__invoke(Object(Slim\\Http\\Request), Object(APIResponse), Object(Closure))\n#20 /var/www/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))\n#21 /var/www/html/lib/pkp/classes/handler/APIHandler.inc.php(88): Slim\\App->Slim\\{closure}(Object(Slim\\Http\\Request), Object(APIResponse))\n#22 [internal function]: APIHandler->{closure}(Object(Slim\\Http\\Request), Object(APIResponse), Object(Closure))\n#23 /var/www/html/lib/pkp/lib/vendor/slim/slim/Slim/DeferredCallable.php(43): call_user_func_array(Object(Closure), Array)\n#24 [internal function]: Slim\\DeferredCallable->__invoke(Object(Slim\\Http\\Request), Object(APIResponse), Object(Closure))\n#25 /var/www/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))\n#26 /var/www/html/lib/pkp/lib/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(117): Slim\\App->Slim\\{closure}(Object(Slim\\Http\\Request), Object(APIResponse))\n#27 /var/www/html/lib/pkp/lib/vendor/slim/slim/Slim/App.php(407): Slim\\App->callMiddlewareStack(Object(Slim\\Http\\Request), Object(APIResponse))\n#28 /var/www/html/lib/pkp/lib/vendor/slim/slim/Slim/App.php(315): Slim\\App->process(Object(Slim\\Http\\Request), Object(APIResponse))\n#29 /var/www/html/lib/pkp/classes/core/APIRouter.inc.php(109): Slim\\App->run()\n#30 /var/www/html/lib/pkp/classes/core/Dispatcher.inc.php(134): APIRouter->route(Object(Request))\n#31 /var/www/html/lib/pkp/classes/core/PKPApplication.inc.php(252): Dispatcher->dispatch(Object(Request))\n#32 /var/www/html/index.php(64): PKPApplication->execute()\n#33 {main}\nView in rendered output by enabling the "displayErrorDetails" setting.\n, referer: https://openbooks.dut.ac.za/index.php/dut/stats/publishedSubmissions
And the stats displayed are still for the original period: 2020-10-31 - 2020-11-30.
This seemed similar to the problem described at: [OMP 3.1.2] Error 500 in Monograph Statistics, so I applied that patch, but it made no difference.
OMP Version: 3.1.2
|OS platform |Linux|
|PHP version |7.2.24-0ubuntu0.18.04.7|
|Apache version |Apache/2.4.29 (Ubuntu)|
|Database driver |postgres|
|Database server version |PostgreSQL 10.15 (Ubuntu 10.15-0ubuntu0.18.04.1) on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0, 64-bit |