• When I add a page I get this error at the top.
    Warning: count(): Parameter must be an array or an object that implements Countable in (I took this part of the address out)\backyardpollinator.com\wp-includes\post-template.php on line 284

    It doesn’t matter what theme I have installed.
    I do have woocommerce installed, and it even happens with their default welcome page.

    Those lines on 284 of the post-template.php are
    if ( $page > count( $pages ) ) // if the requested page doesn’t exist
    $page = count( $pages ); // give them the highest numbered page that DOES exist

    I don’t know php, but the page DOES exist.

    Can someone help with this?

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    This may be a plugin or theme conflict. Please attempt to disable all plugins, and use one of the default (Twenty*) themes. If the problem goes away, enable them one by one to identify the source of your troubles.

    If you can install plugins, install “Health Check”: https://ww.wp.xz.cn/plugins/health-check/ On the troubleshooting tab, you can click the button to disable all plugins and change the theme for you, while you’re still logged in, without affecting normal visitors to your site.

    Thread Starter FireFlyWebs

    (@fireflywebs)

    It’s jetpack that is causing the issue.
    I don’t understand jetpack…. or wordpress.com (or what wordpress.com does) for that matter, but it seems they are needed for woocommerce.
    Any suggestions.
    Do I need jetpack activated?

    • This reply was modified 8 years, 3 months ago by FireFlyWebs.
    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    I recommend asking at https://ww.wp.xz.cn/support/plugin/jetpack#new-post so the plugin’s developers and support community can help you with this.

    Thread Starter FireFlyWebs

    (@fireflywebs)

    Thank you for the direct link.
    Will do.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘post-template.php line 284’ is closed to new replies.