Skip to:
Content

BuddyPress.org

Opened 13 months ago

Closed 8 months ago

#9071 closed defect (bug) (invalid)

avatar image not displayed after translation

Reported by: jnie's profile jnie 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)

code-after-translation.PNG (8.1 KB) - added by jnie 13 months ago.
code-before-translation.PNG (7.9 KB) - added by jnie 13 months ago.

Download all attachments as: .zip

Change History (7)

#1 @jnie
13 months ago

Hi,

Is there any update on this topic?

Thanks in advance for your help.

#2 @imath
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.

https://i.imgur.com/jund2m5.png

To me that's not a BuddyPress issue.

#3 @jnie
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?

#4 @imath
13 months ago

Well, unlike what they said, to me the trouble is with Weglot. So I believe there are the best people to fix their issue.

#5 @espellcaste
8 months ago

  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.