sentry-laravel icon indicating copy to clipboard operation
sentry-laravel copied to clipboard

Error: Call to undefined method Sentry\Options::getLoggerOrNullLogger()

Open CrazyBoy49z opened this issue 1 year ago • 6 comments

How do you use Sentry?

Self-hosted / on-premises

SDK version

4.6.1

Steps to reproduce

Send Job (ShouldQueue)

Expected result

Actual result

Error: Call to undefined method Sentry\Options::getLoggerOrNullLogger()

CrazyBoy49z avatar Jun 19 '24 15:06 CrazyBoy49z

Which Laravel version are you using? Any stacktrace you could give us?

cleptric avatar Jun 19 '24 15:06 cleptric

Laravel 10.48.

image

CrazyBoy49z avatar Jun 20 '24 08:06 CrazyBoy49z

image

name     : sentry/sentry-laravel
descrip. : Laravel SDK for Sentry (https://sentry.io)
keywords : crash-reporting, crash-reports, error-handler, error-monitoring, laravel, log, logging, profiling, sentry, tracing
versions : * 4.6.1
type     : library
license  : MIT License (MIT) (OSI approved) https://spdx.org/licenses/MIT.html#licenseText
homepage : https://sentry.io
source   : [git] https://github.com/getsentry/sentry-laravel.git 7f5fd9f362e440c4c0c492f386b93095321f9101
dist     : [zip] https://api.github.com/repos/getsentry/sentry-laravel/zipball/7f5fd9f362e440c4c0c492f386b93095321f9101 7f5fd9f362e440c4c0c492f386b93095321f9101
path     : /var/www/**/vendor/sentry/sentry-laravel
names    : sentry/sentry-laravel

support
issues : https://github.com/getsentry/sentry-laravel/issues
source : https://github.com/getsentry/sentry-laravel/tree/4.6.1

autoload
psr-0
Sentry\Laravel\ => src/

requires
illuminate/support ^6.0 | ^7.0 | ^8.0 | ^9.0 | ^10.0 | ^11.0
nyholm/psr7 ^1.0
php ^7.2 | ^8.0
sentry/sentry ^4.7
symfony/psr-http-message-bridge ^1.0 | ^2.0 | ^6.0 | ^7.0

requires (dev)
friendsofphp/php-cs-fixer ^3.11
guzzlehttp/guzzle ^7.2
laravel/folio ^1.1
laravel/framework ^6.0 | ^7.0 | ^8.0 | ^9.0 | ^10.0 | ^11.0
livewire/livewire ^2.0 | ^3.0
mockery/mockery ^1.3
orchestra/testbench ^4.7 | ^5.1 | ^6.0 | ^7.0 | ^8.0 | ^9.0
phpstan/phpstan ^1.10
phpunit/phpunit ^8.4 | ^9.3 | ^10.4

CrazyBoy49z avatar Jun 20 '24 08:06 CrazyBoy49z

image

CrazyBoy49z avatar Jun 20 '24 08:06 CrazyBoy49z

Perhaps the problem is precisely the difference in versions, created in one and sent in another

CrazyBoy49z avatar Jun 20 '24 08:06 CrazyBoy49z

You are running two different SDK versions?

cleptric avatar Jun 20 '24 12:06 cleptric

I am closing this issue because of inactivity, if there is still an issue please re-open / open a new issue so we can investigate 👍

stayallive avatar Jul 18 '24 20:07 stayallive