Comments (3)
I think I found the same bug. Same versions of PHP and WP.
I am not sure as I can't find a way to get to the stack trace in the logs, but still the plugin is not uploading pictures to the storage.
from windows-azure-storage.
PHP: 8.2.0
WP: 6.2.2
Same versions of PHP and WP. Running on local machine with azurite blob storage emulator.
Found the same issue.
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 );
When I add condition to ignore that, the file seems successfully uploaded on the UI(because the url is generated on Media Library) but it never reached to blob storage and the filenames added randomly.
For example:
-64d0a85ca3319–64d0a85ca331flogo.png
URL : http://127.0.0.1:10000/devstoreaccount1/content/2023/08/:64d0a85ca3319-64d0a85ca331flogo.png.png
from windows-azure-storage.
if ( is_wp_error($group_contents) ){ echo $group_contents->get_error_message(); die; }
I added this above line 1172 in order to see what was causing this issue for me and got a result of forbidden.
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.
from windows-azure-storage.
Related Issues (20)
- Retirement notice: The Azure Storage PHP client libraries will be retired on 17 March 2024
- Release version 4.4.0
- Update Azure Blob API to latest version
- The plugin hasn't been tested with an upcoming version of WordPress HOT 1
- Incorrect Content-Type being applied to uploaded files in v 4.4.0 HOT 3
- Release version 4.4.1
- The plugin hasn't been tested with an upcoming version of WordPress HOT 1
- Critical Flow Documentation - Microsoft Azure Storage for WordPress HOT 2
- Uncheck "Keep local files" is not working HOT 1
- storing file under blob container /wp-content/uploads/{yyyymm} folder HOT 1
- Uploading to Azure fails after second image HOT 6
- Release version 4.4.2 HOT 1
- Latest releases not creating image sizes HOT 11
- The plugin hasn't been tested with an upcoming version of WordPress HOT 1
- "Browse Azure storage" isn't working properly
- Release version 4.5.0
- Custom CNAME container name dublication in URL HOT 3
- Duplicating container directory in image address URL
- Question about image building URL
- Release version 4.5.1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from windows-azure-storage.