Git Product home page Git Product logo

Comments (6)

stayallive avatar stayallive commented on June 20, 2024

This error comes from the code that serializes values, so something being serialized is triggering this. Are you submitting events to Sentry on that page? Or is that page triggering events?

You are using a Drupal plugin specifically, have you raised the issue there already (would be interesting to look at this with some more Drupal context)?

from sentry-php.

emircanerkul avatar emircanerkul commented on June 20, 2024

@stayallive I didn't create an issue on drupal because it's more related to that sentry/sentry dependency. Shouldn't these checks be done within this package? Yes, something on the page is triggering this error.

from sentry-php.

stayallive avatar stayallive commented on June 20, 2024

A reproduction or failing test would be very helpful here since I have no clue how to trigger this and I'm not setup for Drupal development (hence my suggestion/question if you asked there first) in case it's something Drupal specific.

I'm sure we eventually have to tackle it here, but there it too little information to reproduce this for me at the moment.

from sentry-php.

mfb avatar mfb commented on June 20, 2024

This happens if a string happens to be a deprecated callable, and you run is_callable() on it.

Can sentry simply add @ to its is_callable() calls to silence the deprecation?

Minimal reproduce case:

require './vendor/autoload.php';

ini_set('error_reporting', E_ALL);
ini_set('zend.exception_ignore_args', FALSE);

\Sentry\init();

class foo {
  function __construct(string $bar) {
    \Sentry\captureException(new \Exception('doh!'));
  }
}

new foo('static::sort');

from sentry-php.

cleptric avatar cleptric commented on June 20, 2024

Yes

from sentry-php.

emircanerkul avatar emircanerkul commented on June 20, 2024

Thank you @mfb for the STP

from sentry-php.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.