[buddypress-trac] [BuddyPress Trac] #9071: avatar image not displayed after translation
buddypress-trac
noreply at wordpress.org
Tue Jan 16 08:30:42 UTC 2024
#9071: avatar image not displayed after translation
--------------------------+---------------------------------------
Reporter: jnie | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Members | Version: 12.0.0
Severity: normal | Keywords: needs-testing needs-patch
--------------------------+---------------------------------------
Hi,
I have the issue that the avatar images of users (Who's online widget and
Log in Widget) are not displayed when my site is translated.
I've already consulted the developers of my theme (woffice) and of the
translation plugin (weglot). They told me that the avatar images are not
rendered when viewing the site in the translated language. The developers
of weglot also told me that in the source code of my site after
translation the images have the "lazy" attribute twice. The browser shows
an error message "duplicate attribute" as this is a syntax error in HTML.
They said that when weglot parses the page, it doesn't know how to
interpret these duplicated attributes, and the formatting breaks, which
prevents the images from being shown.
The source codes of both widgets show that after translating my site there
is a duplication of lazy attributes (loading="lazy" and "lazy"src="...").
I tried to embed a code which removes the attribut loading="lazy" but
unfortunately the issue remains. So the cause is the attribut
"lazy"src="...", which only occurs in the code of the translated page. As
a test I removed this attribut from my source code using the browser
inspector so that only src="..." remains. As a result the avatar image is
indeed displayed normally then.
I've already cleared all my cache, deactivated my plugins and so on but
nothing helped.
Do you have an idea how to prevent this lazy attribut from appearing when
the site gets translated?
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/9071>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list