This image has an empty alt attribute – Yet again
-
Hi. There are serveal threads on the block editor showing an error message “This image has an empty alt attribute” when uploading an image, plus the image not being displayed in the published post/page.
https://www.ads-software.com/support/topic/this-image-has-an-empty-alt-attribute-5-0-3/
https://www.ads-software.com/support/topic/empty-alt-attribute-2/
https://www.ads-software.com/support/topic/this-image-has-an-empty-alt-attribute/
https://www.ads-software.com/support/topic/this-image-has-an-empty-alt-attribute-2/
https://www.ads-software.com/support/topic/this-image-has-an-empty-alt-attribute-5-0-3/Unfortunately none of these threads offer actual answers to the cause of this problem or reliable advice on how to circumvent the issue (e.g. switching from day-name based permalinks to numeric permalinks didn’t change anything for me). So here I am asking again ??
I’d like to add some additional findings though. Say I have two images,
fine.jpg
which is working fine andempty.jpg
for which the error message shows.* in the directory
wp-content/uploads/<year>/<month>
, I can see bothfine.jpg
andempty.jpg
along with a view thumbnails{fine, empty}-XxY.jpg
* forempty-scaled.jpg
, there is an additionalempty-scaled.jpg
, which doesn’t show forfine.jpg
* accessingdomain.tld/wp-content/uploads/year/month/fine.jpg
ordomain.tld/wp-content/uploads/year/month/fine-XxY.jpg
works fine. However,…/empty.jpg
or…/empty-XxY.jpg
gives 404. Only…/empty-scaled.jpg
is accessible.
* when editing the image block as HTML, I can see that WP insertedempty-XxY.jpg
as URL. When I change that toempty-scaled.jpg
, the image shows just fine. This is btw also the URL that the media overview provides for “copy URL”.I’d be very glad for any advice how to properly fix this issue or where else to ask for support. If I there some error/log outputs provided by wordpress that I could provide for additional information, I’m of course also glad for pointers on where to find those.
Cheers!
The page I need help with: [log in to see the link]
- The topic ‘This image has an empty alt attribute – Yet again’ is closed to new replies.