Testimonial Block issue
-
The block worked well in Atomic Blocks.
Now an error occurs when an image is inserted, an error is happening in the javascript, I realize this when viewing the console.
The image cannot be inserted into the block.
-
@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.
A suggestion:
If the user does not have these thumbs, the block could generate an output informing the need to have these thumbs.
Thanks.
@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?
The latest version of Atomic Blocks uses the image in the non-thumbnail version.
I tested it here.
But, your plan is ideal. It would work better this way.
- This reply was modified 3 years, 2 months ago by Douglas Ferraz.
@lukecarbis and @johnstonphilip
It’s been 4 months and some plugin updates, but they still haven’t fixed it.
Please, do you have any predictions when this will be fixed?
Thanks.
@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.
@johnstonphilip , Oks. No problems.
Thanks.
- The topic ‘Testimonial Block issue’ is closed to new replies.