Error Message Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/healthy/public_html/smartbizsols.n

I keep getting this message and I am not a developer. Would anybody help me what I should do with this one?

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/healthy/public_html/smartbizsols.net/include/Smarty/Smarty_Compiler.class.php on line 268

In a layman’s language, it says to replace the line 268 in file smarty_Compiler_.class.php with preg_replace_callback. Is that what it is? I tried that already and it is not helpin.

Thank you for the help!

It’s a warning for developers mostly … not fatal … you need to reduce your warning level in php.ini and it will disappear … search the forum and you will find lots od advice

Thank you for the response.
I checked the ‘php.ini’ following your suggestion and I found out it is actually ‘off’
I noticed it is not fatal, as you said but the message is appearing every time I enter an input. So annoying.
I have attached the message screen shot.
Thanks

Hi,

Can you confirm what directive is set to off? You should have


display_errors = Off

and error_reporting something something like:


error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT

If it is still appearing after the above is set, and you have restarted your web server then it’s likely that the php.ini file you’re changing is not the correct one.

In ubuntu and apache this will be in /etc/php5/apache2/php.ini.

Hope this helps,
Jim