• Hi,
    i’ve installed Sentry plugin on WP 5.9.
    Following the instructions i succesfully sent a php test error message test from admin.
    Sentry got it.

    After that… stop.
    No error, warning or notice (that i can see inside a wordpress debug log) are cathced by Sentry.

    That’s my wp-config sentry settings:

    define( 'WP_SENTRY_PHP_DSN', 'https://xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' );
    define( 'WP_SENTRY_ENV', 'dev' );
    define( 'WP_SENTRY_ERROR_TYPES', E_ALL);
    define( 'WP_SENTRY_VERSION', 'v6.0.0' );

    What i’m doing wrong?
    Thanks a lot.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author stayallive

    (@stayallive)

    Is it possible those errors/warnings and/or notices happen before Sentry loads?

    You can read a bit more about what I mean here: https://github.com/stayallive/wp-sentry/blob/v6.0.0/README.md#capturing-plugin-errors

    Thread Starter anatoli

    (@anatoli)

    Hi Alex,
    thanks for reply, i tried what your’s link suggest but it’s still not working.

    I created the php file suggested inside mu-plugins folder without success.

    However the test call still works again.

    Plugin Author stayallive

    (@stayallive)

    Interesting, without more info it’s very hard to debug for me.

    Have you tried disabling all plugins except Sentry and switch to a default theme?

    It’s very possible some other plugin overwrites the error handler because of reasons or disables some error reporting settings.

    The test call directly calls the Sentry SDK so it’s good to see that is working but somehow uncaught errors don’t end up with the Sentry plugin which is interesting and I’m not sure about the reason.

    • This reply was modified 2 years, 1 month ago by stayallive.
    Thread Starter anatoli

    (@anatoli)

    Hi Alex,
    now it works!
    
    I disabled all plugins and now it's working... so i'have to find the guilty one!!
    
    Onestly i had just tried to disabled all plugins but BEFORE modify the wp-config.php as you suggested with your first link.
    
    Now, with the wp-config edited as you suggested and removing all others plugins it work.
    
    Thanks a lot!
    Plugin Author stayallive

    (@stayallive)

    Super interesting, if you figure out which plugin is the troublemaker let me know so I can see if there is anything I can do to fix it or maybe we can try and report the bug with that plugin too (if it’s their fault).

    Thread Starter anatoli

    (@anatoli)

    Yes, sure.
    Let me find the guilty and i’ll tell you back.

    Thread Starter anatoli

    (@anatoli)

    Anyway… Sentry is reciving just Fatal Error, no Notice or Warning that i can find inside the wp’s debug.log

    I’ve tried whit adn whitout:
    define( ‘WP_SENTRY_ERROR_TYPES’, E_ALL); in my wp-config.php.

    Any suggest about that?

    (i’m still looking for bad plugin…)

    • This reply was modified 2 years, 1 month ago by anatoli.
    Thread Starter anatoli

    (@anatoli)

    Alex,
    finally i’ve got the problem.
    There are no plugins who block Sentry…
    the problem is about only fatal error are catched (so when i remove all plugins some fatel error are sento to SentrY).

    No warning, no notice are catched, only fatal errors.

    Can i fix that?

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Only Sentry test works.’ is closed to new replies.