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.

Archive /

Our old forums are still available as a read-only archive.

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

Ignore a single error message in dev-mode


Go to End


1009 Views

Avatar
FlorianH

Community Member, 33 Posts

16 September 2008 at 9:58pm

Hello there,

I wonder if it's possible to ignore a single error message, in my case it's "init() method on class 'GFUredirect_Controller' doesn't call Controller::init(). Make sure that you have parent::init() included.".
I've got a function where it's required to not call the init() function, and my problem is that this function shows me a Fatal Error when dev mode is deactivated (and it's not the parent::init() error, Silverstripe ignores that out of the dev mode) and when I activate the devel mode the script interrupts first with the parent::init() error message and I can't see what the "real" error is.

Thanks in advance

FlorianH