Opened 13 months ago
Closed 8 months ago
#9071 closed defect (bug) (invalid)
avatar image not displayed after translation
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 12.0.0 |
Component: | Members | Keywords: | close |
Cc: |
Description
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?
Attachments (2)
Change History (7)
#2
@
13 months ago
- Keywords close added; needs-testing needs-patch removed
Hi @jnie
Sorry, I can't reproduce, having BuddyPress as the only active plugin. There's only one loading="lazy"
attribute. See below screenshot.
To me that's not a BuddyPress issue.
#3
@
13 months ago
Hi @imath
the error only occurs on my side after translation with the plugin weglot (see attached screenshots).
Is it possible for you to test this on your side with this plugin?
Hi,
Is there any update on this topic?
Thanks in advance for your help.