- 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
Less
More
5 years 2 months ago #173310
by Everybody Can Dive
Warning: count(): Parameter must be an array or an object that implements was created by Everybody Can Dive
I installed the new K2 version 9 and now i get every time this. How can i solve the problem. Can someone help me out please
Please Log in or Create an account to join the conversation.
- JoomlaWorks
- Offline
- Admin
Less
More
- Posts: 6220
5 years 2 months ago #173313
by JoomlaWorks
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by JoomlaWorks on topic Warning: count(): Parameter must be an array or an object that implements
Try v2.10 (dev) from github.com/getk2/k2/archive/master.zip please.
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
Less
More
- Posts: 2
5 years 2 months ago #173354
by Everybody Can Dive
Replied by Everybody Can Dive on topic Warning: count(): Parameter must be an array or an object that implements
Thank you so much. !!! It solves the problem.
Please Log in or Create an account to join the conversation.
- JoomlaWorks
- Offline
- Admin
Less
More
- Posts: 6220
5 years 2 months ago #173359
by JoomlaWorks
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by JoomlaWorks on topic Warning: count(): Parameter must be an array or an object that implements
Great :)
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
Less
More
- Posts: 4
5 years 1 month ago #173466
by yarak
Replied by yarak on topic Warning: count(): Parameter must be an array or an object that implements
I have same I guess:
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 ?
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
Less
More
- Posts: 6220
5 years 1 month ago #173467
by JoomlaWorks
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by JoomlaWorks on topic Warning: count(): Parameter must be an array or an object that implements
That's because your overrides for K2 in your template require some changes. Just compare the files with errors with the source K2 template files and pass along any changes to the ones in your Joomla template.
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
Less
More
- Posts: 4
5 years 1 month ago #173468
by yarak
Replied by yarak on topic Warning: count(): Parameter must be an array or an object that implements
You've got me stumped.
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
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
Less
More
- Posts: 6220
5 years 1 month ago #173469
by JoomlaWorks
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by JoomlaWorks on topic Warning: count(): Parameter must be an array or an object that implements
/components/com_k2/templates/default/item.php is the actual location.
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
Less
More
- Posts: 4
5 years 1 month ago #173498
by yarak
Replied by yarak on topic Warning: count(): Parameter must be an array or an object that implements
Fotis, okey in Summary:
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
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
Less
More
- Posts: 6220
5 years 1 month ago #173504
by JoomlaWorks
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by JoomlaWorks on topic Warning: count(): Parameter must be an array or an object that implements
Correct.
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
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