Unknown modifier 'Default'

Hello All,

I have upgraded the suitecrm from 7.13.1 to 7.141. After the upgrade, the below fatal error shows up in suitecrm.log.Can anyone pls help me with this? The look and feel of the application are not proper because of this error.

SuiteCRM version : 7.14
PHP version: 8.2
IIS server version: 10
Smarty version: 4.0

Removed the cache and repair and rebuild done.Provided full control permissions for the cache folder.

Exception in Controller: Syntax error in template “file:'path_to_instance\include\SugarFields\Fields\Base\EditView.tpl” on line 49 “id=‘{{if empty($displayParams.idName)}}{{sugarvar key=‘name’}}{{else}}{{$displayParams.idName}}{{/if}}’ size=‘{{$displayParams.size|default:30}}’” unknown modifier ‘default’

Thanks,
Maneesha Gutta.

Maybe you still have the old Smarty version.

How exactly did you upgrade?

Hai @pgr,

I think Smarty has upgraded i can see the version in Smarty. class.php file has 4.0.

The upgrade process I followed is:
. The application is on PHP8.0 and uploaded the upgrade patch from the upgrade wizard and the upgrade was done successfully. Changed the PHP version to 8.2 and then did a repair and rebuild.

.AFter that the error shows up in the log file.

Let me know if I miss anything.

Thanks,
Maneesha Gutta.