• 2018-12-21

    Hi,

    I’m setting up a new WordPress 5.0.2 site on an Ubunto 18.04 Linux VM hosted in Microsoft Azure. I have installed the “Microsoft Azure Storage for WordPress” plugin and successfully connected it to a BLOB in my Azure Storage Account. Now when I upload images into the WP Media Library the images are uploaded into the BLOB, as expected. After upload, the images can be accessed directly via their CNAME URL.

    So far, so good.

    The problem occurs when I try to use one of those images as the Theme Logo. I have the standard WordPress “Twenty Sixteen” theme activated, and when I choose…

    Appearance -> Themes -> Customise -> Site Identity -> Select Logo

    … I can view the images stored in the Blob from within the “Select Logo” dialog. But when I select the image I wish to use I am taken to a “Crop Image” dialog. I expand the crop rectangle to cover the whole image (since I don’t want it to be cropped) and then click on the “Crop Image” button. At this point I receive the error message…

    “There has been an error cropping your image”.

    Note that I can successfully insert the same image into a post using the ‘Add Media’ button of the post editor. Obviously this is a read-only operation, whereas I assume that the crop process described above is either trying to re-write the original image back to the BLOB or else write a new copy of it to the BLOB. But the BLOB must be writeable at some level (see ** below), because WordPress (via the plugin) managed to upload the images in the first place.

    Note also that if I upload the image to the Media Library without the “Microsoft Azure Storage for WordPress” plugin installed, such that the image is uploaded to the local disk on the Virtual Machine (i.e. the …/wp-content/uploads/… path), then I can successfully add the image as the theme logo via the above process without receiving the above error, So I conclude that the issue is caused by the plugin and/or my BLOB configuration.

    Any suggestions / explanations / solutions would be very much appreciated.

    Many thanks

    System Details:
    ===============
    Host: Ubuntu Linux 18.04
    PHP: 7.2
    Database: MariaDB
    WordPress: 5.0.2–en_GB
    Theme: Twenty Sixteen by WordPress Team
    Microsoft Azure Storage for WordPress plugin: Version 4.1.1
    ** BLOB Access Level: “Anonymous Read Access for Blobs Only”

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Error: There has been an error cropping your image.’ is closed to new replies.