Score:0

"Language missing or invalid"

eg flag

I am using Drupal Version 9.5.5 and Forum core module. After enabling the module and creating a forum container, forum, and topics, the module creates a page at /forum/ with a table list of the forums.

Chrome Wave shows an error in the Last post column: Language missing or invalid. It is coming from the variable {{ forum.last_reply }}

This is an example of the HTML markup.

<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 JavaScript.

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

Is there a better way?

id flag
I’m voting to close this question because it is reported as a bug in the module https://www.drupal.org/project/drupal/issues/3353837
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.