• Resolved solocare

    (@solocare)


    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 ?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    so when you (temporarily) switch themes, does the error persist?

    Thread Starter solocare

    (@solocare)

    No sorry, switching theme doesnt help. Same result.

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    Could be a conflict with another plugin in that case, maybe try disabling/ re-enabling plugins one at a time to pinpoint?

    Thread Starter solocare

    (@solocare)

    That worked. One of the other plugins seem to conflict somehow with your plugin.

    Still strange that the local copy of the site is working while all plugins are active. The reason why i created a local copy was not to fiddle around with the remote site. No point in creating a local site when they behave differently.

    Anyway i trying to figure out what the conflict might be, if not then i can still find another solution to replace the conflicting plugin.

    Thank you for your help.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Getting an error message on top of each page’ is closed to new replies.