Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Jul 2010
    Posts
    50
    Thanks
    16
    Thanked 0 Times in 0 Posts

    Warning: Invalid argument supplied for foreach()

    I have this theme for wordpress named "Mimbo" and when I go to my website I get this message under the featured categories:
    Invalid argument supplied for foreach() in /home/content/85/6673185/html/wp-content/themes/mimbo/index.php on line 88

    Does anyone know how to fix this??

  • #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,853
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Blog Entries
    1
    Does anyone know how to fix this??
    You could wrap that foreach statement inside an if() condition, like
    Code:
    if(is_array($var)){
      foreach($var as ...)
    
    }
    , where $var should be the variable used at your end.

    I have this theme for wordpress named "Mimbo" and when I go to my website I get this message under the featured categories:
    Have you missed to add something to the so called "featured categories" ?
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •