Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Call to undefined method Raven_Client::check() while installing sentry-laravel #27

Closed
sabrio opened this issue Aug 4, 2016 · 1 comment

Comments

@sabrio
Copy link

sabrio commented Aug 4, 2016

I am facing this error when I try to install sentry-laravel in my application, this is the output when I add the provider inside my providers array:
FatalErrorException in Facade.php line 215: Call to undefined method Raven_Client::check()

Providers list:

"providers" => [

        /*
         * Laravel Framework Service Providers...
         */
        'Illuminate\Broadcasting\BroadcastServiceProvider',
        'Illuminate\Foundation\Providers\ArtisanServiceProvider',
        'Illuminate\Auth\AuthServiceProvider',
        'Illuminate\Bus\BusServiceProvider',
        'Illuminate\Cache\CacheServiceProvider',
        'Illuminate\Foundation\Providers\ConsoleSupportServiceProvider',
        'Illuminate\Cookie\CookieServiceProvider',
        'Illuminate\Database\DatabaseServiceProvider',
        'Illuminate\Encryption\EncryptionServiceProvider',
        'Illuminate\Filesystem\FilesystemServiceProvider',
        'Illuminate\Foundation\Providers\FoundationServiceProvider',
        'Illuminate\Hashing\HashServiceProvider',
        'Illuminate\Mail\MailServiceProvider',
        'Illuminate\Pagination\PaginationServiceProvider',
        'Illuminate\Pipeline\PipelineServiceProvider',
        'Illuminate\Queue\QueueServiceProvider',
        'Illuminate\Redis\RedisServiceProvider',
        'Illuminate\Auth\Passwords\PasswordResetServiceProvider',
        'Illuminate\Session\SessionServiceProvider',
        'Illuminate\Translation\TranslationServiceProvider',
        'Illuminate\Validation\ValidationServiceProvider',
        'Illuminate\View\ViewServiceProvider',

        /*
         * Application Service Providers...
         */
        'App\Providers\AppServiceProvider',
        'App\Providers\ConfigServiceProvider',
        'App\Providers\EventServiceProvider',
        'App\Providers\RouteServiceProvider',

        /*
        * Custome Service providers
        */
        'Collective\Html\HtmlServiceProvider',
        'Cartalyst\Sentry\SentryServiceProvider',
                'Codesleeve\LaravelStapler\Providers\L5ServiceProvider',
                Sentry\SentryLaravel\SentryLaravelServiceProvider::class,
    ],

laravel version: 5.2

@dcramer
Copy link
Member

dcramer commented Aug 4, 2016

The problem is you're using the Cartalyst provider as well, which has unfortunately used the Sentry name.

See also GH-24 which is a duplicate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants