Support

Warning: Cannot modify header information... (8 posts)

Languages

de | fr | es | 日本語

About This Topic

Tags

  1. rss DLKeur

    member


    rss Posted 3 years ago
    #

    First off, I've used your themes for a very long time. I love your work. When and if I can afford to have you do something custom for me, I certainly will. Meanwhile, I love your themes. But, with these latest builds, I'm having some problems.

    Please note that I've used Soho before, and never had this problem on the same host, Dreamhost. It's just this new version that seems to be throwing the following issue.

    ---THE ISSUE I'M HAVING---

    URL: http://www.thedeepening.com/world-of-fiction/

    I'm getting this with Soho. I haven't modified any of the files except some minor stuff in the stylesheet because I can't find my crib notes. A long time ago, a php guru said it has to do with my hosting service, and gave me a short strip of code to insert at the top of a page to get it to stop. Unfortunately, I haven't a clue what it was and where it should go. I'm hosted on Dreamhost. Anyway, here are the errors I'm getting:

    When I try to post a comment (the comment posts okay): Warning: Cannot modify header information - headers already sent by (output started at ...wp-content/themes/Soho/functions.php:42) in .../wp-includes/pluggable.php on line 850

    When I try to save a post: Warning: Cannot modify header information - headers already sent by (output started at .../wp-content/themes/Soho/functions.php:42) in /.../wp-includes/pluggable.php on line 850

    when I try to edit the style.css (The edit goes through, but the warning comes up every time.) Warning: Cannot modify header information - headers already sent by (output started at .../wp-content/themes/Soho/functions.php:42) in .../wp-admin/theme-editor.php on line 70

    Here is the error I get when I try to upload a picture into a post using the WP's own function: Warning: Cannot modify header information - headers already sent by (output started at .../wp-content/themes/Soho/functions.php:42) in .../wp-includes/classes.php on line 1571

    Just FYI: Raw broke the blog engine completely when I tried it. I had to replace the files in the folder to get back into my blog.

  2. rss milo

    moderator


    rss Posted 3 years ago
    #

    Plugins deactivating helps, the theme (both Raw and Shoho)
    comes with a lots of built in functions,
    if still errors I'll give you another functions file.

  3. rss DLKeur

    member


    rss Posted 3 years ago
    #

    Thank you. I'll try deactivating plugins. Be right back with a report.

  4. rss DLKeur

    member


    rss Posted 3 years ago
    #

    Well, I deactivated all plugins except Akismet and recapcha and wp cache and it's still throwing those same errors, I'm afraid.

  5. rss milo

    moderator


    rss Posted 3 years ago
    #

    WP cache might show you an outdated page, pls clean cache,
    nevertheless I'll give you a stripped functions file for download tomorrow.

  6. rss DLKeur

    member


    rss Posted 3 years ago
    #

    Okay. By the way, I have the cache completely off while I'm working on it, and it's empty. I appreciate your help, truly. Meanwhile, I removed the drop cap function in the functions.php and some of the errors have quit happening. I'm not sure all of them have because I just did it, but I can now edit the style.css and it isn't throwing the cannot modify header info error anymore. I'll report back if the whole issue seems solved. I so thank you for your patience with me and my ignorance.

    This is what I removed:

    function wpguy_initial_cap($content){
    // Regular Expression, matches a single letter
    // * even if it's inside a link tag.
    $searchfor = '/>(]+>)?([^<\s])/';
    // The string we're replacing the letter for
    $replacewith = '>$1<span class="drop">$2</span>';
    // Replace it, but just once (for the very first letter of the post)
    $content = preg_replace($searchfor, $replacewith, $content, 1);
    // Return the result
    return $content;
    }
    // Add this function to the WordPress hook
    add_filter('the_content', 'wpguy_initial_cap');
    add_filter('the_excerpt', 'wpguy_initial_cap');
    add_filter('the_content_rss', 'wpguy_initial_cap');

  7. rss DLKeur

    member


    rss Posted 3 years ago
    #

    It looks like removing that drop caps piece of scripting from the functions.php page solved my issue.

    Three (gulp) more question, though, if I may?

    1) I don't see the l_sidebar.php in the editor listings or in the dir on the server when I FTP in. Where do I modify the static sidebar?

    2) How do I get your home.php page to show as the front page of the blog? I tried both setting a static front page and also the "latest posts" as the front page, and, while setting it to a front page looks somewhat like your Soho demo front page, it isn't quite, and I would like to have the home.php you created be the front page.

    3) I notice seven sidebars listed when going to the theme widgets wizard in the WP. Seven? Where can I find a reference as to where each of these sidebars shows up?

    Thank you, again. I love your themes and use them almost exclusively on my blogs. Fog on dlkeur.com, nukita on ejruek.com, and so on. Your work is phenomenal.

    Dawn

  8. rss DLKeur

    member


    rss Posted 3 years ago
    #

    Umm...now I've got REAL problems. I started putting in widgets and was fine till I tried to put in recent comments and now I've got a fatal error and no way to get that widget out because...well, because it isn't showing anything except the fatal error. I could use that reduced functions.php page. Really. PLEASE? PLEASE?

Reply

You must log in to post.

Design by milo

Milo designs web sites that strike the perfect balance between professional high-class graphics, functionality, usability, user experience, and high performance.