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   1072 Views

Avatar
borriej

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

Avatar
Invader_Zim

Community Member, 141 Posts

11 March 2011 at 10:27am

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