Errors with Plugins OJS 3.3 - Failed Ajax request

Hello,

We are on ojs 3.3-10. We recently updated php to php 8.0. When I want to setup settings of some plugins, I got this error Failed Ajax request or invalid JSON

In the error logs, it gave me this:

Declaration of WebFeedSettingsForm::fetch($request) must be compatible with Form::fetch($request, $template = null, $display = false)
Declaration of AddThisSettingsForm::fetch($request) must be compatible with Form::fetch($request, $template = null, $display = false)
Declaration of PiwikSettingsForm::fetch($request) must be compatible with Form::fetch($request, $template = null, $display = false)

As you can see, the error is not relative to one plugin in particular.

I have found this Web Feed Plugin OJS 3.3.0-10 LTS in the forum but I don’t understand how to apply the fix. Can you help me ?

Thanks.

Hi @njamar

You can either downgrade PHP to PHP 7.4, or you can upgrade OJS to 3.3.0.11 which contains a fix for the WebFeed plugin:

But the AddThis and PiWik plugins will need to be disabled as they will not work with PHP 8. The AddThis plugin is already fixed for OJS 3.4.

Best
Jason

Best
Jason

1 Like