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 77.111.247.81:36185] PHP Warning: Trying to access array offset on value of type null in /var/www/html/plugins/themes/default/DefaultThemePlugin.inc.php on line 161
[Sat Sep 04 17:19:06.551453 2021] [php:error] [pid 15488] [client 77.111.247.81:36185] 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/ReviewFormElementForm.inc.php:65\nStack trace:\n#0 /var/www/html/lib/pkp/controllers/grid/settings/reviewForms/ReviewFormElementsGridHandler.inc.php(185): ReviewFormElementForm->fetch()\n#1 /var/www/html/lib/pkp/classes/core/PKPRouter.inc.php(395): ReviewFormElementsGridHandler->createReviewFormElement()\n#2 /var/www/html/lib/pkp/classes/core/PKPComponentRouter.inc.php(257): PKPRouter->_authorizeInitializeAndCallRequest()\n#3 /var/www/html/lib/pkp/classes/core/Dispatcher.inc.php(144): PKPComponentRouter->route()\n#4 /var/www/html/lib/pkp/classes/core/PKPApplication.inc.php(364): 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/ReviewFormElementForm.inc.php on line 65,

PHP version is : PHP 8.0.5
OJS : 3.3.0.4

Can you help please?

Hi @Yolla

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

Best
Jason

1 Like