Support » Plugin: Microsoft Azure Storage for WordPress » File URL being changed when uploaded

  • Hi there, when uploading a file to the media library, the file name is being changed from 21-02-Tree-Trimming-Service.pdf to -6102fa56bd98a–6102fa56bd98b21-02-Tree-Trimming-Service.pdf.pdf and the file isn’t making it up to the Azure storage.

    Everything was working as expected for several months. No plugins have been updated. The only thing that’s changed is keeping the WordPress version up to date.

    If I disable this plugin, the file is loaded up into the media library correctly – no weird numbers or duplicated file extension added to the file URL.

    Any ideas what’s going on?

Viewing 15 replies - 1 through 15 (of 15 total)
  • Plugin Support Tung Du

    (@dinhtungdu)

    @brianyerkes Can you check if you can connect/authorize the Azure connection? Also, can you also verify if you have space left in your plan?

    I can’t reproduce your issue on my end running WP 5.8 and Microsoft Azure Storage 4.3.2.

    Thread Starter brianWP

    (@brianyerkes)

    Thanks for your response. I don’t see any way to test the Azure connection – can you let me know if that’s something I’m not seeing in the plugin or some other way to test that?

    Also, regarding space left on the plan, the limit on storage per account is roughy 550 TB, and we definitely haven’t even hit 1GB probably.

    Plugin Support Tung Du

    (@dinhtungdu)

    @brianyerkes If you use the wrong credential, you’ll see nothing in the Default Storage Container. If the credential is correct, you will see your container(s) name there.

    • This reply was modified 5 months, 2 weeks ago by Tung Du.
    Thread Starter brianWP

    (@brianyerkes)

    I see the container that we’ve successfully set in the field. I’m at a loss now as to what it could be causing this issue.

    Plugin Support Tung Du

    (@dinhtungdu)

    @brianyerkes Can you please share your Azure plugin settings (please hide/remove the credential)? Also, can you please share the list of plugins you’re using? You can grab that info via Tools > Site Health.

    Thread Starter brianWP

    (@brianyerkes)

    Watching as I’m having the same issue with the file name changing on upload. Using Microsoft Azure Storage for WordPress version 4.3.2 and WP version 5.8. Mine is making it to Azure storage but name is being modified with additional prefix/suffix. Ex: tools1.jpg turns into 61117adf26cd7-61117adf26cd9tools1.jpg.jpg or 61117adf26cd7-61117adf26cd9tools1.jpg-150×150.jpg for thumbnail.

    Thread Starter brianWP

    (@brianyerkes)

    @kcb2 Can you share your plugin list so that we can try and compare if it’s a compatibility issue?

    Sure. Here you go. Thanks.
    Advanced Custom Fields
    Advanced Search Options
    Content Views
    Custom Post Type UI
    Easy WP SMTP
    eForm – WordPress Form Builder
    Elementor
    Elementor Pro
    GP Premium
    Leaflet Map
    Members
    Microsoft Azure Storage for WordPress
    Premium Addons for Elementor
    Visualizer: Tables and Charts for WordPress
    Visualizer: Tables and Charts Manager for WordPress AddOn
    Wordfence Security
    WP External Links
    WP Rocket
    WP-Cron Status Checker

    Plugin Support Tung Du

    (@dinhtungdu)

    @brianyerkes can you please try deactivating Smush Pro and try uploading again to see if it fixes your issue?

    Thread Starter brianWP

    (@brianyerkes)

    @dinhtungdu Did that and same issue. With debug on, the following error displays when uploading a file:

    Warning: array_flip() expects parameter 1 to be array, object given in /home/site/wwwroot/wp-content/plugins/windows-azure-storage/includes/class-windows-azure-rest-api-client.php on line 1172
    
    Warning: array_flip() expects parameter 1 to be array, object given in /home/site/wwwroot/wp-content/plugins/windows-azure-storage/includes/class-windows-azure-rest-api-client.php on line 1172
    
    Warning: array_flip() expects parameter 1 to be array, object given in /home/site/wwwroot/wp-content/plugins/windows-azure-storage/includes/class-windows-azure-rest-api-client.php on line 1172
    
    Warning: array_flip() expects parameter 1 to be array, object given in /home/site/wwwroot/wp-content/plugins/windows-azure-storage/includes/class-windows-azure-rest-api-client.php on line 1172
    3538
    Plugin Support Tung Du

    (@dinhtungdu)

    @brianyerkes thanks, that debug info is very helpful.

    Thread Starter brianWP

    (@brianyerkes)

    I just found this discussion – same issue in Sept 2020 – https://github.com/10up/windows-azure-storage/issues/125

    “…so basically we need to have a shared filesystem between servers, and wp-uploads should be added to the shared filesystem for the upload to work properly?”. I’ll have to check with my developer to see if this is already in place or not.

    Thread Starter brianWP

    (@brianyerkes)

    We’re correctly using App Service so the server-level storage solution is a network share….so that discussion on the github page doesn’t seem to apply here.

    Thread Starter brianWP

    (@brianyerkes)

    We discovered the issue. We originally had to hard code government endpoints into the plugin to get it working for our client. When the plugin was updated, we lost those endpoints of course. I recommend a feature for future plugin versions to include both a confirmation that the connection is active/successful, and also the ability to have these endpoints in the settings rather than having to hard code.

    Thanks for your time while we diagnosed this issue, hopefully this thread will help anyone with a government client facing this same issue someday.

Viewing 15 replies - 1 through 15 (of 15 total)
  • You must be logged in to reply to this topic.