Custom Header Plugin - Settings - "Failed Ajax request or invalid JSON returned."

Hi guys, I have a problem and I hope to find someone who can help me.
Currently my ojs service is hosted on Windows Server 2019, with php version 8.0.25 and OJS version 3.3.0.14.
When I try to go into the Custom Header Plugin settings the server displays the following message .


I need some external functions on my webpage , but currently I can’t. Is there someone with the same problem? Did you can resolve the problem?
If its possible you could share your experience please.

Regards
Rafael

Hi @RAFAEL_AVILA,

For errors like this one it is best to check your PHP error log and report on errors found there.

-Roger
PKP Team

Hi @rcgillis
Thanks for your replay, these are the last messages in the error log archive showed

[Thu Mar 16 08:23:49.049623 2023] [php:error] [pid 9052:tid 1956] [client 148.202.125.21:55391] PHP Fatal error: Uncaught → Smarty: Invalid compiled template for ‘app:controllers/grid/gridCellContents.tpl’ ← \n thrown in C:\xampp\htdocs\ojs\lib\pkp\lib\vendor\smarty\smarty\libs\sysplugins\smarty_template_resource_base.php on line 116, referer: http://mileees.cucs.udg.mx/ojs/index.php/MILEEES/management/settings/website
[Thu Mar 16 08:23:49.319533 2023] [php:error] [pid 9052:tid 1896] [client 148.202.125.21:55396] PHP Fatal error: Uncaught → Smarty: unable to write file C:\xampp\htdocs\ojs\cache\t_compile\61224e991c6e94cb99984972ccdcbae9d0370b48^c0fab54edb4f352fd370b8a0421de7d73183acec_0.app.linkActionlinkActionButto.php ← \n thrown in C:\xampp\htdocs\ojs\lib\pkp\lib\vendor\smarty\smarty\libs\sysplugins\smarty_internal_runtime_writefile.php on line 90, referer: http://mileees.cucs.udg.mx/ojs/index.php/MILEEES/management/settings/website
[Thu Mar 16 08:23:49.463485 2023] [php:error] [pid 9052:tid 1920] [client 148.202.125.21:55398] PHP Fatal error: Uncaught → Smarty: Invalid compiled template for ‘form/button.tpl’ ← \n thrown in C:\xampp\htdocs\ojs\lib\pkp\lib\vendor\smarty\smarty\libs\sysplugins\smarty_template_resource_base.php on line 116, referer: http://mileees.cucs.udg.mx/ojs/index.php/MILEEES/management/settings/website
[Thu Mar 16 08:24:41.371440 2023] [php:error] [pid 9052:tid 1940] [client 148.202.125.21:55406] PHP Fatal error: Declaration of CustomHeaderSettingsForm::execute($request, …$functionArgs) must be compatible with Form::execute(…$functionArgs) in C:\xampp\htdocs\ojs\plugins\generic\customHeader\CustomHeaderSettingsForm.inc.php on line 71, referer: http://mileees.cucs.udg.mx/ojs/index.php/MILEEES/management/settings/website

Do you know how to solve them?

Hi @RAFAEL_AVILA,

I don’t know how to resolve these. But you can try searching for some of these errors here on the forum to see if you find others who have encountered them to see if that can provide some clue. I will also ask some of our developers/systems staff to have a look and provide advice when they are available/if they are able to.

-Roger
PKP Team

Thanks mate, I found the solution
Fix incompatible function declaration