statamic-rad-pack / mailchimp

Mailchimp integration for Statamic
https://statamic.com/addons/rad-pack/mailchimp
MIT License
18 stars 12 forks source link

Won’t deploy #51

Closed websmyth closed 3 years ago

websmyth commented 3 years ago

When I try to deploy this to a server – through DeployHQ with composer install --no-progress – the deployment fails with this error:

Error 

  Call to undefined method Illuminate\Cache\FileStore::rememberWithExpiration()

  at vendor/laravel/framework/src/Illuminate/Cache/Repository.php:646
    642▕         if (static::hasMacro($method)) {
    643▕             return $this->macroCall($method, $parameters);
    644▕         }
    645▕ 
  ➜ 646▕         return $this->store->$method(...$parameters);
    647▕     }
    648▕ 
    649▕     /**
    650▕      * Clone cache repository instance.

      +6 vendor frames 
  7   [internal]:0
      Statamic\Extend\Manifest::Statamic\Extend\{closure}("edalzell/forma")

      +17 vendor frames 
  25  [internal]:0
      Illuminate\Foundation\Application::Illuminate\Foundation\{closure}(Object(Silentz\Mailchimp\ServiceProvider))
Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1

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.

edalzell commented 3 years ago

What version of Laravel?

websmyth commented 3 years ago

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

edalzell commented 3 years ago

Confirmed

edalzell commented 3 years ago

I believe this has been fixed @websmyth, can you please try in version 2.3.6?

websmyth commented 3 years ago

Works perfectly – thank you!