Updates to Gallery block not saved because of - 400 failed to load resource error - if more than 100 images are in gallery #46088
Labels
[Block] Gallery
Affects the Gallery Block - used to display groups of images
[Type] Bug
An existing feature does not function as intended
If over 100 images are added to a Gallery block the "Image Size" setting never finishes loading ( the loading indicator spins indefinately and reads "Loading options...".
DevTools console shows the following error:
"Failed to load resource: the server responded with a status of 400 ()"
{"code":"rest_invalid_param","message":"Invalid parameter(s): per_page","data":{"status":400,"params":{"per_page":"per_page must be between 1 (inclusive) and 100 (inclusive)"},"details":{"per_page":{"code":"rest_out_of_bounds","message":"per_page must be between 1 (inclusive) and 100 (inclusive)","data":null}}}}
If a change is made to the "Link To" setting for the gallery this update is not saved. For example if "Link To" is updated to "Media File" images are not linked to their media file.
The error goes away and the "Image Size" setting finishes spinning and loads if there are 100 or fewer images in the gallery but just clicking update to apply the "LInk To" setting doesn't work. You first must change it to something else such as "Attachment Page" and then change it back to "Media File" and click update and then the Media file links get applied to all images.
The text was updated successfully, but these errors were encountered: