I cannot install the package. Tried to install using composer require sentry/sentry-laravel:1.0.0 but it shows the error below after autoload.
Laravel: 5.7.28
Browser: Chrome Version 71.0.3578.98 (Official Build) (64-bit)
PHP: 7.3.2
Composer: 1.8.4
- Installing sentry/sentry-laravel (1.0.0): Loading from cache
php-http/discovery suggests installing puli/composer-plugin (Sets up Puli which is recommended for Discovery to work. Check http://docs.php-http.org/en/latest/discovery.html for more details.)
php-http/message suggests installing slim/slim (Used with Slim Framework PSR-7 implementation)
php-http/client-common suggests installing php-http/logger-plugin (PSR-3 Logger plugin)
php-http/client-common suggests installing php-http/cache-plugin (PSR-6 Cache plugin)
php-http/client-common suggests installing php-http/stopwatch-plugin (Symfony Stopwatch plugin)
Writing lock file
Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover
Symfony\Component\OptionsResolver\Exception\UndefinedOptionsException : The option "user_context" does not exist. Defined options are: "attach_stacktrace", "before_breadcrumb", "before_send", "context_lines", "default_integrations", "dsn", "enable_compression", "environment", "error_types", "excluded_exceptions", "http_proxy", "in_app_exclude", "integrations", "logger", "max_breadcrumbs", "max_value_length", "prefixes", "project_root", "release", "sample_rate", "send_attempts", "send_default_pii", "server_name", "tags".
at /Users/markandrewkato/Documents/Programming/Gloss/scr/vendor/symfony/options-resolver/OptionsResolver.php: 747
743: if (\count($diff) > 0) {
744: ksort($clone->defined);
745: ksort($diff);
746:
747: throw new UndefinedOptionsException(sprintf((\count($diff) > 1 ? 'The options "%s" do not exist.' : 'The option "%s" does not exist.').' Defined options are: "%s".', implode('", "', array_keys($diff)), implode('", "', array_keys($clone->defined))));
748: }
749:
750: // Override options set by the user
751: foreach ($options as $option => $value) {
752: $clone->given[$option] = true;
Exception trace:
1 Symfony\Component\OptionsResolver\OptionsResolver::resolve()
/Users/markandrewkato/Documents/Programming/Gloss/scr/vendor/sentry/sentry/src/Options.php : 64
2 Sentry\Options::__construct()
/Users/markandrewkato/Documents/Programming/Gloss/scr/vendor/sentry/sentry/src/ClientBuilder.php : 116
You are probably upgrading from 0.x, if you remove the user_context line from config/sentry.php you should be good! 馃憤
@stayallive It worked. Thank you very much!
Most helpful comment
You are probably upgrading from
0.x, if you remove theuser_contextline fromconfig/sentry.phpyou should be good! 馃憤