Skip to content

Sentry crashes complete website on PHP 7.4 #1285

@JE4GLE

Description

@JE4GLE

Environment

How do you use Sentry?
Sentry SaaS (sentry.io)

Which SDK and version?
sentry/sdk 3.1.1
sentry/sentry 3.3.7

My personal composer require contains:
"php": ">=7.4",
"sentry/sdk": "^3.0.0"

Steps to Reproduce

  1. Updated Sentry using composer update
  2. Uploaded vendor directory to my PHP 7.4 webserver
  3. My website instantly displays the error message mentioned below (Case A)
  4. I updated my composer again using composer update --ignore-platform-reqs
  5. Uploaded vendor directory again
  6. Now, nothing is shown (Case B), even with error_reporting(true); and ini_set('display_errors', true);
  7. I remove the Sentry initialization and now my website works again

Expected Result

My Website to display

Actual Result

Case A: Just the message: Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.0.2".

Case B: No response, just white

Comment

According to my steps, I think the error is in my configuration or Sentry itself. Please tell me, if you need some additional information. Disabling Sentry is just a temporary fix for me and I want to have it back up running as soon as possible :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions