shennyg / azure-blob-remote-volume

This plugin integrates Craft CMS and Microsoft Azure Storage Blob cloud storage service.
MIT License
1 stars 3 forks source link

This error occurred when re-saving a section that has an asset field connected to an Azure Volumn #2

Closed briancnoble closed 5 years ago

briancnoble commented 5 years ago

This error occurred when re-saving a section that has an asset field connected to an Azure Volumn RuntimeException: The provided account key '' is not a valid base64 string. It has to pass the check 'base64_decode(, true)'. in C:\wamp64\www\gelsons\vendor\microsoft\azure-storage-common\src\Common\Internal\StorageServiceSettings.php:112

Stack trace:


#1 C:\wamp64\www\gelsons\vendor\microsoft\azure-storage-common\src\Common\Internal\ServiceSettings.php(273): MicrosoftAzure\Storage\Common\Internal\ServiceSettings::MicrosoftAzure\Storage\Common\Internal\{closure}(Array)
#2 C:\wamp64\www\gelsons\vendor\microsoft\azure-storage-common\src\Common\Internal\StorageServiceSettings.php(399): MicrosoftAzure\Storage\Common\Internal\ServiceSettings::matchedSpecification(Array, Object(Closure), Object(Closure))
#3 C:\wamp64\www\gelsons\vendor\microsoft\azure-storage-blob\src\Blob\BlobRestProxy.php(134): MicrosoftAzure\Storage\Common\Internal\StorageServiceSettings::createFromConnectionString('DefaultEndpoint...')
#4 C:\wamp64\www\gelsons\vendor\shennyg\azure-blob-remote-volume\src\AzureVolume.php(53): MicrosoftAzure\Storage\Blob\BlobRestProxy::createBlobService('DefaultEndpoint...')
#5 C:\wamp64\www\gelsons\vendor\craftcms\cms\src\base\FlysystemVolume.php(307): shennyg\azureblobremotevolume\AzureVolume->createAdapter()
#6 C:\wamp64\www\gelsons\vendor\craftcms\cms\src\base\FlysystemVolume.php(319): craft\base\FlysystemVolume->adapter()
#7 C:\wamp64\www\gelsons\vendor\craftcms\cms\src\base\FlysystemVolume.php(48): craft\base\FlysystemVolume->filesystem()
#8 C:\wamp64\www\gelsons\vendor\craftcms\cms\src\services\Assets.php(757): craft\base\FlysystemVolume->getFileList('pages/', false)
#9 C:\wamp64\www\gelsons\vendor\craftcms\cms\src\validators\AssetLocationValidator.php(132): craft\services\Assets->getNameReplacementInFolder('shopping.jpg', 21)
#10 C:\wamp64\www\gelsons\vendor\yiisoft\yii2\validators\Validator.php(267): craft\validators\AssetLocationValidator->validateAttribute(Object(craft\elements\Asset), 'newLocation')
#11 C:\wamp64\www\gelsons\vendor\yiisoft\yii2\base\Model.php(367): yii\validators\Validator->validateAttributes(Object(craft\elements\Asset), Array)
#12 C:\wamp64\www\gelsons\vendor\craftcms\cms\src\services\Elements.php(412): yii\base\Model->validate()
#13 C:\wamp64\www\gelsons\vendor\craftcms\cms\src\services\Assets.php(187): craft\services\Elements->saveElement(Object(craft\elements\Asset))
#14 C:\wamp64\www\gelsons\vendor\craftcms\cms\src\fields\Assets.php(429): craft\services\Assets->moveAsset(Object(craft\elements\Asset), Object(craft\models\VolumeFolder))
#15 C:\wamp64\www\gelsons\vendor\craftcms\cms\src\base\Element.php(1841): craft\fields\Assets->afterElementSave(Object(craft\elements\Entry), false)
#16 C:\wamp64\www\gelsons\vendor\craftcms\cms\src\elements\Entry.php(1080): craft\base\Element->afterSave(false)
#17 C:\wamp64\www\gelsons\vendor\craftcms\cms\src\services\Elements.php(498): craft\elements\Entry->afterSave(false)
#18 C:\wamp64\www\gelsons\vendor\craftcms\cms\src\services\Sections.php(1299): craft\services\Elements->saveElement(Object(craft\elements\Entry))
#19 C:\wamp64\www\gelsons\vendor\craftcms\cms\src\services\Sections.php(635): craft\services\Sections->_onSaveSingle(Object(craft\models\Section), false, Array)
#20 C:\wamp64\www\gelsons\vendor\craftcms\cms\src\controllers\SectionsController.php(186): craft\services\Sections->saveSection(Object(craft\models\Section))
#21 [internal function]: craft\controllers\SectionsController->actionSaveSection()
#22 C:\wamp64\www\gelsons\vendor\yiisoft\yii2\base\InlineAction.php(57): call_user_func_array(Array, Array)
#23 C:\wamp64\www\gelsons\vendor\yiisoft\yii2\base\Controller.php(157): yii\base\InlineAction->runWithParams(Array)
#24 C:\wamp64\www\gelsons\vendor\craftcms\cms\src\web\Controller.php(104): yii\base\Controller->runAction('save-section', Array)
#25 C:\wamp64\www\gelsons\vendor\yiisoft\yii2\base\Module.php(528): craft\web\Controller->runAction('save-section', Array)
#26 C:\wamp64\www\gelsons\vendor\craftcms\cms\src\web\Application.php(282): yii\base\Module->runAction('sections/save-s...', Array)
#27 C:\wamp64\www\gelsons\vendor\craftcms\cms\src\web\Application.php(542): craft\web\Application->runAction('sections/save-s...', Array)
#28 C:\wamp64\www\gelsons\vendor\craftcms\cms\src\web\Application.php(266): craft\web\Application->_processActionRequest(Object(craft\web\Request))
#29 C:\wamp64\www\gelsons\vendor\yiisoft\yii2\base\Application.php(386): craft\web\Application->handleRequest(Object(craft\web\Request))
#30 C:\wamp64\www\gelsons\web\index.php(21): yii\base\Application->run()
#31 {main}

_Originally posted by @Brian-C-Noble in https://github.com/shennyg/azure-blob-remote-volume/issues/1#issuecomment-495762880_
shennyg commented 5 years ago

@Brian-C-Noble Do you have your Azure environment variables setup?

See: https://github.com/shennyg/azure-blob-remote-volume#setup

briancnoble commented 5 years ago

@shennyg Yes

shennyg commented 5 years ago

@Brian-C-Noble I've updated this to v1 please give that release a try.

briancnoble commented 5 years ago

Will do. Thanks!