Jump to content

Cannot modify header information


gwolff2005

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
https://forums.phpfreaks.com/topic/286903-cannot-modify-header-information/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.