Forum module 508 error Language missing or invalid

Created on 12 April 2023, about 1 year ago
Updated 24 April 2024, 2 months ago

Im using Drupal Version 9.5.5 and Forum core module. After enabling the core module Forums, and creating a forum container, forum and topics. The module creates a page at /forum/ with a table list of the forums. Turn on Chrome Wave tool and see the error in the last table column called Last post. Language missing or invalid. It is coming from the variable {{ forum.last_reply }}

This is an example of the markup and it is missing the lang value
<a title="View user profile." href="/user/1" lang="" about="/user/1" typeof="schema:Person" property="schema:name" datatype="" class="username">drupal</a>

I was able to fix it with this, is there a better way?

(function ($) {
  $(document).ready(function () {
    if ($('.forum').length > 0) {
      $(".submitted a").attr("lang", "en");
    }
  });
})(jQuery);
🐛 Bug report
Status

Active

Version

1.0

Component

forum.module

Created by

🇺🇸United States leisurman

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024