GithubHelp home page GithubHelp logo

Comments (3)

andreadistefano avatar andreadistefano commented on August 17, 2024

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.

mayendrams avatar mayendrams commented on August 17, 2024

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.

jhessfaith avatar jhessfaith commented on August 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.