Divi WordPress Theme
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress fix post-template.php line 284

Discussion in 'Misc WordPress Requests' started by FireFlyWebs, Feb 15, 2018.

  1. FireFlyWebs


    post-template.php line 284, by FireFlyWebs

    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?

    post-template.php line 284

Share This Page

Monarch Social Sharing Plugin