Viewing 7 reply threads
You must be logged in to reply to this topic.
Hello,
Recently, on certain pages of our site, we’re getting the following message:
<b>Warning</b>: count(): Parameter must be an array or an object that implements Countable in <b>/home/domains/geopfert.com/docs/wp-content/themes/tower/includes/view/blog/loop-index.php</b> on line <b>49</b>
What should we do to resolve this? Thank you!
Hello,
What theme version are you running? Please make sure to have the latest one and all it’s included plugins updated. If the warning persists, add some wp credentials in a private reply. So we can check closely.
Best regards!
Hello,
I opened your site but there is no warning message anywhere. See screenshots:
https://ibb.co/0tJg1sF
https://ibb.co/jZLytJv
Let me know.
Best regards!
Hello,
I fixed it.
I replaced line 49 with this:
$tag_out = ''; if( $tags ){ $num=count($tags); $i=0; foreach($tags as $tag): if(++$i === $num){ $tag_out .= $tag->name; }
else {
$tag_out .= $tag->name.', ';
}
endforeach;
}
Best regards!
You’re welcome!
If you like our theme and support, please leave us a review on Themeforest. It’s important for us!
https://themeforest.net/downloads
Thank You :)
You must be logged in to reply to this topic.