Dropped support for {php} and {include_php} tags and embedded PHP in templates. Embedded PHP will now be passed through as is.

I’m using SuiteCRM 7.14.6
In change logs {root}/vendor/smarty/smarty/CHANGELOG.md
it says “Dropped support for {php} and {include_php} tags and embedded PHP in templates. Embedded PHP will now be passed through as is.”

{php} in file {root}/include/SugarFields/Fields/Assigned_user_name/SearchView.tpl is causing issue when we add “created by” field in searchfield of listview of any module.

{php}$this->_tpl_vars['user_options'] = get_user_array(false);{/php}
Wed Apr  9 12:56:30 2025 [16561][1][FATAL] Exception handling in /var/www/html/tos-ksa/include/MVC/Controller/SugarController.php:397
Wed Apr  9 12:56:30 2025 [16561][1][FATAL] Exception in Controller: Syntax error in template "file:/var/www/html/{root}/cache/themes/SuiteP/modules/Contacts/SearchForm_advanced.tpl"  on line 393 "{php}$this->_tpl_vars['user_options'] = get_user_array(false);{/php}" unknown tag 'php'

Hi, welcome to the Community! :tada:

What is your PHP version?

Is it inside the matrix?

read this, it will help

1 Like