• A couple days ago I downloaded the theme Multi-Color and every time I attempt to update the header, I receive the following message:

    Warning: getimagesize() [function.getimagesize]: Filename cannot be empty in /home/content/52/10135552/html/wp-content/themes/multi-color/inc/theme-settings.php on line 464

    Warning: Cannot modify header information – headers already sent by (output started at /home/content/52/10135552/html/wp-content/themes/multi-color/inc/theme-settings.php:464) in /home/content/52/10135552/html/wp-includes/pluggable.php on line 88
    _________________________________________________________

    I went to the wp-content/…/theme-settings.php page and looked at the code and am unable to see what problem there is or how it needs to be modified. Can anyone please help with this?

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • “Warning: Cannot modify header information – headers already sent by”

    almost always means a blank line before or after the opening or closing php tags.

    Thread Starter byenia

    (@byenia)

    The code I’m dealing with follows:

    [ Moderator Note: Please post code or markup snippets between backticks or use the code button. Please don’t use blockquote. ]

    /* Supporting validation functions */
    function mc_validate_color($color) {
        $exp = "/([A-Za-z0-9])/";
        if(!preg_match($exp,$color))
            return false;
        else
            return true;
    }
    
    function mc_validate_image_url($url) {
        $exp = "/^https?:\/\/(.)*\.(jpg|png|gif|ico)$/i";
        if(!preg_match($exp,$url))
            return false;
        else
            return true;
    }
    
    function mc_validate_image_size($url,$width,$height) {
        $size = getimagesize($url);
        if($size[0] > $width or $size[1] > $height)
            return false;
        else
            return true;
    }

    If anyone can help me understand what the specific problem is here, I’d greatly appreciate it. Please let me know if you need me to post the entire page of code.

    Thanks in advance!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Theme Multi-Color] warning message when updating’ is closed to new replies.