rollbar / rollbar-php-wordpress

Official WordPress plugin from Rollbar, Inc.
https://rollbar.com/
GNU General Public License v2.0
15 stars 20 forks source link

E_ERROR in vendor/rollbar/rollbar/src/LevelFactory.php #117

Closed mondalaci closed 1 year ago

mondalaci commented 1 year ago

My WordPress site just sent me an error email.

WordPress version 6.3.1
Current plugin: Rollbar (version 2.6.3)
PHP version 8.1.12-1ubuntu4

Error Details
=============
An error of type E_ERROR was caused in line 22 of the file /var/www/[ultimatehackingkeyboard.com/wordpress/wp-content/plugins/rollbar/vendor/rollbar/rollbar/src/LevelFactory.php](http://ultimatehackingkeyboard.com/wordpress/wp-content/plugins/rollbar/vendor/rollbar/rollbar/src/LevelFactory.php). Error message: Uncaught Error: Undefined constant Rollbar\Payload\Level::IGNORED in /var/www/[ultimatehackingkeyboard.com/wordpress/wp-content/plugins/rollbar/vendor/rollbar/rollbar/src/LevelFactory.php:22](http://ultimatehackingkeyboard.com/wordpress/wp-content/plugins/rollbar/vendor/rollbar/rollbar/src/LevelFactory.php:22)
Stack trace:
#0 /var/www/[ultimatehackingkeyboard.com/wordpress/wp-content/plugins/rollbar/vendor/rollbar/rollbar/src/LevelFactory.php(36)](http://ultimatehackingkeyboard.com/wordpress/wp-content/plugins/rollbar/vendor/rollbar/rollbar/src/LevelFactory.php(36)): Rollbar\LevelFactory::init()
#1 /var/www/[ultimatehackingkeyboard.com/wordpress/wp-content/plugins/rollbar/vendor/rollbar/rollbar/src/LevelFactory.php(50)](http://ultimatehackingkeyboard.com/wordpress/wp-content/plugins/rollbar/vendor/rollbar/rollbar/src/LevelFactory.php(50)): Rollbar\LevelFactory->fromName()
#2 /var/www/[ultimatehackingkeyboard.com/wordpress/wp-content/plugins/rollbar/vendor/rollbar/rollbar/src/RollbarLogger.php(84)](http://ultimatehackingkeyboard.com/wordpress/wp-content/plugins/rollbar/vendor/rollbar/rollbar/src/RollbarLogger.php(84)): Rollbar\LevelFactory->isValidLevel()
#3 /var/www/[ultimatehackingkeyboard.com/wordpress/wp-content/plugins/rollbar/vendor/rollbar/rollbar/src/Handlers/ExceptionHandler.php(33)](http://ultimatehackingkeyboard.com/wordpress/wp-content/plugins/rollbar/vendor/rollbar/rollbar/src/Handlers/ExceptionHandler.php(33)): Rollbar\RollbarLogger->log()
#4 [internal function]: Rollbar\Handlers\ExceptionHandler->handle()
#5 {main}
  thrown

Would you guys release a new Rollbar plugin containing the fix? You haven't published a release in ages.

brianr commented 1 year ago

Hi @mondalaci , thanks for the nudge. We're looking at this.

aaronjorbin commented 1 year ago

Hi @mondalaci , I just pushed version 2.7.0 which should resolve this issue. Can you update and let me know if this can be closed?

mondalaci commented 1 year ago

So far, so good! I'm closing this issue and let you know if anything goes wrong.

Excited for the update after all this time!