WooCommerce - excelling eCommerce
Warning: Invalid argument supplied for foreach() in (5 posts)

  1. llewelyn5749
    Posted 2 years ago #

    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 {
    $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)


  2. asoc
    Posted 2 years ago #

    i think u got this problem after updating the latest version of woocommerce.

    what u need to do is simply update the framework.

    Go to dashboard > mystile theme > update framework.

    i hope it works!!!

  3. Patrilux
    Posted 2 years ago #

    Yes, it works! thank you asoc :)

  4. lakki
    Posted 2 years ago #

    Thank you asoc : i am enjoying Forum because of you guys . thanks a lot .

  5. ActuallyAKA
    Posted 1 year ago #

    thanks pal! it really works.. :3

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic