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.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Ereg_replace in Widget.php - Errors

Go to End

2 Posts   1400 Views


Community Member, 267 Posts

11 March 2011 at 9:38am

Edited: 11/03/2011 9:40am

I think i've got a problem with Ereg_replace() in the sapphire/widget/Widget.php

I moved my site from hosting A to B when the errors occured..

php is version 5.2, but i think it might be a virtual 5.2, since 5.3 is installed on the server but with a htaccess option i set it to 5.2..

Please see:


Community Member, 141 Posts

11 March 2011 at 10:27am


First of all, i suck big time when it comes to *_replace functions (and regular expressions as well),
but maybe it helps if you try preg_replace() instead of ereg_replace()?