Issue "preg_replace deprecated" with eXtplorer -> solution

Hi all,

did you get error message “preg_replace deprecated”?


  1. find file which produces this error message.
  2. find “preg_replace” in code
  3. put a ‘@’ before - example @preg_replace



That just suppresses the message, it does not fix the problem …

“Deprecated” means will be removed in a future version of PHP – so code that still uses something that is deprecated will stop to work once that happens.

And btw., for simply using preg_replace you will not get that message – preg_replace itself is not deprecated at all.