WordPress.org

Ready to get started?Download WordPress

Forums

Warning if no posts/articles (5 posts)

  1. Dev2000
    Member
    Posted 9 years ago #

    I deleted all the posts I had on a blog, and where all the links usually are I had this:

    Warning: Invalid argument supplied for foreach() in /pathtoblog/BlogName/wp-includes/template-functions-category.php on line 304

    So, basically I can't have an empty blog.

    Any thoughts on this?

  2. Mark (podz)
    Support Maven
    Posted 9 years ago #

    It's expecting a post ...... it's designed to have a post so it expects that not to be empty.
    That said, I think this has been fixed.

    Why would you want an empty blog ?
    And you could delete the category listing from the menu ?

  3. Dev2000
    Member
    Posted 9 years ago #

    Why would you want an empty blog ? So, I can hand it over to the client.
    And you could delete the category listing from the menu ? Listing replaced by the error message.

  4. Mark (podz)
    Support Maven
    Posted 9 years ago #

    I have always left a message there, sometimes even replacing it with an example that illustrates the use of the quicktags. Gives them something to look at and playwith :)

    I can see your point, but then part of the installation process is not just creating the database, but also cheacking that tables can be made and posted to without error. A simple initial post achieves that.

  5. Dev2000
    Member
    Posted 9 years ago #

    OK, but seem silly to have an error there. No other solution seems to do it.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.