Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update from 3.0.3 to 3.0.4: Deprecated Notification during Update #16494

Open
weitblick opened this issue Nov 2, 2023 · 1 comment
Open

Update from 3.0.3 to 3.0.4: Deprecated Notification during Update #16494

weitblick opened this issue Nov 2, 2023 · 1 comment
Labels
bug The issue in the code or project, which should be addressed.

Comments

@weitblick
Copy link

Bug report

Summary

There is a deprecated notification during update (first step of setup)

Observed behavior

Deprecated: Using php-function "date" as a modifier is deprecated and will be removed in a future release. Use Smarty::registerPlugin to explicitly register a custom modifier. in /home/sites/site100026686/web/migxb/core/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_private_modifier.php on line 112

Environment

MODX 3.0.3 to 3.0.4, apache 2.0, PHP 8.2.11

@weitblick weitblick added the bug The issue in the code or project, which should be addressed. label Nov 2, 2023
@halftrainedharry
Copy link
Contributor

halftrainedharry commented Nov 3, 2023

The problem seems to be here in the footer template where {'Y'|date} is used:

<p>{$_lang.modx_footer1|replace:'[[+current_year]]':{'Y'|date}}</p>

Maybe it could be replaced with {$smarty.now|date_format:"%Y"}.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug The issue in the code or project, which should be addressed.
Projects
None yet
Development

No branches or pull requests

2 participants