We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When trying to use (some) addons with Statamic 5.28.0 we get an NotBootedException. This is caused by the new autoload feature: #9270
The problem may be that we're calling $this->getAddon() here:
cms/src/Providers/AddonServiceProvider.php
Line 707 in 4731d57
But $this->app->isBooted() isn't true yet, when commands are registered:
Line 638 in 4731d57
An easy fix would be to disable autoload for commands. But maybe there is a smarter way.
No response
Environment Application Name: Statamic Laravel Version: 11.25.0 PHP Version: 8.3.9 Composer Version: 2.7.7 Environment: local Debug Mode: ENABLED URL: statamic.test Maintenance Mode: OFF Timezone: UTC Locale: en Cache Config: NOT CACHED Events: NOT CACHED Routes: NOT CACHED Views: NOT CACHED Drivers Broadcasting: log Cache: file Database: sqlite Logs: stack / single Mail: log Queue: sync Session: file Statamic Addons: 1 Sites: 1 Stache Watcher: Enabled Static Caching: Disabled Version: 5.x-dev Solo Statamic Addons spatie/statamic-responsive-images: 5.0.1
Fresh statamic/statamic site via CLI
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Bug description
When trying to use (some) addons with Statamic 5.28.0 we get an NotBootedException. This is caused by the new autoload feature: #9270
The problem may be that we're calling $this->getAddon() here:
cms/src/Providers/AddonServiceProvider.php
Line 707 in 4731d57
But $this->app->isBooted() isn't true yet, when commands are registered:
cms/src/Providers/AddonServiceProvider.php
Line 638 in 4731d57
An easy fix would be to disable autoload for commands. But maybe there is a smarter way.
How to reproduce
https://statamic.com/addons/spatie/responsive-images
Logs
No response
Environment
Installation
Fresh statamic/statamic site via CLI
Additional details
No response
The text was updated successfully, but these errors were encountered: