-
Notifications
You must be signed in to change notification settings - Fork 28
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
Setting unknown property: craft\awss3\Volume::storageClass on dev-craft-3.1 #40
Comments
Can you try updating to the just-released 1.1. version of the plugin? |
Just updated, same issue persists, it seems that https://github.com/craftcms/aws-s3/blob/1.1.0/src/Volume.php is still missing storageClass property |
Right, because it should have been removed by https://github.com/craftcms/aws-s3/blob/master/src/migrations/m180929_165000_remove_storageclass_setting.php Can you check if your |
Just checked, no such entry there. Craft says that there are migrations pending, but right after hitting the finish button I get the abovementioned error. |
Can you get a stack trace for that error from the log files? |
I'm not sure that calling Craft functionality from config files is a good idea, as demonstrated by this particular issue. You're invoking Craft before it has a chance to run its migrations and this can lead to unpredictable results. Can you disable that, let the migrations run and see what happens? |
You're absolutely right, but this was the only way we could make that happen without changing original plugin code. |
Ugh. This is not cool. Okay. Here's the plan. Re-adding this property (since it does nothing), cutting a 1.1.1 release and for the next release require at least 1.1.1 to update and delete that property. That should ensure that everyone updates to 1.1.1, run the migration to get rid of the setting and the property is safe to be removed in the next version. |
sounds great, waiting for 1.1.1 to be released |
Should be released as of now. |
Great, worked like a charm, migration was done successfully as well. Thanks for your help! |
I must say, for an instant I was scared when I saw your email :) |
Using Craft 3.1.7, project config enabled and dev-craft-3.1 version of plugin following error occurs when accessing Control panel:
Setting unknown property: craft\awss3\Volume::storageClass
The text was updated successfully, but these errors were encountered: