Skip to content
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

Direct upload to Google Cloud storage returns error at ilab-media-direct-upload.js?ver=4.2.37:14 #161

Open
tlimited opened this issue Aug 3, 2021 · 0 comments

Comments

@tlimited
Copy link

tlimited commented Aug 3, 2021

Firstly, the /wp-admin/media-new.php DOES work, the "normal" upload does not.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '/wp-admin/upload.php' and have devtools console open
  2. Drag in and upload a jpeg image
  3. Everything looks fine and console tells that uploading and resizing is happening
  4. Console.log says "Upload finished"
  5. Console error on doUploadFinished: function(e, t, r, i):
ilab-media-direct-upload.js?ver=4.2.37:formatted:7132 Uncaught TypeError: Cannot read property 'id' of null
    at n.<anonymous> (ilab-media-direct-upload.js?ver=4.2.37:formatted:7132)
    at c (load-scripts.php?c=1&load[chunk_0]=jquery-core,jquery-migrate,utils,regenerator-runtime,wp-polyfill,wp-hooks&ver=5.8:2)
    at Object.fireWith [as resolveWith] (load-scripts.php?c=1&load[chunk_0]=jquery-core,jquery-migrate,utils,regenerator-runtime,wp-polyfill,wp-hooks&ver=5.8:2)
    at l (load-scripts.php?c=1&load[chunk_0]=jquery-core,jquery-migrate,utils,regenerator-runtime,wp-polyfill,wp-hooks&ver=5.8:2)
    at XMLHttpRequest.<anonymous> (load-scripts.php?c=1&load[chunk_0]=jquery-core,jquery-migrate,utils,regenerator-runtime,wp-polyfill,wp-hooks&ver=5.8:2)
  1. Script is stopped, the media has been uploaded to Cloud storage but is not available in WP media library.

Expected behavior
No error and that the media is available in the WP Media library.

Screenshots
If applicable, add screenshots to help explain your problem.

Server (please complete the following information)

  • Operating System
  • PHP Version
  • Web Server
  • Using PHP-FPM?
  • Using WordPress Cron?

How did you install the plugin?
Did you install via composer, a git checkout, wordpress.org, freemius?

Additional context
Add any other context about the problem here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant