Page 1 of 1

PHP Warning: preg_replace(): The /e modifier is no longer supported,

Posted: Thu Jun 07, 2018 12:26 am
by Dan Mark
Hi Nix,

I am having below error on my Joomla Site. Can you please have a look into this and help me out?

PHP Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /home/user/public_html/libraries/joomla/filter/input.php on line 654

Re: PHP Warning: preg_replace(): The /e modifier is no longer supported,

Posted: Thu Jun 07, 2018 12:37 am
by shaan
Hello Dan,

The e modifier is deprecated as of PHP 5.5.0. And it seems like you are using PHP version higher than 5.4. Can you please let me know the PHP vesrion on your domain? If you are using PHP version higher than 5.5 then, please try downgrading the PHP on the domain. In most of the cases, this will fix the issue.

Please try the same and post your output.


Shaan N
Linux Support Engineer.
Nixtree Solutions
Managed Full Server Backups
https://www.nixtree.com/managed-backups.php
Follow us on : https://twitter.com/nixtree

Re: PHP Warning: preg_replace(): The /e modifier is no longer supported,

Posted: Thu Jun 07, 2018 12:41 am
by Dan Mark
Hi Shaan,

Thanks for the idea. I have checked and found the domain is having PHP 7.0 on it. As per your suggestion, I have downgraded the PHP version to 5.4 and it worked.

My site now looks pretty good. Thanks again.