Support » Plugin: WordPress Sentry » PHP Fatal error: Uncaught Error: Interface ‘Stringable’ not found

  • Resolved jamieburchell

    (@jamieburchell)


    Just upgraded from 4.7.0 to 4.10.0 and now getting this when deploying the site:

    cd /var/www/vhosts/example.com/releases/154 && (./wp-cli.phar language core install en_GB)
    PHP Fatal error:  Uncaught Error: Interface 'Stringable' not found in /var/www/vhosts/example.com/releases/154/web/app/plugins/wp-sentry-integration/build/vendor/sentry/sentry/src/Dsn.php:12
    Stack trace:
    #0 phar:///var/www/vhosts/example.com/releases/154/wp-cli.phar/vendor/composer/ClassLoader.php(478): include()
    #1 phar:///var/www/vhosts/example.com/releases/154/wp-cli.phar/vendor/composer/ClassLoader.php(346): Composer\Autoload\includeFile('/var/www/vhosts...')
    #2 [internal function]: Composer\Autoload\ClassLoader->loadClass('Sentry\\Dsn')
    #3 /var/www/vhosts/example.com/releases/154/web/app/plugins/wp-sentry-integration/build/vendor/sentry/sentry/src/Options.php(730): spl_autoload_call('Sentry\\Dsn')
    #4 /var/www/vhosts/example.com/releases/154/web/app/plugins/wp-sentry-integration/build/vendor/symfony/options-resolver/OptionsResolver.php(822): Sentry\Options->validateDsnOption('https://ff04bcb...')
    #5 /var/www/vhosts/example.com/releases/154/web/app/plugins/wp-sentry-integration/build/vendor/symfony/o in /var/www/vhosts/example.com/releases/154/web/app/plugins/wp-sentry-integration/build/vendor/sentry/sentry/src/Dsn.php on line 12
    Fatal error: Uncaught Error: Interface 'Stringable' not found in /var/www/vhosts/example.com/releases/154/web/app/plugins/wp-sentry-integration/build/vendor/sentry/sentry/src/Dsn.php:12
    Stack trace:
    #0 phar:///var/www/vhosts/example.com/releases/154/wp-cli.phar/vendor/composer/ClassLoader.php(478): include()
    #1 phar:///var/www/vhosts/example.com/releases/154/wp-cli.phar/vendor/composer/ClassLoader.php(346): Composer\Autoload\includeFile('/var/www/vhosts...')
    #2 [internal function]: Composer\Autoload\ClassLoader->loadClass('Sentry\\Dsn')
    #3 /var/www/vhosts/example.com/releases/154/web/app/plugins/wp-sentry-integration/build/vendor/sentry/sentry/src/Options.php(730): spl_autoload_call('Sentry\\Dsn')
    #4 /var/www/vhosts/example.com/releases/154/web/app/plugins/wp-sentry-integration/build/vendor/symfony/options-resolver/OptionsResolver.php(822): Sentry\Options->validateDsnOption('https://ff04bcb...')
    #5 /var/www/vhosts/example.com/releases/154/web/app/plugins/wp-sentry-integration/build/vendor/symfony/o in /var/www/vhosts/example.com/releases/154/web/app/plugins/wp-sentry-integration/build/vendor/sentry/sentry/src/Dsn.php on line 12

    PHP 7.4.25

Viewing 4 replies - 1 through 4 (of 4 total)
  • tyler0001

    (@tyler0001)

    Upgrading to version 4.10.0 also toasted my site. Thankfully the WP 5.2 error tool was super helpful in identifying the error.

    Here is the error detail:

    
    
    An error of type E_ERROR was caused in line 12 of the file /home/xxx/domain.com/wp-content/plugins/wp-sentry-integration/build/vendor/sentry/sentry/src/Dsn.php.
    Error message: Uncaught Error: Interface 'Stringable' not found in /home/xxx/domain.com/wp-content/plugins/wp-sentry-integration/build/vendor/sentry/sentry/src/Dsn.php:12
    
    

    If any others have this issue, a quick way to fix is to rename the wp-sentry-integration folder in wp-content/plugins or use the recovery link in the email from WordPress and disable the plugin.

    • This reply was modified 6 months ago by tyler0001. Reason: updated code formatting
    • This reply was modified 6 months ago by tyler0001. Reason: add version number
    tyler0001

    (@tyler0001)

    @jamieburchell it looks like they have pushed a few updates. Version 4.10.3 is the latest now. I haven’t tested it yet but the version notes seem to address this issue.

    Plugin Author Alex

    (@stayallive)

    Hi all, sorry for the troubles. There was a autoloader issue in 4.10, but 4.10.3 should work error free like you would expect 👌

    Thread Starter jamieburchell

    (@jamieburchell)

    Thanks 🙂

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘PHP Fatal error: Uncaught Error: Interface ‘Stringable’ not found’ is closed to new replies.