-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Image Upload - Invalid JSON warning #16372
Comments
I was able to reproduce the same behavior. I uploaded 44 images into a gallery block and it did NOT generate an error, but when I uploaded 45 images into a gallery block (the same images +1) I DID get the same error. OS: macOS Mojave |
Looks like it might be related to: #10251 |
I'm able to reproduce this in certain conditions and I think the cause of this is the total size (in megabytes) of the images being uploaded, not the number of them. Based of #25940 as of commit c9b9aa2 Was successful to: Received this error with: My |
On WP 5.8 and Gutenberg 11.4, and with the gallery block refactor merged, and the related upload issue fixed I was not able to replicate this with the gallery refactor experiment enabled, or with it disabled and using the old gallery block format. I uploaded 60 images, including some that were bigger than max upload size, so closing this issue for now. Feel free to open again if you can still replicate with the gallery block experiment enabled. |
Describe the bug
While uploading a bunch of images–42 to be exact, most of them using the gallery block and a few with the image block, I started getting red notices on the gallery blocks as shown in the gifs below. Now, despite the red notices, only 5 images out of the last gallery weren't uploaded: all other 37 images were correctly uploaded the first time. However, the last gallery hung up and had to reload the page to upload those 5 images again.
To reproduce
Steps to reproduce the behavior:
Expected behavior
Images to be uploaded correctly.
Screenshots


Desktop (please complete the following information):
Additional context
The text was updated successfully, but these errors were encountered: