• Hi @greenshady.
    I managed to solve the issue
    “Warning: Invalid argument supplied for foreach() in /wp-includes/class-wp-theme-json.php on line 1439″
    Also, reported by another user in https://www.ads-software.com/support/topic/multisite-using-stargazer/

    The solution to change the theme’s function.php line 195 from

    add_theme_support( 'editor-color-palette', '#cc4a00', '#252525', '#2d2d2d', '#ffffff' );

    to

    add_theme_support( 'editor-color-palette', array(
        array( 
    	'name' => esc_html__( 'Orange Burn', 'stargazer' ),
    	'slug' => 'burntOrange',
    	'color' => '#cc4a00'  ),
        array(
    	'name' => esc_html__( 'Raisin Black', 'stargazer' ),
    	'slug' => 'raisinBlack',
    	'color' => '#252525') ,
        array( 
    	'name' => esc_html__( 'Charleston Green', 'stargazer' ),
    	'slug' => 'charlestonGreen',
    	'color' => '#2d2d2d' ),
        array(
    	'name' => esc_html__( 'White', 'stargazer' ),
    	'slug' => 'white',
    	'color' => '#ffffff' ) )
    );

    Bests Lena

  • The topic ‘Fix suggestion for error “Warning: Invalid argument supplied for foreach()’ is closed to new replies.