Support » Fixing WordPress » warning invalid argument supplied for foreach()

  • Hi there,

    Am using WordPress for a while now, but am quite novel to PHP.

    I get this error message trying to run a theme developed by another developer. it referes to two lines on the header.php code which I am pasting here :
    line 9 – foreach ($options as $value) {
    line 46 – foreach ($options as $value) {

    If I understood correctly from reading I have made the problem could be that the foreach is used here althogh it’s not referring to an array (?)

    Is that true ? and if so where and how can I change the code so it’ll work properly.
    Thanx 🙂

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘warning invalid argument supplied for foreach()’ is closed to new replies.