Warning: Invalid argument supplied for foreach()
-
I need some help with this error message, I now get on my wordpress site.
Error message below:
Warning: Invalid argument supplied for foreach() in /home/.x.x.x.x./public_html/wp-content/themes/deco_fleximag/functions.php on line 19
website is: https://www.carolinawoodfurniture.com
Some Code from the function page is below: I have separated line 19 in the middle of the code so it would stand out for review..
// load theme options page
if (file_exists(TEMPLATEPATH.’/includes/theme-options.php’))
include(TEMPLATEPATH.”/includes/theme-options.php”);
// load some more goodies
if (file_exists(TEMPLATEPATH.’/includes/core-additions.php’))
include(TEMPLATEPATH.”/includes/core-additions.php”);
// load footer widget function
if (file_exists(TEMPLATEPATH.’/includes/footer-functions.php’))
include(TEMPLATEPATH.”/includes/footer-functions.php”);
// load anything in teh custom_functions folderforeach (glob(TEMPLATEPATH.”/includes/custom_functions/*.php”) as
$filename) { include $filename; };// load custom background function if option set
if(tt_option(‘cust_back’) == ‘Yes’) { add_custom_background(); }
// load custom header function if option set
if(tt_option(‘cust_header’) == ‘Yes’) { include(TEMPLATEPATH.”/includes/cust_header.php”); }
// load function for FAQ page templateThanks in advance for any help..
I only have 2 plugins on the site and I disabled them but that did not help ..
Greg
- The topic ‘Warning: Invalid argument supplied for foreach()’ is closed to new replies.