MODX Community

Error Upgrading From 2.0.0-pl rev7212

Hello Community.

I’m trying to upgrade a site, getting these two errors when trying to run setup.

Deprecated : preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in core/model/smarty/Smarty_Compiler.class.php on line 270

Fatal error : Smarty error: [in footer.tpl line 11]: syntax error: unrecognized tag: $_lang.modx_footer1|replace:’[[+current_year]]’:{‘Y’|date (Smarty_Compiler.class.php, line 447) in core/model/smarty/Smarty.class.php on line 1092

log file shows:
core/xpdo/xpdo.class.php : 1962) Un-recoverable error 8192: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead

core/model/smarty/Smarty_Compiler.class.php : 270) Un-recoverable error 8192: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead

Can’t seem to work out how to proceed.

Hi there!

What version of PHP are you running? (It may need to be updated)

Also, since 2.0.0 is VERY old, it might be best to upgrade at each major version. E.g. 2.0 -> 2.1, then 2.1 -> 2.2 etc.

You could also try running the UpgradeMODX Extra which will do the suggested procedure to upgrade each individual version for you.