Viewing 4 reply threads
You must be logged in to reply to this topic.
Just noticed the following warning in front of my blog postings:
”
Warning: count(): Parameter must be an array or an object that implements Countable in /customers/6/2/9/ch-air.co.uk/httpd.www/wp-content/themes/specular/includes/view/blog/loop-second-style.php on line 49 Warning: count(): Parameter must be an array or an
”
You can see it here on my website:
https://www.ch-air.co.uk/special-offers-news/
Do you know what the above means and how I can fix it please?
Thanks.
That happen because u probably have the WP DEBUG active.
If not, please do this:
replace line 49 with:
if( $tags ){
$tag_out = ''; $num=count($tags); $i=0; if($tags) foreach($tags as $tag): if(++$i === $num){$tag_out .= $tag->name;} else {$tag_out .= $tag->name.', ';} endforeach;
}
Thanks
Thank you very much for your help. I did have DEBUG mode on and switching it off resolved the issue.
You must be logged in to reply to this topic.