Keyword

Display extended author info error in K2

  • Albert Hidding
  • Albert Hidding's Avatar Topic Author
  • Offline
  • New Member
More
1 week 2 days ago #174330 by Albert Hidding
Albert Hidding created the topic: Display extended author info error in K2
While developing a new site (local) I encounter a problem after installing the Dutch language file for K2. The user info under an article does not show the username and related items but a strange string (see attachment). I updated K2 to the latest version and I use Joomla 3.9.1 (with the right Dutch translation) and PHP 7.3.12 . Anyone with an solution to this?
Attachments:

Please Log in or Create an account to join the conversation.

  • Fotis
  • Fotis's Avatar
  • Offline
  • Administrator
  • JoomlaWorks Support Team
More
1 week 2 days ago #174335 by Fotis
Fotis replied the topic: Display extended author info error in K2
First off, please upgrade to the latest Joomla release. Secondly, the error you attached indicates a broken override for item.php (HTML breaks). Compare the code near the author (user) block with the default override. Or temporarily disabled your item.php override by placing an underscore in front of the filename.

If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

Please Log in or Create an account to join the conversation.

  • Albert Hidding
  • Albert Hidding's Avatar Topic Author
  • Offline
  • New Member
More
1 week 2 days ago #174345 by Albert Hidding
Albert Hidding replied the topic: Display extended author info error in K2
Thank you for the response, however, I started with a clean install of the template, added K2, made an article and viewed it in the front end. The mismatch in the username was there without using the dutch language file. I looked into the html file and found this:

<div class="itemAuthorDetails">
<h3 class="itemAuthorName heading-style-3 visible-first"><a rel="author" href="/onzevos/index.php/<span class=" item_title_part_0="" item_title_part_odd="" item_title_part_first_half="" item_title_part_first="" item_title_part_last"="">test/itemlist/user/848-<span class="item_title_part_0 item_title_part_odd item_title_part_first_half item_title_part_first item_title_part_last">test</span>"><span class="item_title_part_0 item_title_part_odd item_title_part_first_half item_title_part_first item_title_part_last">test</span></a></h3>
<div class="clr"></div>

Somehow this piece of code is messing things up. Can you see if there is something wrong with it and maybe, how I can fix this?

Please Log in or Create an account to join the conversation.

  • Fotis
  • Fotis's Avatar
  • Offline
  • Administrator
  • JoomlaWorks Support Team
More
1 week 2 days ago #174356 by Fotis
Fotis replied the topic: Display extended author info error in K2
The template is obviously the problem here. I run that snippet through the W3C validator and already saw the broken HTML. Try the entire output of your page here validator.w3.org/nu/#textarea and look for "errors" in red.

If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum