We used WordPress on App Service to build an external public site.
I’m utilizing the Azure Storage plugin to keep images in Azure Storage.
■ What I’m having trouble with right now
If there is a string containing “/wp-content/uploads/” in the posted article, it will be automatically rewritten to StorageURL.
I’m very troubled because if the string in the posted article is automatically rewritten, it won’t be the correct link.
I would like to know how to avoid this phenomenon.
Sites upgrading to version 4.5.0 are breaking weirdly.
The main image URL gets a duplicated storage account name in the URL, and creates a 404 error on the front end.
For example, on a Woocommerce product single page, the main image is broken, with the URL showing like domain.com/images/images/image.jpg instead of domain.com/images/image.jpg
The weird thing is that the woocommerce image gallery thumbnail images for the same product show correctly, it’s just the main feature image that has this glitch.
Rolling back to 4.4.2 resolves the issue. Needs to be addressed ASAP.
]]>Hi,
After updating the plugin, all pictures became unavalile and like on this page:
For some reason, it duplicated the storage container in the photo URL: https://cdn.besdima.dev/besdimadev/besdimadev/2021/09/Photo2.jpg
Where it should be https://cdn.besdima.dev/besdimadev/2021/09/Photo2.jpg
Hi,
I am using Microsoft Azure Storage for WordPress plugin for storing images into CDN. Suddenly for some user, while uploading the image they are facing error as “Uploaded file could not be moved to wp-content/uploads/2024/06”.. But some user can able to upload the image successfully into CDN.
WordPress version -6.2.2, Php version – 8.0, Microsoft Azure Storage for WordPress – 4.3.4
Kindly help on this issue.
Thanks
]]>Hello, can this plugin be configured to use an Azure managed identity?
]]>azure private blob storage container which contains the image can this be visible through a website ( through server only ) can this be done on the paid version of your plugin.
]]>I setup WordPress webapp on Azure with their container based deployment option.
And installed this pulgin and it works fine to upload media files.
however I observed error when upload image with same file name.
Fyi: WordPress is the latest version as of now.
We have a site that has been moved to php 8.1 on nginx that uses the plugin, we have found that when image are uploaded to the media library only the original image size is uploaded to azure, the plugin is not generating and uploading the other image sizes (Thumbnail or example). When I disable the plugin the image sizes arecreated. This used to work on php 7* and apache. Any help would be most welcome
]]>We are using Astra free theme and trying to edit the images of the starter template with the Microsoft Azure Storage plugin activated. But when we try editing the images, it throws up an error message, and all images of the starter template disappear. However, on deactivating the storage plugin, we are able to edit the images. What is the reason for this. Is there any setting which bars images from the cloud storage for editing.
]]>I moved a site to a new server and now the contents from the old/existing container isn’t showing. New uploads are however showing up. Is there a way to sync the existing contents to the wp media library?
]]>Hello, i’m using this great plugin on WP multisite with more than 50 networks and its working very fine.
my database overall is very big and its almost related to the posts table.
but i have noticed that in the xxx_postmeta?table of each network i have a lot of records windows_azure_storage_info
SELECT meta_key, (SUM(LENGTH(meta_id)+LENGTH(post_id)+LENGTH(meta_key)+LENGTH(meta_value)))/1048576 AS
Size
, COUNT(*) ASCount
FROM xxx_11_postmeta
GROUP BYmeta_key
ORDER BYSize
DESC;
i need your help becuase i want to know if i can delete them or somehow optimize them.
Thanks
]]>Hi there. I was using the plugin facing some difficulties.
I defined the constant in wp-config.php before uploading the plugin files into wp-content/plugins folder. Then I activated the plugin in the WP plugins page and checked the constants were set and correct in the setting page. However, when I tried to upload files through media “add new”, it would not upload to Azure storage account.
Then I tried to remove the constant and re-entered the values in setting page directly. The files could be uploaded to Azure normally.
I am hosting some websites and want to maintain the constant in wp-config.php instead of entering directly in setting page. Is there any sequence involved?
]]>A couple image urls are broken on my site. The image in the header and the placeholder WooCommerce images on the shop page. It looks like the main src image is alright, but the generated thumbnail images have an extra slash in them. I have done a couple search and replaces and can’t get them to go away.
]]>Hi Team,
Issues found on Microsoft Azure Plugin
Please let me know ASAP
Thank you
]]>
Hi Team,
I am connecting an Azure Storage account to WordPress using the Microsoft Azure Storage for WordPress plugin but when I add storage details and save it shows fatal error
Please check the the SS( https://snipboard.io/Ux57XR.jpg ) and following error
Fatal error: Uncaught TypeError: Return value of Windows_Azure_Generic_List_Response::current() must be an instance of mixed, array returned in C:\wamp64\www\demo\wp-content\plugins\windows-azure-storage\includes\class-windows-azure-generic-list-response.php on line?147
TypeError: Return value of Windows_Azure_Generic_List_Response::current() must be an instance of mixed, array returned in C:\wamp64\www\demo\wp-content\plugins\windows-azure-storage\includes\class-windows-azure-generic-list-response.php on line?147
Please let me know how to resolve
Thank you
]]>I installed a theme on a fresh site then connected an EXISTING container from my clients live site. I am able to upload new images to this container, but none of the existing images that are already in the container are showing up in the media library. Only images from the theme’s dummy data are showing up (and any new images I upload.) How can I get my hundreds of images to show up in the media library? Thank you!
]]>Dear Support Team,
I am writing to you regarding an issue with the Microsoft Azure Storage for WordPress plugin. I am currently using the plugin to store my website’s images on Azure Storage. However, I need to change the storage URL from “https://apovoiceprodstorage.blob.core.windows.net/” to “https://apovoiceprodstorage.pg.com/“.
I have already updated the CNAME in the plugin settings, but the images still have the old URL. I have also tried updating the URLs in the WordPress database, but the issue persists.
I suspect that the issue may be due to my Azure Storage account firewall settings, which are currently set to “Enabled from selected virtual networks and IP addresses”. I have added the outgoing IP addresses from my server to the list, but the problem still persists.
I would appreciate your assistance in resolving this issue as soon as possible. Please let me know if there are any additional steps I can take or if you require any further information.
Thank you for your help.
Best regards,
Niko
Hi Team,
The plugin has stopped loading past the containers and the container dropdown in blank.
We recently started seeing the following issue in the error_log of the wp-admin folder.
[21-Feb-2023 11:52:36 UTC] PHP Fatal error:? Uncaught TypeError: Return value of Windows_Azure_Generic_List_Response::current() must be an instance of mixed, array returned in /home/xyz/public_html/wp-content/plugins/windows-azure-storage/includes/class-windows-azure-generic-list-response.php:145
Stack trace:
#0 /home/xyz/public_html/wp-content/plugins/windows-azure-storage/windows-azure-storage-settings.php(294): Windows_Azure_Generic_List_Response->current()
#1 /home/xyz/public_html/wp-admin/includes/template.php(1785): windows_azure_storage_setting_storage_container(Array)
#2 /home/xyz/public_html/wp-admin/includes/template.php(1739): do_settings_fields(‘windows-azure-s…’, ‘windows-azure-s…’)
#3 /home/xyz/public_html/wp-content/plugins/windows-azure-storage/windows-azure-storage-settings.php(87): do_settings_sections(‘windows-azure-s…’)
#4 /home/xyz/public_html/wp-includes/class-wp-hook.php(308): windows_azure_storage_plugin_options_page(”)
#5 /home/xyz/public_html/wp-includes/class-wp-hook.php(332): WP_Hook- in /home/xyz/public_html/wp-content/plugins/windows-azure-storage/includes/class-windows-azure-generic-list-response.php on line 145
We believe the error started a few months ago, but haven’t been able to work out exactly when.
WordPress is 6.11
PHP is 7.4
Plugin is 4.3.4
If anyone has seen it and know’s how to rectify please let me know.
Thanks!
]]>We’ve been using this plugin for years with our cdn, suddenly now it isn’t finding the list of containers we have. The drop down is blank and when you click the down arrow nothing happens. You can’t click save after you’ve done so once (button is gone) and s you essentially can’t remove/edit/change any of the content you’ve saved.
]]>I am new to using Azure and would like to use your plugin to back it up to Azure, but I am not sure what commands to use for the creation of the storage account using CLI, could you please help?
Thanks
]]>Hi,
How do I push the pdf files on in the media. I have all the images there from regenerating the thumbnails but that doesn’t include non image files.
]]>Hi there!
Before you create your own thread on these forums, please note that the Microsoft Azure Storage for WordPress plugin is marked as Stable support:
10up is not planning to develop any new features for this, but will still respond to bug reports and security concerns. We welcome PRs, but any that include new features should be small and easy to integrate and should not include breaking changes. We otherwise intend to keep this tested up to the most recent version of WordPress.
Given the above support note, we do not intend to be regularly active on these support forums and will instead keep a closer eye on bugs or security reports within the GitHub repository. Even with the Microsoft Azure Storage for WordPress plugin being under Stable support, there are several ways in you can find the answers to your questions:
Thanks,
Team 10up.
Hi,
Firstly, I will start by saying – excellent plugin! Invaluable for my sites.
I have recently installed this plugin on a multi site instance with a custom theme including pre defined Azure storage options within the theme.
All good and working fine, however when trying to view images on the front end they were not loading.
Upon further investigation I noted images srcset
attributes were not linking to my custom CNAME but instead to “.blob.core.windows.net
” (which obviously was not resolving) despite this attribute being set using define
within my theme functions.php
.
Further digging got me to the windows_azure_storage_wp_calculate_image_srcset
function where I was able to track down the issue, that being the use of WindowsAzureStorageUtil::get_storage_url_base( false )
when setting $base_url
.
After some more time I realized the MICROSOFT_AZURE_CNAME
defined constant was not available within that function, which led me to add it into wp-config.php
and voila – it worked!
I am guessing this “issue” is caused by namespaces for defined constants in WordPress themes?
Can any modifications be made to support using define( 'MICROSOFT_AZURE_CNAME','')
within the theme files vs wp-config.php
?
Should be noted all other functionality worked perfectly with it defined in the theme, e.g CNAME showed correctly in WP admin and the img
src
attribute was set correctly.
Thanks.
Mike
]]>I’m testing this plugin out for a client as it’s the only one that seems to be available. Is the correct functionality that you cannot scroll through the media? There’s no way to filter or anything either when I click on “Browse Azure Storage” – just trying to see if this is how the plugin actually functions.
See link for screenshot of what I’m seeing on the backend: https://nwrdc.wpengine.com/wp-content/uploads/2022/07/Screen-Shot-2022-07-22-at-10.57.37-AM.png
Also, when I select a file, and click “insert media” button, it doesn’t actually insert. Nothing happens at all.
Thanks!
]]>Hello everyone,
I have a WordPress container on Azure. I am using a storage account for the persistent data. It is working very well in the dev environment. What am I trying to do? I’m trying to create a new environment with the exact same source/database. Everything is working but the storage account plugin. I have all my assets in the new storage account. I uploaded my files via Storage Account Explorer. I can see the storage account’s configuration in the control panel but medias page creating File URLs with WordPress uploads folder. I can access my medias via Azure Storage Account URL.
How can I replace my media URLs with Azure Storage Account URL?
Thanks.
]]>When you delete a file and upload a new version but with the same name, it pulls the old version. Is this just a cache issue?
]]>Is the Microsoft Azure Storage for WordPress still be maintained and supported? If so, are there plans to continue to maintain and support it?
]]>In the description of the plugin, is the following text:
STORAGE ACCOUNT VERSIONS
Storage accounts can be created via CLI, classic Azure portal, or the new Azure portal,
with varying results.If a Storage account is created with the new Azure portal, authentication will fail,
resulting in the inability to view/add containers or files. Creating a Storage account
with the Azure CLI should allow the plugin to work with new Storage accounts.
Is this still the case? What is this referring to, exactly? Which CLI version should I use? Is there even still a classic Azure portal that can be used?
]]>Hello, I have a new WordPress instance and I copied over my old database.
I am now storing my images in a new Azure storage instance and new URL.
When I open up the media gallery and go to one of my older images, it has the older Azure storage file path associated with it.
How can I update that to the new URL? I tried updating a couple of tales but it did not work.
UPDATE wp_posts SET guid = replace(guid, ‘https://prodmediacdn.blob.core.windows.net’,’https://office-insider-media.azurefd.net’) WHERE ID IN (3281)
UPDATE wp_postmeta SET meta_value = replace(meta_value, ‘https://prodmediacdn.blob.core.windows.net’,’https://office-insider-media.azurefd.net’) WHERE meta_id IN (15631,15633)
]]>Hi All,
We started using the plugin and after getting through the first few hurdles we’ve managed to get our site to use images hosted on our Azure Container, however, we’re seeing issues namely, ERR_CERT_COMMON_NAME_INVALID – because we are using a custom CNAME to point to the container, and the certificate is for the *.blob.core.windows.net domain?
It’s trying to load the images(we can see them in the IMG tag’s), but because of the certificate error none of the images are actually loading.
Can anyone provide any insight around this?
Any help is much appreciated.
Thanks!
]]>