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.

Archive /

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

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

Ignore a single error message in dev-mode


Reply


768 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