CustomHeader plugin error when using PHP 8.1.14

Describe the issue or problem
We updated php to 8.1.14, using OJS When trying to assess the CustomHeader settings page we get a message saying “Failed Ajax request or invalid JSON returned.”.
In the php error log the following is noted:

PHP Fatal error: Declaration of CustomHeaderSettingsForm::execute($request, …$functionArgs) must be compatible with Form::execute(…$functionArgs) in /var/www/html/plugins/generic/customHeader/ on line 71

Steps I took leading up to the issue
For example:

  1. Go to Plugins Page
  2. Choose Custom Header Plugion and click “Settings” link
  3. See error

What application are you using?
OJS, Custom Header Plugin version

Can this be confirmed?



Hi @felixhelix,

There’s a resolution for this over here:

Alec Smecher
Public Knowledge Project Team