Closed websmyth closed 3 years ago
What version of Laravel?
After removing and reinstalling via composer, this error is generated (on local):
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover --ansi
Error
Call to a member function namespace() on null
at vendor/statamic/cms/src/Providers/AddonServiceProvider.php:372
368▕ }
369▕
370▕ protected function namespace()
371▕ {
➜ 372▕ return $this->getAddon()->namespace();
373▕ }
374▕
375▕ private function getAddon()
376▕ {
+24 vendor frames
25 artisan:37
Illuminate\Foundation\Console\Kernel::handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1
Installation failed, reverting ./composer.json to its original content.
Environment Statamic 3.0.29 Pro Laravel 8.15.0 PHP 7.4.11 cnj/seotamic 2.0.2 edalzell/forma 0.6.1 silentz/mailchimp 2.3.3 spatie/statamic-responsive-images 1.4.0
Confirmed
I believe this has been fixed @websmyth, can you please try in version 2.3.6?
Works perfectly – thank you!
When I try to deploy this to a server – through DeployHQ with
composer install --no-progress
– the deployment fails with this error:There are other addons installed, but Mailchimp is the only one to cause the issue. The issue remains when all addons but Mailchimp are removed, and it disappears when Mailchimp is removed.