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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

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

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

Cheers
Christian