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, biapar, Willr, Ingo, swaiba, simon_w

Ereg_replace in Widget.php - Errors


2 Posts   1045 Views


11 March 2011 at 9:38am (Last edited: 11 March 2011 9:40am), Community Member, 267 Posts

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:


11 March 2011 at 10:27am Community Member, 141 Posts


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()?