• lloydhaneman

    (@lloydhaneman)


    I’ve got a multi-site environment and I’m trying to migrate an existing WP site to.

    After the site is imported successfully (with --skip=image_resize specified), I’m trying to run the following command to resize images in the new site.

    wp media regenerate --url=<the url> --allow-root --user=<the user> --only-missing --yes

    It runs, and says it was successful. However, no new images are saved in the Azure storage container.

    I am confident the plugin is installed correctly because I can upload new images from the UI (Media Library) and images are uploaded to the storage container correctly (and the other image sizes are created as well). I also have made sure to check the box to upload all new media to the storage container in the plugin settings.

    Is there anything else I need to do to get the regenerate command to upload new images to Azure?

Viewing 1 replies (of 1 total)
  • Thread Starter lloydhaneman

    (@lloydhaneman)

    Update to include more info:

    if I include --debug in the command, this is what I see.

    Found 1 image to regenerate.
    Notice: Undefined index: name in /home/site/wwwroot/wp-content/plugins/windows-azure-storage/windows-azure-storage.php on line 394
    Notice: Undefined index: _wpnonce in /home/site/wwwroot/wp-content/plugins/windows-azure-storage/windows-azure-storage.php on line 394
    1/1 Regenerated thumbnails for "test-image" (ID <the id>).
    Success: Regenerated 1 of 1 images.

    So, it appears to not be able to locate the post name and _wpnonce.

Viewing 1 replies (of 1 total)
  • The topic ‘`wp media regenerate` command not saving to storage container’ is closed to new replies.