This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

skydiver
skydiver

Hello, i'm trying to catch October errors from a plugin.

After read https://octobercms.com/docs/services/error-log#exception-handling i've added inside boot() the following code:

\App::fatal(function($exception) { / });

Now i'm getting Call to undefined method October\Rain\Foundation\Application::fatal()

I suppose the namespace is wrong, but i can't find any clue.

Thanks.-

Last updated

mick11054
mick11054

skydiver,

In case you haven't solved this yet, it looks like the error() and fatal() methods were added to the main App class on September 16th: https://github.com/octobercms/library/commits/master/src/Foundation/Application.php

You'll need to update your version of October CMS in order to take advantage of these two methods.

Good luck!

skydiver
skydiver

Hello mick11054,

You're right, a few day ago a new updated re-introduced error and fatal methods.

Thanks!

1-3 of 3

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.