Warning: Invalid argument supplied for foreach() in
-
I’m kinda dumb w/ all this. I have latest version of WP and latest version of WC and I am using Mystile theme from WC.
Here is the error i get at the bottom of every page on my website:
Warning: Invalid argument supplied for foreach() in /home/********/public_html/*********.com/wp-content/themes/mystile/functions/admin-functions.php on line 3193
I went to the section via downloading the file to my computer and opened it in word. this is where the error is at apparently.
if ( ! function_exists( ‘wooframework_load_google_fonts’ ) ) {
function wooframework_load_google_fonts() {
global $woo_used_google_fonts;$c = 0;
$fonts = ”;
foreach( $woo_used_google_fonts as $font ) {
if( $c > 0 ) {
$fonts .= ‘|’;
} else {
++$c;
}
$fonts .= $font;
}i have no idea what any of that means. how do i get the error to go away and get off my site? i disabled viewing of google fonts on the theme for now and that didn’t fix it. (in theme’s settings)
- The topic ‘Warning: Invalid argument supplied for foreach() in’ is closed to new replies.