Keyword

Problem with ALT attribute - alt="|||||||||" (image_caption)

  • jabeznika
  • jabeznika's Avatar Topic Author
  • Offline
  • New Member
More
2 years 10 months ago - 2 years 10 months ago #178981 by jabeznika
Hello! 

I have problem with ALT attribute - it shows unknown symbols (alt="|||||||||"). 
For instance, <img src="/media/k2/items/cache/ba1b7eb9b8ad142948e3b9dce300b4c6_M.jpg" alt="|||||||||">
It is from table k2_items - image_caption and image_credits fields. 

K2 generate these symbols
Last edit: 2 years 10 months ago by jabeznika.

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

More
2 years 10 months ago #178995 by JoomlaWorks
This is not normal and points to some error in a template override.

Since you're not telling me where this happens exactly (e.g. some module, the category view, the item view?), you need to check if you have any template overrides for K2 in your template's html/ folder.

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • jabeznika
  • jabeznika's Avatar Topic Author
  • Offline
  • New Member
More
2 years 9 months ago - 2 years 9 months ago #179195 by jabeznika
Can you just say, which PHP file is responsible for data insert in #_k2_items?

I'll try to fix it myself
Last edit: 2 years 9 months ago by jabeznika.

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

More
2 years 9 months ago #179204 by Goble002
I you are using override and you are talking about main picture on item page.

it should be /templates/your-template/html/com_k2/default/item.php > Line 199

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

  • jabeznika
  • jabeznika's Avatar Topic Author
  • Offline
  • New Member
More
2 years 9 months ago - 2 years 9 months ago #179206 by jabeznika
I deleted title attribute from item.php

But problem is, that it insert ||||||||| in image_caption field in SQL

SQL query is not in item.php
Last edit: 2 years 9 months ago by jabeznika.

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

More
2 years 9 months ago #179208 by Goble002
Try to use the original item.php or use a static value there for alt. It may narrow down the cause of the problem

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


Powered by Kunena Forum