Title: Invalid argument supplied
Last modified: August 18, 2016

---

# Invalid argument supplied

 *  [rozmo](https://wordpress.org/support/users/rozmo/)
 * (@rozmo)
 * [19 years, 8 months ago](https://wordpress.org/support/topic/invalid-argument-supplied/)
 * Greetings,
 * I am using WP Default v1.5 and now all of sudden when I try to open the only 
   category listed I receive the following error message(path name changed for illustrative
   purposes):
 * Warning:Invalid argument supplied for foreach() in /home/usr/public_html/blog/
   wp-includes/functions.php on line 283
 * Also the following is another WP error message supplied:
 * WordPress database error: [Got error 12 from storage engine]
    SELECT DISTINCT
   YEAR(post_date) AS `year`, MONTH(post_date) AS `month`, count(ID) as posts FROM
   wp_posts WHERE post_date < ‘2006-09-02 18:22:56’ AND post_status = ‘publish’ 
   GROUP BY YEAR(post_date), MONTH(post_date) ORDER BY post_date DESC
 * Not exactly sure what happened here because everything was functioning fine and
   then out of no where this started.
 * Any help with this would be appreciated.
 * Regards,
    rozmo

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

 *  [krugern](https://wordpress.org/support/users/krugern/)
 * (@krugern)
 * [19 years, 8 months ago](https://wordpress.org/support/topic/invalid-argument-supplied/#post-445678)
 * update to the latest version :p
 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [19 years, 8 months ago](https://wordpress.org/support/topic/invalid-argument-supplied/#post-445679)
 * [@krugern](https://wordpress.org/support/users/krugern/), wrong advice.
    Storage
   engine numbered errors come from the host. Contact your host!
 *  Thread Starter [rozmo](https://wordpress.org/support/users/rozmo/)
 * (@rozmo)
 * [19 years, 8 months ago](https://wordpress.org/support/topic/invalid-argument-supplied/#post-445716)
 * Thanks Moshu…you’re the man!
 * Regards,
    rozmo
 *  [aloha](https://wordpress.org/support/users/aloha/)
 * (@aloha)
 * [18 years, 10 months ago](https://wordpress.org/support/topic/invalid-argument-supplied/#post-446020)
 * I am getting the same error
    “Warning:Invalid argument supplied for foreach()
   in /home/usr/public_html/blog/wp-includes/functions.php on line 283” using WP
   version 2.2.
 * Any suggestions as to the cause or fix?

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

The topic ‘Invalid argument supplied’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 4 participants
 * Last reply from: [aloha](https://wordpress.org/support/users/aloha/)
 * Last activity: [18 years, 10 months ago](https://wordpress.org/support/topic/invalid-argument-supplied/#post-446020)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
