Keyword

Hit Counter does´´nt count

  • Michael GaKI
  • Michael GaKI's Avatar Topic Author
  • Offline
  • Junior Member
More
8 years 4 months ago #154216 by Michael GaKI
Hit Counter does´´nt count was created by Michael GaKI
Hello all,

for newer Items the Hit Counter doesn´´t work. Older Items with counts are not longer growing.
I change some weeks ago the template and K2-Version.

Any idea why the counter doesn´´t work?

imgur.com/pEJz071

BR
Michael

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

  • Michael GaKI
  • Michael GaKI's Avatar Topic Author
  • Offline
  • Junior Member
More
8 years 4 months ago #154217 by Michael GaKI
Replied by Michael GaKI on topic Hit Counter does´´nt count
Using K2 2.7.1 and Joomla 3.5.1

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 4 months ago #154234 by Krikor Boghossian
Replied by Krikor Boghossian on topic Hit Counter does´´nt count
Hello Michael,

Are you using any caching layers?

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

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

  • Michael GaKI
  • Michael GaKI's Avatar Topic Author
  • Offline
  • Junior Member
More
8 years 4 months ago #154245 by Michael GaKI
Replied by Michael GaKI on topic Hit Counter does´´nt count
Hello Kikor,

the Standard Caching of Joomla is OFF.

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

  • JoomlaWorks Support Team
  • JoomlaWorks Support Team's Avatar
  • Offline
  • Elite Member
More
8 years 4 months ago #154260 by JoomlaWorks Support Team
Replied by JoomlaWorks Support Team on topic Hit Counter does´´nt count
Did you notice any php or javascript errors ?

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

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

  • Michael GaKI
  • Michael GaKI's Avatar Topic Author
  • Offline
  • Junior Member
More
8 years 4 months ago #154261 by Michael GaKI
Replied by Michael GaKI on topic Hit Counter does´´nt count
No, nothing.

In Debugmodus I found this:

UPDATE kgnet33_k2_items
SET `hits` = (`hits` + 1)
WHERE `id` = '670'

The ID is the ID of correct Item.

But no error is shown.

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

  • Michael GaKI
  • Michael GaKI's Avatar Topic Author
  • Offline
  • Junior Member
More
8 years 4 months ago #154262 by Michael GaKI
Replied by Michael GaKI on topic Hit Counter does´´nt count
I found the reason:

The intial content of the field HITS is "null". After update the database field to 0 it works

update kgnet33_k2_items
set hits = 0 where hits is null;

Is there a need to correct a script which generate a new Item?

BR
Michael

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 4 months ago #154330 by Krikor Boghossian
Replied by Krikor Boghossian on topic Hit Counter does´´nt count
Hello Michael,

Did this behaviour start with 2.7.1 or was the issue was present prior to updating?

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

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

  • Michael GaKI
  • Michael GaKI's Avatar Topic Author
  • Offline
  • Junior Member
More
8 years 4 months ago #154340 by Michael GaKI
Replied by Michael GaKI on topic Hit Counter does´´nt count
Hello,

the situation is present for older Items,too.
I update all records now to 0 where value was new.
Will check the behaviour when creating now a new item.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 4 months ago #154343 by Krikor Boghossian
Replied by Krikor Boghossian on topic Hit Counter does´´nt count
Let me know so I can start a new fresh site to verify this behaviour.

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