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

When I attempt to edit a blog post using Cornerstone nothing is editable on the blog page. The inspectors shows there is no content.

For example this blog page: https://musicsifter.com/5-reasons-you-need-the-x-theme/

looks like this in cornerstone

It also displays an error message on the top that says this:

I would like to be able to edit the blog posts and portfolio posts but as it stands I cannot. Cornerstone works fine editing the pages. It seems like this shouldn’t be the case. Any help would be great, I would like to get this all updated as soon as possible.

Thank You!

Hello Tyler,

Thanks for writing in!

Please be advised that all the posts were not created in Cornerstone. You must understand that only posts/pages created in Cornerstone can be edited in Cornerstone. For example, if you want to edit the given " 5 Reasons You Need The X Theme" post in Cornerstone, you are seeing a blank canvas. Any of the previous contents will get discarded and any new elements added will then be saved and displayed.

Hope this explains it briefly.

Excellent! That makes perfect sense! Thank you. So should I ignore the “Warning: count():” message at the top of the page?

Hey Tyler,

The error message is just a PHP Warning. You can get rid of this by disabling 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.

Best Regards.

Thank you so much, Rue! You have been very helpful.

You’re welcome Tyler!
We’re glad we were able to help you out.

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