Quantcast
Channel: Administration - Shopware Community Forum
Viewing all articles
Browse latest Browse all 2333

MediaService: Migration zurück zu "plain"

$
0
0

Ich wollte gerade in unserem Testshop mal den Weg zurück zu "plain" durchspielen wie hier beschreiben:
https://developers.shopware.com/developers-guide/shopware-5-media-service/#example:-migrating-back-to-the-simple-directory-structure

Die config.php hab ich so ergänzt wie beschrieben.
Da muss nichts anderes mehr eingetragen werden in dem Code, oder?

),

'cdn' => [
    'adapters' => [
        'local' => [
            'type' => 'local',
            'mediaUrl' => '',
            'strategy' => 'plain',
            'path' => realpath(__DIR__ . '/')
        ],
        'old_local' => [
            'type' => 'local',
            'mediaUrl' => '',
            'path' => realpath(__DIR__ . '/')
        ]
    ]
]

);

Nach der Ausführung von 

bin/console sw:media:migrate --from=old_local --to=local

erhalte ich eine Fehlermeldung:

PHP Notice:  Undefined index: permissions in /.../engine/Shopware/Bundle/MediaBundle/Adapters/LocalAdapterFactory.php on line 40
PHP Fatal error:  Uncaught TypeError: Argument 4 passed to League\Flysystem\Adapter\Local::__construct() must be of the type array, null given, called in /.../engine/Shopware/Bundle/MediaBundle/Adapters/LocalAdapterFactory.php on line 40 and defined in /.../vendor/league/flysystem/src/Adapter/Local.php:71
Stack trace:
#0 /.../engine/Shopware/Bundle/MediaBundle/Adapters/LocalAdapterFactory.php(40): League\Flysystem\Adapter\Local->__construct('/var/www/client...', 2, 2, NULL)
#1 /.../engine/Shopware/Bundle/MediaBundle/MediaServiceFactory.php(122): Shopware\Bundle\MediaBundle\Adapters\LocalAdapterFactory->create(Array)
#2 /.../engine/Shopware/Bundle/MediaBundle/MediaServiceFactory.php(81): Shopware\Bundle\MediaBundle\MediaServiceFactory->getAdapter(Array)
#3 /.../engine/Shopware/Bundle/MediaBundle/Commands/ImageMigrateCommand.php in /.../vendor/league/flysystem/src/Adapter/Local.php on line 71

Hab ich irgendwas übersehen, weshalb das nicht funktioniert?
Shopversion 5.2.12


Viewing all articles
Browse latest Browse all 2333

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>