Skip to main content
This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.
I am installing 2.3.1 on IIS 5.1 on an XP box.
I followed the manual install procedure.
On first time run I received the following errors:
Deprecated: Function ereg_replace() is deprecated in C:\inetpub\wwwroot\silverstripe\install.php on line 357
Line of code for above error: $c = ereg_replace('-.*$','',$c);
install.php file attached
Parse error: parse error in C:\inetpub\wwwroot\silverstripe\sapphire\dev\install\config-form.html on line 178
Line 178 is the final line of html code for this error
config-form.html file attached
What version of PHP are you running?
I thought this is deprecated in PHP 5.3 and above, which is not yet out?
Thanks for your reply.
Sorry it took so long to get back to the post.
Yes, I am running php 5.3.
I presume that, since you asked, Silverstripe will be a while putting out a version that deals with the pending deprecations beyond php version 5.9.2.
Before I back up to 5.9.2, has anyone attempted a work around?
I am having this exact error with 5.2.9.
I would also love to know if anyone has come up with a workaround?
Added bug report to http://open.silverstripe.com/ticket/3973 :)
Also - if you're using WAMP this post may be helpful - http://silverstripe.org/installing-silverstripe/show/257713#post257713
I checked the bug report and it says;
"I've disabled E_DEPRECATED as a quick fix, so lowering this item's priority."
This is not true. I disabled E_DEPRECATED as well but this has no effect. I still get the following error.
"PHP Deprecated: Function ereg_replace() is deprecated in C:\inetpub\wwwroot\sapphire\core\ManifestBuilder.php on line 257"
Not any fix yet? I am stuck.