You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To test my post install script in Peak I install Statamic v5 using composer create-project and then run starter-kit:install --local. After creating a super user I get an InvalidArgumentException:
Disk [favicons] does not have a configured driver.
at vendor/laravel/framework/src/Illuminate/Filesystem/FilesystemManager.php:137
133▕ {
134▕ $config ??= $this->getConfig($name);
135▕
136▕ if (empty($config['driver'])) {
➜ 137▕ throw new InvalidArgumentException("Disk [{$name}] does not have a configured driver.");
138▕ }
139▕
140▕ $name = $config['driver'];
141▕
+20 vendor frames
21 [internal]:0
Statamic\Assets\QueryBuilder::Statamic\Assets\{closure}("favicons")
+13 vendor frames
35 [internal]:0
Statamic\Assets\AssetRepository::Statamic\Assets\{closure}(Object(Statamic\Assets\AssetContainer))
Peak contains a bunch of custom filesystems that are being used by the asset containers it ships with. It seems those don't get properly loaded during the install. This does work as expected in v4.
The solution is to run the install command a second time.
From digging into this, it looks like the issue is actually happening when Statamic attempts to create the super user, which is the step before a starter kit's post-install script runs.
For some reason, it looks like the custom disks configured in Peak's filesystems.php file aren't loaded by the point the make:user command is run via $this->console->call(). Not sure why it'd suddenly be breaking on v5, unless it was a change somewhere in Laravel 11. 🤔
I've done a little more testing and it seems like this issue also exists on Statamic 4 too, it only happens when you install a starter kit into an existing site, not when creating a fresh site with the CLI.
Run statamic new brand-new-site
Run php please starter-kit:install studio1902/statamic-peak
When it prompts you about creating a new user, do it
When it goes to save the user, it'll error
duncanmcclean
changed the title
[5.x] Asset container drivers not loaded when installing a starter kit
Asset container drivers not loaded when installing a starter kit with starter-kit:installApr 18, 2024
duncanmcclean
changed the title
Asset container drivers not loaded when installing a starter kit with starter-kit:install
Asset container drivers not loaded when installing a starter kit with starter-kit:install command
Apr 18, 2024
I've done a little more testing and it seems like this issue also exists on Statamic 4 too, it only happens when you install a starter kit into an existing site, not when creating a fresh site with the CLI.
Ah, nice find. Yeah I'd never actually done that until now, to test v5. It's not a blocker then, glass half full!
Bug description
I'm sorry for this one in advance.
To test my post install script in Peak I install Statamic v5 using
composer create-project
and then runstarter-kit:install --local
. After creating a super user I get anInvalidArgumentException
:Peak contains a bunch of custom filesystems that are being used by the asset containers it ships with. It seems those don't get properly loaded during the install. This does work as expected in v4.
The solution is to run the install command a second time.
How to reproduce
composer create-project --prefer-dist --stability=dev statamic/statamic:dev-master
php please starter-kit:install studio1902/statamic-peak --local
Note: I'm installing a local version of Peak because the v5 version isn't released yet. You could replicate this using this statamic-peak.zip.
You will also need: peak-addons.zip
Logs
No response
Environment
Installation
Fresh statamic/statamic site via CLI
Antlers Parser
None
Additional details
No response
The text was updated successfully, but these errors were encountered: