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

Issue creating new asset volume. Error undefined index:settings #1

Closed MarcoWilliamsPF closed 5 years ago

MarcoWilliamsPF commented 5 years ago

Copy Stacktrace Search Stackoverflow Search Google Error PHP Notice – yii\base\ErrorException

Undefined index: settings

  1. in /Users/marco/Projects/Moorage/Website/vendor/craftcms/cms/src/services/Volumes.php at line 363 354355356357358359360361362363364365366367368369370371372 $volumeRecord = $this->_getVolumeRecord($volumeUid, true); $isNewVolume = $volumeRecord->getIsNewRecord();

        $volumeRecord->name = $data['name'];
        $volumeRecord->handle = $data['handle'];
        $volumeRecord->type = $data['type'];
        $volumeRecord->hasUrls = $data['hasUrls'];
        $volumeRecord->sortOrder = $data['sortOrder'];
        $volumeRecord->url = !empty($data['url']) ? $data['url'] : null;
        $volumeRecord->settings = $data['settings'];
        $volumeRecord->uid = $volumeUid;
    
        if (!empty($data['fieldLayouts'])) {
            // Save the field layout
            $layout = FieldLayout::createFromConfig(reset($data['fieldLayouts']));
            $layout->id = $volumeRecord->fieldLayoutId;
            $layout->type = Asset::class;
            $layout->uid = key($data['fieldLayouts']);
            Craft::$app->getFields()->saveLayout($layout);
  2. in /Users/marco/Projects/Moorage/Website/vendor/craftcms/cms/src/web/ErrorHandler.php at line 81 – yii\base\ErrorHandler::handleError(8, 'Undefined index: settings', '/Users/marco/Projects/Moorage/We...', 363)