Keyword

Strange character appearing everywhere!!!

More
12 years 5 months ago #65579 by jason
I have a number one character appearing all through my content, i have replaced and updated K2 back to the default template and even changed my joomla template from gantry back to another version and they still appear.

i have checked the k2 template files, and searched through all files but cannot the "1"!!

It doesn't appear in any of the defaut joomla 2.5 articles, any suggestions...help


<!-- Plugins: AfterDisplayTitle -->
1
<!-- K2 Plugins: K2AfterDisplayTitle -->


www.motester.myzen.co.uk/motportal

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

More
12 years 5 months ago #65580 by Holger Grau
Replied by Holger Grau on topic Re: Strange character appearing everywhere!!!
Hi,

I have exactly the same problem, does anyone have an idea?

Would be great, thanks!!!

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

More
12 years 5 months ago - 12 years 5 months ago #65581 by william white
Replied by william white on topic Re: Strange character appearing everywhere!!!
there is a post already here about the 1
cant remember what caused it...
search for "removing"

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

More
12 years 5 months ago #65582 by Pauly
Found that topic-
getk2.org/community/New-to-K2-Ask-here-first!/9854-Removing--1-in-Article-Header#11174


Here was the solution-

Found the solution error in the code:

<!-- Plugins: AfterDisplayTitle -->
<?php echo $this->item->event->AfterDisplayTitle; ?>

<!-- K2 Plugins: K2AfterDisplayTitle -->
<?php echo $this->item->event->K2AfterDisplayTitle; ?>


<!-- Plugins: AfterDisplayTitle -->
<?php echo $this->item->event->K2AfterDisplayTitle; ?>

<!-- K2 Plugins: K2AfterDisplayTitle -->
<?php echo $this->item->event->K2AfterDisplayTitle; ?>

Add the word "K2" before "AfterdisplayTitle"

In
/components/com_k2/templates/default/item.php

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

More
12 years 4 months ago #65583 by Odin Mayland
Replied by Odin Mayland on topic Re: Strange character appearing everywhere!!!
I have verified that both the default and the template/html/com_k2/mytemplate/item.php have the "k2" added in front like your example.

Here is a sample page with the "1" after the title:

50.116.122.123/~drjill/index.php/services/behavior-clinic/itemlist/category/22-private-consultations-and-follow-ups

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

More
12 years 4 months ago #65584 by Odin Mayland
Replied by Odin Mayland on topic Re: Strange character appearing everywhere!!!
found it!

I needed to add it in the category_item.php also.

My bad.

Why is this necessary. I'm using K2 v2.5.7 You would think if this was an error that it would have been picked up in the last few versions.

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

More
12 years 4 months ago - 12 years 4 months ago #65585 by HMEP
I'm sorry but the FIX to this makes no sense
<!-- Plugins: AfterDisplayTitle -->
  <?php echo $this->item->event->AfterDisplayTitle; ?>

  <!-- K2 Plugins: K2AfterDisplayTitle -->
  <?php echo $this->item->event->K2AfterDisplayTitle; ?>
to
<!-- Plugins: AfterDisplayTitle -->
  <?php echo $this->item->event->K2AfterDisplayTitle; ?>

  <!-- K2 Plugins: K2AfterDisplayTitle -->
  <?php echo $this->item->event->K2AfterDisplayTitle; ?>
so that leaves us with TWO
<?php echo $this->item->event->K2AfterDisplayTitle; ?>
  <?php echo $this->item->event->K2AfterDisplayTitle; ?>

Just comment out the first one if it's not working for you.
<!-- Plugins: AfterDisplayTitle -->
  <?php // echo $this->item->event->AfterDisplayTitle; ?>

  <!-- K2 Plugins: K2AfterDisplayTitle -->
  <?php echo $this->item->event->K2AfterDisplayTitle; ?>

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

More
12 years 4 months ago #65586 by Odin Mayland
Replied by Odin Mayland on topic Re: Strange character appearing everywhere!!!
Thanks. I have done this instead.

1. Why is this necessary?
2. Is it because of a combination of things on my site?
3. Why are there not thousands of people with this issus?

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

More
12 years 2 months ago #65587 by Odin Mayland
Replied by Odin Mayland on topic Re: Strange character appearing everywhere!!!
how did you solve it?

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

More
12 years 2 months ago #65588 by Lefteris
Replied by Lefteris on topic Re: Strange character appearing everywhere!!!
The output is coming from a plugin, not K2. Try to disable some K2 plugins to detect the one that's causing it.

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

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


Powered by Kunena Forum