Keyword

Warning: count(): Parameter... com_k2\views\item\tmpl\default.php on line 746

  • K Arockia Chinnappa Raj
  • K Arockia Chinnappa Raj's Avatar Topic Author
  • Offline
  • New Member
More
5 years 9 months ago #171298 by K Arockia Chinnappa Raj
Basically, I am not a programmer.
I got the error and

I replaced
if (count($this->row->attachments)):

with the below code
if ($this->row->attachments && count($this->row->attachments)):

Error went off.

Is this correct solution?

Thanks.

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

More
5 years 9 months ago - 5 years 9 months ago #171305 by JoomlaWorks
The file you meant (for others who read this) is actually: /administrator/components/com_k2/views/item/tmpl/default.php

Your change is just fine and I have also fixed this in K2's GitHub repo (here: github.com/getk2/k2/commit/98b76635b4ee5fd27f8c2d1e79ead7261d514f80) for the next release.

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Last edit: 5 years 9 months ago by JoomlaWorks.

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


Powered by Kunena Forum