...

View Full Version : Warning: Invalid argument supplied for foreach()



mjmrcng
12-23-2010, 05:24 AM
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??

abduraooft
12-23-2010, 08:34 AM
Does anyone know how to fix this??
You could wrap that foreach statement inside an if() condition, like

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" ?



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum