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


Reply

2 Posts   1045 Views

Avatar
borriej

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: http://www.silverstripe.org/dataobjectmanager-module-forum/show/16082

Avatar
Invader_Zim

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

Hi.

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

[url]http://de2.php.net/manual/en/function.preg-replace.php[/url]

Cheers
Christian