• Resolved Teranoxis

    (@teranoxis)


    Hi,

    I’ve been given the job to manage my job’s westite and there is somme errors i can’t find a solution to. Please help….(i’m used to wordpress but this is the first time i encounter this error)

    The problem does not appear ont the frontend but only in the backend.

    at the top of the page the following appear:

    *****************************************************************

    Warning: Cannot modify header information – headers already sent by (output started at /home/SITE_NAME/public_html/wp-config.php:1) in /home/SITE_NAME/public_html/wp-includes/option.php on line 820

    Warning: Cannot modify header information – headers already sent by (output started at /home/SITE_NAME/public_html/wp-config.php:1) in /home/SITE_NAME/public_html/wp-includes/option.php on line 821

    *****************************************************************
    The website wp-config has not blank before <?php and it end by ?>
    the only file i’ve touched recently was wp-config php.ini and .httacces. tried everything (had no backup….) but can’t find out. that’s the only website that does that of a couple i’ve made.

    I’ve already tried to disable plugins, some bugs are gone after i’ve resseted WP SUPER CACHE, and this one remain to be solved.

    Theme is Downtown Version : 1.1.1 (Child) (i don’t have acces to the latest version)

    WordPress is up to date.

    Please help me out the this one.

Viewing 3 replies - 16 through 18 (of 18 total)
  • Good day! I have a similar problem. My problem comes from the google analytics simple plugin. It is not the encoding, when I disable the plugin everything works fine.
    The plugin is located in site.com/wp-content/plugins/google/google.php

    [code]
    <?php
    /*
    Plugin Name: Simple Google Analytics Plugin
    Plugin URI: https://cfcbazar.com
    Description: Adds a Google analytics trascking code to the <head> of your theme, by hooking to wp_head.
    Author: Arakel Horov
    Version: 1.0
    */
    ?>

    <?php
    function wpmudev_google_analytics() { ?>
    <script>
    (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
    (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
    m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
    })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

    ga('create', 'UA-90231730-1', 'auto');
    ga('send', 'pageview');

    </script>

    <?php }
    add_action( 'wp_head', 'wpmudev_google_analytics', 10 );
    [/code]

    Thanks @dougvdotcom – your fix worked for me. I just created a new user and bang. Header issues gone!

    Thanks, easy and fast!

    Hi, good afternoon, could anyone help me with this ??? The truth is that I have a good time and for more that I update or revise spaces and I do not find something that says it is wrong but I get this error:

    Can not modify header information- header already send by (output started at /home/******/public-html/wp-admin/includes/template.php:1995 in / home / public-html / wp-includes / Rest-api.php: 509

    Please someone who gives me a guide what I should do.

Viewing 3 replies - 16 through 18 (of 18 total)
  • The topic ‘WARNING: Cannot modify header information – headers already sent’ is closed to new replies.