Health Check Error: Smarty Unsupported Syntax
Overview
The Health Check wizard must be run when upgrading in order to evaluate whether your instance is suitable for upgrade. The Health Check wizard detects a variety of issues that may affect your ability to upgrade. This article will cover how to resolve a "Smarty Unsupported Syntax" error reported by the health check.
Symptoms
This error generates the warning, "Smarty Unsupported Syntax", in health check.
Resolution
In Sugar 11.2 (Q4 2021), Sugar upgraded from Smarty library v2.6.11 to v3.1.35. Significant changes exist between Smarty 2.x to 3.x, and the Sugar upgrader was configured to identify known incompatibilities with Smarty 3.x and make automated updates to fix the templates.
The upgrader will generate warnings whenever it has migrated a custom Smarty template and will also generate warnings if it encounters anything unusual such as outdated Smarty syntax in a PDF template. Information on the steps needed to resolve this health check error can be found on the Sugar Developer Blog in SugarClub.