The following error code is at the top of all the pages on my site:
Warning: count(): Parameter must be an array or an object that implements Countable in /homepages/12/d100333497/htdocs/clickandbuilds/DailymirrorDev/wp-includes/post-template.php on line 284
It is NOT at the top of the pages that are in the admin section (dashboard, etc).
The code at that point in the referenced file is below:
Line 280: // If post password required and it doesn’t match the cookie.
Line 281: if ( post_password_required( $post ) )
Line 282: return get_the_password_form( $post );
Line 283:
Line 284: if ( $page > count( $pages ) ) // if the requested page doesn’t exist
Line 285: $page = count( $pages ); // give them the highest numbered page that DOES exist
I am open to any suggestions on how to fix this. This theme was put on a fresh install of WP.