Support » Plugin: WordPress Sentry » Issue with PHP Test Event in wordpress 5.4

  • Resolved pgiraudie

    (@pgiraudie)


    I installed the plugin in a wordpress 5.4 version project and have an issue when i make a test sending a PHP test event.
    Here is the stack trace :

    Uncaught Error: Call to undefined function getallheaders() in /var/www/html/public/wp-content/plugins/wp-sentry-integration/build/vendor/guzzlehttp/psr7/src/ServerRequest.php:134.

    • This topic was modified 5 months, 1 week ago by pgiraudie.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Alex

    (@stayallive)

    Hi @pgiraudie,

    Thanks for bringing this to my attention.

    I think I’ve found out what’s wrong, but just to confirm, on what PHP version are you running your WordPress installation?

    Plugin Author Alex

    (@stayallive)

    After some more testing I think I have fixed the issue and pushed version 3.4.5.

    Please let me know if that update solves the error for you and successfully sends a test event to Sentry.

    My project is running on PHP 7.2.10 version.
    The new version fixes the issue.
    Thanks for all !

    Plugin Author Alex

    (@stayallive)

    I suspected something like that. Looks like anything less than PHP 7.3 (on php-fpm) could produce that error.

    Thanks again for bringing it to my attention so it could be fixed 💪

    I have an issue to with wp-sentry-integration v3.8.0 (php 7.3.14, WP 5.4.2) making a test & sending a PHP test event:
    My stack trace:
    Call to undefined method Sentry\Frame::isInternal() – /Users/ws1/Sites/…/wp-content/plugins/wp-sentry-integration/build/vendor/sentry/sentry/src/Integration/FrameContextifierIntegration.php:69

    Update:
    I found out, that there was another version of sentry in the themes vendor folder. After removing it, everything works fine.

    Sorry for the trouble and thanks for the great plugin!

    • This reply was modified 2 months, 1 week ago by uvo.
    Plugin Author Alex

    (@stayallive)

    No problem @uvo, glad to hear it’s working for you 👌

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.