Getting an error message on top of each page
-
I installed the plugin and now i am getting the following message on top of each page (except front page)
“Warning: count(): Parameter must be an array or an object that implements Countable in …/wp-includes/post-template.php on line 317”
Curios what the source line in question is
// If the requested page doesn’t exist.
if ( $elements[‘page’] > count( $elements[‘pages’] ) ) {
// Give them the highest numbered page that DOES exist.
$elements[‘page’] = count( $elements[‘pages’] );
}I installed the remote site on a local computer in order to figure out what causes the problem, ready to debug if nessecary. Surprise !
No problem, the plugin is working as it should, leaving me without a clue hence i am new to PHP.The plugin is working on another site (another theme) without a problem. Any hints what to check ?
- The topic ‘Getting an error message on top of each page’ is closed to new replies.