-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WP 6.2.2 error #184
Comments
I think I found the same bug. Same versions of PHP and WP. |
PHP: 8.2.0 Same versions of PHP and WP. Running on local machine with azurite blob storage emulator. Fatal error: Uncaught TypeError: array_flip(): Argument #1 ($array) must be of type array. I think it is around $remote_paths = array_flip( $group_contents ); |
If you trace the code back, it was coming from the call Windows_Azure_Helper::wp_upload_dir. For me it turned out to be an authentication issue to the container. There was a misspelling in my account key. |
Describe the bug
Hello, thank you for this awesome plugin, I've found some issues with image uploading with this:
PHP: 8.2
WP: 6.2.2
I'm able to sync previous images with Azure, but can't add more images to Azure when I activate the Azure's plugin.
1172 line is about array_flip, but I'm pretty sure that the error is related with next line where blob returns an error.
I hope you can help me!
Steps to Reproduce
Try to upload a photo to media library. After configuration.
Screenshots, screen recording, code snippet
Stack trace:
#0 /home/ubuntu/environment/project/wp-content/plugins/windows-azure-storage/includes/class-windows-azure-rest-api-client.php(1172): array_flip()
#1 /home/ubuntu/environment/project/wp-content/plugins/windows-azure-storage/includes/class-windows-azure-rest-api-client.php(868): Windows_Azure_Rest_Api_Client->_sanitize_remote_paths()
#2 /home/ubuntu/environment/project/wp-content/plugins/windows-azure-storage/includes/class-windows-azure-helper.php(449): Windows_Azure_Rest_Api_Client->sanitize_blobs_names()
#3 /home/ubuntu/environment/project/wp-content/plugins/windows-azure-storage/windows-azure-storage.php(614): Windows_Azure_Helper::get_unique_blob_name()
#4 /home/ubuntu/environment/project/wp-includes/class-wp-hook.php(308): windows_azure_storage_wp_handle_upload_prefilter()
#5 /home/ubuntu/environment/project/wp-includes/plugin.php(205): WP_Hook->apply_filters()
#6 /home/ubuntu/environment/project/wp-admin/includes/file.php(810): apply_filters()
#7 /home/ubuntu/environment/project/wp-admin/includes/file.php(1082): _wp_handle_upload()
#8 /home/ubuntu/environment/project/wp-admin/includes/media.php(303): wp_handle_upload()
#9 /home/ubuntu/environment/project/wp-admin/includes/ajax-actions.php(2598): media_handle_upload()
#10 /home/ubuntu/environment/project/wp-admin/async-upload.php(33): wp_ajax_upload_attachment()
#11 {main}
thrown in /home/ubuntu/environment/project/wp-content/plugins/windows-azure-storage/includes/class-windows-azure-rest-api-client.php on line 1172
Environment information
PHP: 8.2
WP: 6.2.2
WordPress information
6.2.2
Code of Conduct
The text was updated successfully, but these errors were encountered: