I need some help to fix some of my issues I encountered this day.
Description of issue or problem I’m having:
Failed Ajax request or invalid JSON returned occurred when I trying to use the custom header plugin,
PHP log says: PHP Fatal error: Declaration of CustomHeaderSettingsForm::execute($request, …$functionArgs) must be compatible with Form::execute(…$functionArgs)
Steps I took leading up to the issue:
Previously it works fine, but after I use the Select PHP version from my host cPanel and upgrade it into PHP 8.0.0(Previously PHP 7.4.0) the error occurred.
What I tried to resolve the issue:
I already tried to reinstall the Custom Header Plugin, but it doesn’t do anything. I also tried to revert back into PHP 7.4.0. but instead, the entire site goes HTTP error 500 with:
PHP Fatal error: Uncaught Error: Call to a member function getPrimaryLocale() on null in /home/journals/public_html/lib/pkp/classes/i18n/PKPLocale.inc.php:166
#0 /home/journals/public_html/lib/pkp/classes/i18n/PKPLocale.inc.php(290): PKPLocale::getLocale()
#1 /home/journals/public_html/lib/pkp/classes/core/Dispatcher.inc.php(116): PKPLocale::initialize(Object(Request))
#2 /home/journals/public_html/lib/pkp/classes/core/PKPApplication.inc.php(362): Dispatcher->dispatch(Object(Request))
#3 /home/journals/public_html/index.php(68): PKPApplication->execute()
Therefore I revert it back to PHP 8.0.0, and it goes normal again. But, still the Custom Header Plugin says Failed Ajax request or invalid JSON returned.
Application Version OJS 184.108.40.206
Image that show the error
Thank you for your help.