loader

ereg_replace deprecated PHP function Print

  • 1

ereg_replace

If you have a sitebuilder site with errors showing like this after trying to post a form  then youar e running PHP 5.3.X and it is not backward compatible with the formmail piece.

Deprecated: Function ereg_replace() is deprecated in /home/pipeline/domains/pipelinehub.com/public_html/_mgxroot/zenfmail_1332388650_10769_14697.php on line 21

Deprecated: Function ereg_replace() is deprecated in /home/pipeline/domains/pipelinehub.com/public_html/_mgxroot/zenfmail_1332388650_10769_14697.php on line 23

Deprecated: Function ereg_replace() is deprecated in /home/pipeline/domains/pipelinehub.com/public_html/_mgxroot/zenfmail_1332388650_10769_14697.php on line 25


I have found that after publishing the site I can edit the last 3 files in the _mgxroot folder of your site and replace

ereg_replace("
with preg_replace("//
wherever you find the ereg_replace command in those 3 files and the form mail will work again.

I am trying to find the programmer that created this sitebuilder to see if he can provide a fix for this - not likely successful since it went out of business a year ago.

Was this answer helpful?

« Back