Jump to content

Cannot modify header information


gwolff2005
Go to solution Solved by subhomoy,

Recommended Posts

Hi guys, I need your help.

My website was working fine. On my page (guntmarwolff.com) I have amongst other things a small teaser for my wordpress blog (left bottom)  (which is on another site).
As I said everything is working fine,

Then I installed wp touch on my blog site ( a plugin which detects if a mobile device enters the blog page). Since then I get this error message.
 

Warning: Cannot modify header information - headers already sent by (output started at /www/htdocs/w010930a/index.php:3) in /www/htdocs/w010930a/blog/wp-content/plugins/wptouch/core/class-wptouch-pro.php on line 404

 

When I deactivate the plugin the error message is gone.But for obvious reasons I need teh plugin. So what do I need to do.

Tried already to delete all empty spaces. Did not help.

Funny thing. While writing this, the error is gone in firefox but still there in chrome and IE.

The error was as well shown to me yesterday evening and then after refreshing it dissappear until this morning...
But at the same time the error is shown on other devices as well. So it is not because of my settings.

 

Here is the code around index.php:3

<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
<script src="http://code.jquery.com/jquery-1.10.1.min.js"></script>
<?php
if(isset($_GET['mVar'])){
    session_start();
    $_SESSION['views']=1; // Declaring a session to track the visits
}
if(!$_SESSION['views'] == 1){ // Checking the session and doing the redirection

and here is the code around class-wptouch-pro.php:404

}
        }
         if ( !isset( $_COOKIE[ WPTOUCH_CACHE_COOKIE ] ) || ( isset( $_COOKIE[ WPTOUCH_CACHE_COOKIE ] ) && $_COOKIE[ WPTOUCH_CACHE_COOKIE] != $cookie_value ) ) {setcookie( WPTOUCH_CACHE_COOKIE, $cookie_value, time() + 3600, '/' );
            $_COOKIE[ WPTOUCH_CACHE_COOKIE ] = $cookie_value;
        }
        if ( !is_admin() ) {
            do_action( 'wptouch_cache_page' );
        }
    }

Thnaks so much in advance for your help.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.