Title: invalid argument warning
Last modified: August 18, 2016

---

# invalid argument warning

 *  [adb](https://wordpress.org/support/users/adb/)
 * (@adb)
 * [21 years, 4 months ago](https://wordpress.org/support/topic/invalid-argument-warning/)
 * I have the following error on admin>options page:
 * Warning: Invalid argument supplied for foreach() in /home/site/public_html/wp-
   admin/options-head.php on line 10
 * Anyone know how to fix this? Thanks.

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

 *  Thread Starter [adb](https://wordpress.org/support/users/adb/)
 * (@adb)
 * [21 years, 4 months ago](https://wordpress.org/support/topic/invalid-argument-warning/#post-140507)
 * Since I’ve not received a reply to my problem, I’m now wondering if there’s a
   way to import my wp blog entries to another database. Does anyone have any suggestions?
 *  [Mark (podz)](https://wordpress.org/support/users/podz/)
 * (@podz)
 * [21 years, 4 months ago](https://wordpress.org/support/topic/invalid-argument-warning/#post-140511)
 * What happened just before that error appeared ?
 *  Thread Starter [adb](https://wordpress.org/support/users/adb/)
 * (@adb)
 * [21 years, 4 months ago](https://wordpress.org/support/topic/invalid-argument-warning/#post-140512)
 * I’m not sure when it appeared (I don’t use that page often), but I recently switched
   back to 1.2.2 from 1.5. And when I tried to go back to the install of 1.5 I was
   using without any problems, I got all kinds of errors. So now I’m back to 1.2.2.
 *  Thread Starter [adb](https://wordpress.org/support/users/adb/)
 * (@adb)
 * [21 years, 4 months ago](https://wordpress.org/support/topic/invalid-argument-warning/#post-140640)
 * any suggestions?
 *  Thread Starter [adb](https://wordpress.org/support/users/adb/)
 * (@adb)
 * [21 years, 4 months ago](https://wordpress.org/support/topic/invalid-argument-warning/#post-140662)
 * silly me forgot to run the upgrade…i’m learning.
 *  [shockfly](https://wordpress.org/support/users/shockfly/)
 * (@shockfly)
 * [19 years, 7 months ago](https://wordpress.org/support/topic/invalid-argument-warning/#post-141149)
 * I also have an error. It says:
    Warning: Invalid argument supplied for foreach()
   in …/public_html/wp-content/themes/simple/sidebar.php on line 10
 * any idea how to fix this?
 *  [Kafkaesqui](https://wordpress.org/support/users/kafkaesqui/)
 * (@kafkaesqui)
 * [19 years, 7 months ago](https://wordpress.org/support/topic/invalid-argument-warning/#post-141150)
 * Perhaps check the argument supplied for foreach() and make sure it’s valid?
 * You can paste the source for your theme’s sidebar.php here:
 *  [http://wordpress.pastebin.ca/](http://wordpress.pastebin.ca/)
 * Reply back with the url for it, and hopefully someone can examine the source 
   and point out the problem.

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

The topic ‘invalid argument warning’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 7 replies
 * 4 participants
 * Last reply from: [Kafkaesqui](https://wordpress.org/support/users/kafkaesqui/)
 * Last activity: [19 years, 7 months ago](https://wordpress.org/support/topic/invalid-argument-warning/#post-141150)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
