Skip to content

Warning: count(): Parameter must be an array or an object that implements Countable in .../wp-includes/post-template.php on line 284 #10221

@ghost

Description

  • I've read and understood the contribution guidelines.
  • I've searched for any related issues and avoided creating a duplicate issue.

Please give us a description of what happened.

In posts page (index.php) when I doesn't have any posts I see error:
Warning: count(): Parameter must be an array or an object that implements Countable in D:\xampp\htdocs\wp-includes\post-template.php on line 284

When I disable Yoast SEO plugin, then this message wont come.
And when I made a post, then this error also goes away.

Technical info

  • WordPress version: 4.9.6 (multisite)
  • Yoast SEO version: 7.7.2
  • PHP version: 7.2.4
  • Relevant plugins in case of a bug: Just Yoast SEO. Nothing else.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions