ulsdevteam / pkp-clamav

Clam AV plugin for PKP OJS / OMP
GNU General Public License v2.0
5 stars 5 forks source link

Static call of non-static method PKPApplication::getRequest() #19

Closed kirchnerf closed 3 months ago

kirchnerf commented 9 months ago

On PHP 8.1 i get the following error when opening the settings form:

PHP Fatal error: Uncaught Error: Non-static method PKPApplication::getRequest() cannot be called statically in /srv/www/htdocs/ojs-wup/plugins/generic/clamav/ClamavSettingsForm.inc.php:51

Modifying the code by replacing $request = Application::getRequest(); with $request = Application::get()->getRequest(); seems to solve the problem.

asmecher commented 7 months ago

Cross-link: https://forum.pkp.sfu.ca/t/unable-to-configure-clamav-plugin-ojs-3-3-0-17/87107/2

kirchnerf commented 3 months ago

Fixed by #20