Upgrade from smarty 2 to smarty 3 & 4

Author
Gregory
Publication
04/08/2023
04/08/2023
Update
04/13/2023
Rating: 0.0 (0 vote)
Level
Normal
Upgrade from smarty 2 to smarty 3 & 4

Upgrade from smarty 2 to smarty 3 & 4 Since XOOPS 2.5.11-RC1 smarty 3 replaces smarty 2 and this can cause several problems on your website.
This tutorial will allow you to correct the errors that prevent your website from working properly.


The XOOPS 2.5.11-RC1 release incorporates smarty version 3, prior to this release XOOPS used version 2. The last version (2.6.33) was released in October 2021. Today smarty continues to release versions for the 3.X branch and the 4.X version

For security reasons version 3.1.48 has been integrated into XOOPS 2.5.11 as of RC1, this integration implies changes in the templates as this version is less permissive than version 2.

But what's smarty?

Smarty is a template engine for PHP, facilitating the separation of presentation (HTML/CSS) from application logic.

If you're looking for the documentation for smarty: Smarty documentation

It is likely that when you upgrade to XOOPS 2.5.11-RC1 or higher, your website will show a multitude of errors and nothing will work. Don't worry, by following the different steps described, you should be able to correct all the errors. This operation may take some time, be patient!