Tell me more ×
WordPress Answers is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I am getting this error on one hosting account but not on another with the same theme installed when I got to create a new page:

Warning: Cannot modify header information - headers already sent by (output started at /home/fry84x/public_html/themes/test/simplybusiness/wp-content/themes/simplybusiness/admin/functions/functions.mediauploader.php:61) in /home/fry84x/public_html/themes/test/simplybusiness/wp-includes/option.php on line 563

I have looked for any white space in functions.mediauploader.php and there is nothing strange. Any ideas?

Here is the code in functions.mediauploader.php around line 61, the echo is on 61:

if ( ! function_exists( 'optionsframework_mlu_css' ) ) {

function optionsframework_mlu_css () {

    $_html = '';
    $_html .= '<link rel="stylesheet" href="' . get_option('siteurl') . '/' . WPINC . '/js/thickbox/thickbox.css" type="text/css" media="screen" />' . "\n";
    $_html .= '<script type="text/javascript">
    var tb_pathToImage = "' . get_option('siteurl') . '/' . WPINC . '/js/thickbox/loadingAnimation.gif";
    var tb_closeImage = "' . get_option('siteurl') . '/' . WPINC . '/js/thickbox/tb-close.png";
    </script>' . "\n";

    echo $_html;

}
}

This is part of the Slightly Modified Theme Options and it is what makes the media uploader open, with it removed the media upload options do nothing. Why is it loading it here if it causes an error?

share|improve this question
2  
Look at line 61 in that file. – mrwweb Nov 16 '12 at 0:54
Never echo anything before the headers are sent. That is not WordPress specific. – toscho Nov 16 '12 at 1:17

closed as too localized by toscho Nov 16 '12 at 1:16

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, see the FAQ.

1 Answer

share|improve this answer
Found the cause but I still dont know how to fix it. It is a necessary part of the theme options. – brainbuzzmedia Nov 16 '12 at 1:03

Not the answer you're looking for? Browse other questions tagged or ask your own question.