- Posts: 2
COMMUNITY FORUM
- Forum
- K2 Community Forum
- English K2 Community
- Warning: count(): Parameter must be an array or an object that implements
Warning: count(): Parameter must be an array or an object that implements
- Everybody Can Dive
- Topic Author
- Offline
- New Member
Please Log in or Create an account to join the conversation.
- JoomlaWorks
- Offline
- Admin
- Posts: 6225
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Everybody Can Dive
- Topic Author
- Offline
- New Member
- Posts: 2
Please Log in or Create an account to join the conversation.
- JoomlaWorks
- Offline
- Admin
- Posts: 6225
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- yarak
- Offline
- New Member
- Posts: 4
Warning: count(): Parameter must be an array or an object that implements Countable in /home/rapigukk/public_html/templates/bemax/html/com_k2/blog-list/item.php on line 228
The master file didnt helped...any idea ?
Please Log in or Create an account to join the conversation.
- JoomlaWorks
- Offline
- Admin
- Posts: 6225
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- yarak
- Offline
- New Member
- Posts: 4
So I should check from my template this:
bemax/html/com_k2/blog-list/item.php on line 228
with the source K2 template. right ?
I extracted the zip file github.com/getk2/k2/archive/master.zip and checking the folder structure.
Is this in components/com_k2/.......... inside ?
Appreciate your help
Please Log in or Create an account to join the conversation.
- JoomlaWorks
- Offline
- Admin
- Posts: 6225
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- yarak
- Offline
- New Member
- Posts: 4
On the homepage is the warning:
Warning: count(): Parameter must be an array or an object that implements Countable in /home/rapigukk/public_html/templates/bemax/html/com_k2/blog-list/item.php on line 228
This is the line 228 on item.php from my template (downloaded):
<?php if($this->item->params->get('itemExtraFields') && count($this->item->extra_fields)): ?>
and in the /components/com_k2/templates/default/item.php is:
<?php if($this->item->params->get('itemExtraFields') && isset($this->item->extra_fields) && count($this->item->extra_fields)): ?>
My questions:
Shall I change from master-template with this on my page ?
Thank you for your help
Please Log in or Create an account to join the conversation.
- JoomlaWorks
- Offline
- Admin
- Posts: 6225
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- yarak
- Offline
- New Member
- Posts: 4
Please Log in or Create an account to join the conversation.
- JoomlaWorks
- Offline
- Admin
- Posts: 6225
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Gary sherwood
- Offline
- New Member
- Posts: 1
Attachments:
Please Log in or Create an account to join the conversation.
- Forum
- K2 Community Forum
- English K2 Community
- Warning: count(): Parameter must be an array or an object that implements