Skip to content

Class "Rollbar\Utilities" not found #656

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
mirko-pagliai opened this issue Apr 28, 2025 · 5 comments
Open

Class "Rollbar\Utilities" not found #656

mirko-pagliai opened this issue Apr 28, 2025 · 5 comments
Assignees

Comments

@mirko-pagliai
Copy link

Upgrading from version 4.1.2 to 4.1.3 I get this error:

null: [Error] Class "Rollbar\Utilities" not found in /var/www/html/climat/vendor/rollbar/rollbar/src/UtilitiesTrait.php on line 11
Stack Trace:
- ROOT/vendor/rollbar/rollbar/src/Senders/CurlSender.php:44
- ROOT/vendor/rollbar/rollbar/src/Config.php:769
- ROOT/vendor/rollbar/rollbar/src/Config.php:501
- ROOT/vendor/rollbar/rollbar/src/Config.php:301
- ROOT/vendor/rollbar/rollbar/src/Config.php:242
- ROOT/vendor/rollbar/rollbar/src/RollbarLogger.php:52
- ROOT/config/bootstrap.php:210
- CORE/src/Log/LogEngineRegistry.php:78
- CORE/src/Core/ObjectRegistry.php:115
- CORE/src/Log/Log.php:190
- CORE/src/Log/Log.php:365
- CORE/src/Error/ErrorLogger.php:63
- CORE/src/Error/ErrorLogger.php:85
- CORE/src/Error/ErrorTrap.php:170
- CORE/src/Error/ErrorTrap.php:143
- ROOT/vendor/composer/ClassLoader.php:576
- ROOT/vendor/composer/ClassLoader.php:576
- ROOT/vendor/composer/ClassLoader.php:427
- ROOT/vendor/rollbar/rollbar/src/UtilitiesTrait.php:11
- ROOT/vendor/rollbar/rollbar/src/Senders/CurlSender.php:44
- ROOT/vendor/rollbar/rollbar/src/Config.php:769
- ROOT/vendor/rollbar/rollbar/src/Config.php:501
- ROOT/vendor/rollbar/rollbar/src/Config.php:301
- ROOT/vendor/rollbar/rollbar/src/Config.php:242
- ROOT/vendor/rollbar/rollbar/src/RollbarLogger.php:52
- ROOT/config/bootstrap.php:210
- CORE/src/Log/LogEngineRegistry.php:78
- CORE/src/Core/ObjectRegistry.php:115
- CORE/src/Log/Log.php:190
- CORE/src/Log/Log.php:285
- CORE/src/Console/ConsoleIo.php:563
- CORE/src/Console/BaseCommand.php:236
- CORE/src/Console/BaseCommand.php:188
- CORE/src/Console/CommandRunner.php:330
- CORE/src/Console/CommandRunner.php:168
- ROOT/bin/cake.php:14
- [main]:

Actually, UtilitiesTrait uses the Utilities class, but this is not properly defined.

Copy link

linear bot commented Apr 28, 2025

@danielmorell danielmorell self-assigned this May 2, 2025
@danielmorell
Copy link
Collaborator

This sort of error is typically caused by something failing during the package download and or unpacking process.

I would recomend the following...

  1. Delete the vendor/rollbar directory.
  2. Run composer clearcache to ensure the coruption was not in the package download.
  3. Run composer update rollbar/rollbar to install the latest version.

This will most likely resolve the issue.

@mirko-pagliai
Copy link
Author

I followed the instructions, which seem reasonable, but I still have the same problem. I have currently blocked the version.

I will do some more testing and maybe update-

@danielmorell
Copy link
Collaborator

You might also find you need to run composer dump-autoload.

@mirko-pagliai
Copy link
Author

yes, of course, I did that too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants