Deprecated: Using unregistered function “strval” in a template is deprecated and will be removed in a future release. Use Smarty::registerPlugin to explicitly register a custom modifier

Hi,

I’m Facing this error msg.

[Deprecated: Using unregistered function “strval” in a template is deprecated and will be removed in a future release. Use Smarty::registerPlugin to explicitly register a custom modifier]

smarty_internal-templatecompilerbase.php error line on 663

please help me.

Hello, can you try making the following changes in php.ini file

error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT & ~E_NOTICE & ~E_WARNING

display_errors = Off

Also, after changes suggested by @Harshad do not forget to restart your php service.

Hi, this issue happened to me aswell, just noticed now after 2 days of a fresh install, and only figured it out cuz it displayed on the browser xD

Just found out on another server environment I had to add addtional error suppression. PHP 8 introduces E_USER_WARNING and that has to be supressed too:

error_reporting = E_ALL & ~E_WARNING & ~E_NOTICE & ~E_USER_WARNING

Hey, so i tried this but didnt seem to fix it, still displayed.

I added this in the config_override.php and so far no issues shown in the page.

$sugar_config['stack_trace_errors'] = false;

1 Like

Check if it is set to FATAL in the settings.

Admin → System → System Settings → Logger Settings → Log Level

Its set to Debug for testing implementations

@Harshad i made this changes on the php.ini and de message has gone. Thanks