PHP Fatal error: Uncaught Error: Non-static method cannot be called statically

When adding Form Items in Review Forms but every time I press create new Item it generates the following error:
Failed Ajax request or invalid JSON returned.

The error log is:
[Sat Sep 04 17:19:06.541109 2021] [php:warn] [pid 15488] [client] PHP Warning: Trying to access array offset on value of type null in /var/www/html/plugins/themes/default/ on line 161
[Sat Sep 04 17:19:06.551453 2021] [php:error] [pid 15488] [client] PHP Fatal error: Uncaught Error: Non-static method ReviewFormElement::getMultipleResponsesElementTypes() cannot be called statically in /var/www/html/lib/pkp/controllers/grid/settings/reviewForms/form/\nStack trace:\n#0 /var/www/html/lib/pkp/controllers/grid/settings/reviewForms/ ReviewFormElementForm->fetch()\n#1 /var/www/html/lib/pkp/classes/core/ ReviewFormElementsGridHandler->createReviewFormElement()\n#2 /var/www/html/lib/pkp/classes/core/ PKPRouter->_authorizeInitializeAndCallRequest()\n#3 /var/www/html/lib/pkp/classes/core/ PKPComponentRouter->route()\n#4 /var/www/html/lib/pkp/classes/core/ Dispatcher->dispatch()\n#5 /var/www/html/index.php(68): PKPApplication->execute()\n#6 {main}\n thrown in /var/www/html/lib/pkp/controllers/grid/settings/reviewForms/form/ on line 65,

PHP version is : PHP 8.0.5

Can you help please?

Hi @Yolla

OJS isn’t PHP 8 compatible yet. You should downgrade to PHP 7.4.


1 Like