OJS 3.5.0.4: Got error 'PHP message: PHP Deprecated: Using unregistered function "date" in a template is deprecated and will be removed in a future release

Hello,

I am on OJS 3.5.0.4 and PHP 8.2. I am seeing a lot the following in Apache2 logs.

AH01071: Got error ‘PHP message: PHP Deprecated: Using unregistered function “date” in a template is deprecated and will be removed in a future release. Use Smarty::registerPlugin to explicitly register a custom modifier. in /path/to/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_private_modifier.php on line 113; PHP message: PHP Deprecated: Using unregistered function “date” in a template is deprecated and will be removed in a future release. Use Smarty::registerPlugin to explicitly register a custom modifier. in /path/to/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_private_modifier.php on line 113’

Regards,
Nason

Hi @Nason_Bimbe,

The warnings are cosmetic and can be ignored, but you can suppress them by applying this change:

Regards,
Alec Smecher
Public Knowledge Project Team