WordPress.org

Ready to get started?Download WordPress

Forums

No posts in a category: error (7 posts)

  1. lars
    Member
    Posted 10 years ago #

    Selecting a category from edit.php in which there are no posts returns three PHP warnings [1] and one SQL[2] error.

      1. Invalid argument supplied for foreach() in wp-blog-header.php line 325
      2. implode(): Bad arguments in wp-blog-header.php line 328.
      3. Invalid argument supplied for foreach() in wp-blog-header.php line 335
    1. [You have an error in your SQL syntax near ')' at line 4]
      SELECT DISTINCT...
  2. Anonymous
    Unregistered
    Posted 10 years ago #

    A discussion has started on this over here. The IN clause is empty, causing the problem.

  3. lars
    Member
    Posted 10 years ago #

    Since the thread you refer to has a subject line that is completely unrelated to the specific problem at hand, I have asked that the discussion be moved here instead.

  4. Dougal Campbell
    Member
    Posted 10 years ago #

    I've just committed some fixes to CVS which should solve this problem.

  5. eryanv
    Member
    Posted 10 years ago #

    @Anonymous
    The IN() clause being empty only causes the visable SQL error and the second foreach() error. It's the previous SQL request that doesn't get anything and begins to cause this mess.
    Anyways, it's fixed.

  6. lars
    Member
    Posted 10 years ago #

    Great, thanks dougal!

  7. Nick Momrik
    Member
    Posted 10 years ago #

    Thanks dougal!! Works great! :-)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.