Linkedin sharing error - Warning: count(): Parameter must be an array or an object that implements Countable in

Hi,

I posted a blog post with social sharing buttons today, and got the following message:

Warning: count(): Parameter must be an array or an object that implements Countable in

Having played around with plugins, checked everything is up to date, etc., and found no issues, I then tinkered with the post itself, and found that removing the LinkedIn sharing option removed the error message. All our blog posts have social sharing, LinkedIn included, and I can’t see any reason why this has become a problem now? All our plugins, X & WordPress itself are up to date.

This is the blog post in question: https://framexec.com/fram-news-new-service-helping-firms-in-the-region-hire-finance-and-legal-professionals/

Thank you in advance!
Beate

Hello Beate,

Thanks for writing in! I have checked your blog post and I am not seeing any warning message. If you have disabled LinkedIn, then that probably why I no longer see the message. Please be advised that PHP Warning Message displays when you enable the debug mode. Usually the warning message appears when a certain variable is null or not yet initialize. To get rid of the message, kindly disable your debug mode. You can do this by opening wp-config.php and adding:

define('WP_DEBUG', false);

/* That's all, stop editing! Happy blogging. */

When you revisit the page, you should no longer be seeing the warning message.

Hope this helps.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.