publons / ojs_3_plugin

OJS3 Plugin for the export of reviews to Publons
7 stars 6 forks source link

Application::getRequest() must not be called statically #18

Open ctgraham opened 3 months ago

ctgraham commented 3 months ago

Application::getRequest() must not be called statically. This will trigger a fatal error in PHP8. E.g.:

PHP Fatal error:  Uncaught Error: Non-static method PKPApplication::getRequest() cannot be called statically in plugins/generic/publons/PublonsPlugin.inc.php:166
Stack trace:
#0 lib/pkp/classes/plugins/HookRegistry.inc.php(107): PublonsPlugin->handleRequest()
#1 lib/pkp/classes/core/PKPPageRouter.inc.php(202): HookRegistry::call()
#2 lib/pkp/classes/core/Dispatcher.inc.php(144): PKPPageRouter->route()
#3 lib/pkp/classes/core/PKPApplication.inc.php(360): Dispatcher->dispatch()
#4 index.php(68): PKPApplication->execute()
#5 {main}
  thrown in plugins/generic/publons/PublonsPlugin.inc.php on line 166