@douglasferraz89 I just tested this and was unable to reproduce the problem. The image inserted fine for me. Could you post the console error?
blocks.build.js?ver=1612215606:308 Uncaught TypeError: Cannot read property 'url' of undefined at onSelect (blocks.build.js?ver=1612215606:308) at n.value (media-utils.min.js?ver=e604b5a9da1f2272b4e49964c2bec65b:2) at p (backbone.min.js?ver=1.4.0:2) at f (backbone.min.js?ver=1.4.0:2) at l (backbone.min.js?ver=1.4.0:2) at h.Collection.n.trigger (backbone.min.js?ver=1.4.0:2) at h.Collection._onModelEvent (backbone.min.js?ver=1.4.0:2) at p (backbone.min.js?ver=1.4.0:2) at f (backbone.min.js?ver=1.4.0:2) at l (backbone.min.js?ver=1.4.0:2)
That error. Therefore, I cannot insert the image. The problem happens without using other plugins and in the templates of the Twenty family.
I am referring to this block.
Based on the error message, it looks like it could be caused by a few things. Is it happening with any image at all, or only a specific image that this happens with?
This happens with any image.
I am replicating this. It looks like it happens if there’s no thumbnail version of the image chosen. WordPress normally generates a smaller thumbnail version of each image, but sometimes it will not (depending on a few factors), and that’s when this error happens. We’ll get this fixed in the next update.
Thanks for the notice about the error!
In the meantime, it might be worth uploading a larger version of the image in question, to see if WordPress will generate a “thumbnail” version of it for you.
This could also happen if your server doesn’t have the image-resizing functions enabled in PHP. For that, there’s no temporary fix and you’d have to wait for the next update.
I was not allowing the creation of standard WordPress thumbnails. In the media settings I set everything to 0 x 0.
I set values and regenerated thumbnails. The testimonial block uses these thumbs. And now it worked correctly.
If the user does not have these thumbs, the block could generate an output informing the need to have these thumbs.
@douglasferraz89 Great suggestion. Though I think what we plan to do is fall-back to the non-thumbnail version if the thumbnail doesn’t exist. Thoughts?
@douglasferraz89 The fix for this has been more difficult to completely nail down than it first seemed. However it is still on our list and we have code being actively written for it.
- The topic ‘Testimonial Block issue’ is closed to new replies.