-
-
Hi,
I have this error
Warning: count(): Parameter must be an array or an object that implements Countable in http://www.essexpertises.fr/wp-content/themes/specular/includes/view/blog/loop-timeline.php on line 50
Would you tell me how to fix it?
Regard
-
This topic was modified 6 years, 1 month ago by
maxime.
-
This topic was modified 6 years, 1 month ago by
-
Hello,
When did this first started to happen? Did you perhaps installed any new plugins lately? Or activated any that has been inactive before theme update? Or did you add any code related to blog in your child theme functions file?
This does not happen on our side so i need as much info as you can get.Please add some ftp credentials in your profile. So i can check the files.
Best regards!
-
Since today. I’ve updated the theme to 3.1 yesterday, i had a bug and you fix it, (it was some plugin which was not updated)
But i didn’t install something new.Just i made some change :
i made a change to have more text description on the staff.php
i made a change into “comments.php” to translate “leave a message”
i made a change into main.js (which have been change by codeless-main.js) to have the client carousel moving -
Hello,
I see. Please enable Appearance > Theme Editor menu in WordPress so i can access the files. Or send us some ftp credentials too. I need to check the files directly.
Best regards!
-
I put my ftp credential yesterday. So you have the control ;)
-
-
-
-
Hello,
After all i didn’t need to edit anything in the files any way. I added excerpts to posts and the warning is gone. Please make sure to add excerpts too when creating a post.
Let me know if it repeats itself.
Best regards!
-
Hello, the warning still here. What excerpts did you add?
Thank you
-
Hello,
The excerpts are chunk of text you add as short description for the post. You can make expert box visible by checking it in the Screen Options (top-right corner of screen).
This removed the warning on my side so i thought it was fixed. Apparently not.Now i edited the line 50 in file includes/view/blog/loop-timeline.php:
$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;
To this:
$tag_out = ''; if (is_array($tags)) $num=count($tags); $i=0; if($tags) foreach($tags as $tag): if(++$i === $num){$tag_out .= $tag->name;} else {$tag_out .= $tag->name.', ';} endforeach;
I tested, it’s ok now. Please clear cache and try again.
Best regards!
-
-
You must be logged in to reply to this topic.