PHP NOTICE: CustomHeaderPlugin failed to handle the hook TemplateManager in OJS 3.5.0-3

Hello,

I have just upgraded from OJS 3.4.0-9 to 3.5.0-3. I am seeing the following message in the log, should I be worried?

[Wed Dec 31 00:25:33.996539 2025] [php:notice] [pid 335212:tid 335212] [client X.X.X.X:54139] Plugin APP\plugins\generic\customHeader\CustomHeaderPlugin failed to handle the hook TemplateManager::display\nTypeError: PKP\template\PKPTemplateManager::addHeader(): Argument #2 ($header) must be of type string, null given, called in plugins/generic/customHeader/CustomHeaderPlugin.php on line 129 and defined in lib/pkp/classes/template/PKPTemplateManager.php:627\nStack trace:\n#0 plugins/generic/customHeader/CustomHeaderPlugin.php(129): PKP\template\PKPTemplateManager->addHeader()\n#1 [internal function]: APP\plugins\generic\customHeader\CustomHeaderPlugin->displayTemplateHook()\n#2 /lib/pkp/classes/plugins/Hook.php(164): call_user_func_array()\n#3 lib/pkp/classes/plugins/Hook.php(132): PKP\plugins\Hook::run()\n#4 pkp/classes/template/PKPTemplateManager.php(1487): PKP\plugins\Hook::call()\n#5 lib/pkp/pages/dashboard/PKPDashboardHandler.php(288): PKP\template\PKPTemplateManager->display()\n#6

Regards,
Nason

Hi @Nason_Bimbe,

The warning is cosmetic, nothing to worry about. You can resolve it by saving the settings form for the Custom Header Plugin for each of your journals. (If you’re managing many journals, look for journal IDs that do not have an entry for setting_name='backendContent' in the plugin_settings table.)

Regards,
Alec Smecher
Public Knowledge Project Team

Hi @asmecher

Thank you so much and I have resolved it.

Nason

This topic was automatically closed after 13 days. New replies are no longer allowed.