Skip to content
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

Migration Exception: Undefined variable: settings #39

Closed
michaelroper opened this issue Feb 1, 2019 · 6 comments
Closed

Migration Exception: Undefined variable: settings #39

michaelroper opened this issue Feb 1, 2019 · 6 comments

Comments

@michaelroper
Copy link

michaelroper commented Feb 1, 2019

Hey Andris!

I've been running with the dev-craft-3.1 branch without issue for the last few weeks, but just FYI, the recent commit you made (e0636f1) is causing a migration error for me now..

After running a composer update and getting the latest commit..

  - Updating craftcms/cms (3.1.6.1 => 3.1.7): Loading from cache
  - Updating craftcms/server-check (1.1.6 => 1.1.7): Loading from cache
  - Updating league/flysystem-aws-s3-v3 (1.0.21 => 1.0.22): Loading from cache
  - Updating craftcms/aws-s3 dev-craft-3.1 (0c2b23b => 3cb4190):  Checking out 3cb4190265

I get this error running the migration...

Exception: Undefined variable: settings (/Users/michael.roper/Sites/website-v3/vendor/craftcms/aws-s3/src/migrations/m180929_165000_remove_storageclass_setting.php:30)
#0 /Users/michael.roper/Sites/website-v3/vendor/craftcms/aws-s3/src/migrations/m180929_165000_remove_storageclass_setting.php(30): yii\base\ErrorHandler->handleError(8, 'Undefined varia...', '/Users/michael....', 30, Array)
#1 /Users/michael.roper/Sites/website-v3/vendor/craftcms/cms/src/db/Migration.php(56): craft\awss3\migrations\m180929_165000_remove_storageclass_setting->safeUp()
#2 /Users/michael.roper/Sites/website-v3/vendor/craftcms/cms/src/db/MigrationManager.php(243): craft\db\Migration->up(true)
#3 /Users/michael.roper/Sites/website-v3/vendor/craftcms/cms/src/db/MigrationManager.php(163): craft\db\MigrationManager->migrateUp(Object(craft\awss3\migrations\m180929_165000_remove_storageclass_setting))
#4 /Users/michael.roper/Sites/website-v3/vendor/craftcms/cms/src/services/Updates.php(223): craft\db\MigrationManager->up()
#5 /Users/michael.roper/Sites/website-v3/vendor/craftcms/cms/src/console/controllers/MigrateController.php(252): craft\services\Updates->runMigrations(Array)

I'm using Environment variables for my secret settings, and have non-secret settings in config/volumes.php, if that makes a difference.

andris-sevcenko added a commit that referenced this issue Feb 1, 2019
@andris-sevcenko
Copy link
Contributor

I'll just call this one "friends don't let friends write migrations at 10pm" :)

@andris-sevcenko
Copy link
Contributor

Closed via 4b6260d

@michaelroper
Copy link
Author

Hah, good one! 😆

How far away is this branch from a package release now?

@andris-sevcenko
Copy link
Contributor

About 2 hours? Have to get to the office first :)

@michaelroper
Copy link
Author

How's that for commitment! Love your work :)

@andris-sevcenko
Copy link
Contributor

And 1.1.0 is out along with the auto-focal-point-on-face feature!

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