Hallo, Gast! (Registrieren)

Wir wünschen allen Besuchern frohe Ostern!

Letzte Ankündigung: MyBB 1.8.37 veröffentlicht (04.11.23)


Benutzer, die gerade dieses Thema anschauen: 1 Gast/Gäste
Cannot modify header information
#1
hallo zusammen habe eben auf meinem ftp eine errorlog textdatei gefunden und diese mal angesehn und folgendes gefunden.

Code:
<error>
    <dateline>1299343135</dateline>
    <script>inc/functions.php</script>
    <line>1622</line>
    <type>2</type>
    <friendly_type>Warning</friendly_type>
    <message>Cannot modify header information - headers already sent by (output started at /var/www/htdocs/ks017/html/rom-online/board/task.php:59)</message>
</error>

<error>
    <dateline>1299343135</dateline>
    <script>inc/functions.php</script>
    <line>1622</line>
    <type>2</type>
    <friendly_type>Warning</friendly_type>
    <message>Cannot modify header information - headers already sent by (output started at /var/www/htdocs/ks017/html/rom-online/board/task.php:59)</message>
</error>

<error>
    <dateline>1299343135</dateline>
    <script>inc/functions.php</script>
    <line>1622</line>
    <type>2</type>
    <friendly_type>Warning</friendly_type>
    <message>Cannot modify header information - headers already sent by (output started at /var/www/htdocs/ks017/html/rom-online/board/task.php:59)</message>
</error>

<error>
    <dateline>1299343135</dateline>
    <script>inc/functions.php</script>
    <line>1622</line>
    <type>2</type>
    <friendly_type>Warning</friendly_type>
    <message>Cannot modify header information - headers already sent by (output started at /var/www/htdocs/ks017/html/rom-online/board/task.php:59)</message>
</error>

<error>
    <dateline>1299343135</dateline>
    <script>inc/functions.php</script>
    <line>1622</line>
    <type>2</type>
    <friendly_type>Warning</friendly_type>
    <message>Cannot modify header information - headers already sent by (output started at /var/www/htdocs/ks017/html/rom-online/board/task.php:59)</message>
</error>

<error>
    <dateline>1299343135</dateline>
    <script>inc/functions.php</script>
    <line>1622</line>
    <type>2</type>
    <friendly_type>Warning</friendly_type>
    <message>Cannot modify header information - headers already sent by (output started at /var/www/htdocs/ks017/html/rom-online/board/task.php:59)</message>
</error>

<error>
    <dateline>1299343135</dateline>
    <script>inc/functions.php</script>
    <line>1622</line>
    <type>2</type>
    <friendly_type>Warning</friendly_type>
    <message>Cannot modify header information - headers already sent by (output started at /var/www/htdocs/ks017/html/rom-online/board/task.php:59)</message>
</error>

<error>
    <dateline>1299343135</dateline>
    <script>inc/functions.php</script>
    <line>1622</line>
    <type>2</type>
    <friendly_type>Warning</friendly_type>
    <message>Cannot modify header information - headers already sent by (output started at /var/www/htdocs/ks017/html/rom-online/board/task.php:59)</message>
</error>

<error>
    <dateline>1299350829</dateline>
    <script>inc/functions.php</script>
    <line>1622</line>
    <type>2</type>
    <friendly_type>Warning</friendly_type>
    <message>Cannot modify header information - headers already sent by (output started at /var/www/htdocs/ks017/html/rom-online/board/task.php:59)</message>
</error>

<error>
    <dateline>1299350829</dateline>
    <script>inc/functions.php</script>
    <line>1622</line>
    <type>2</type>
    <friendly_type>Warning</friendly_type>
    <message>Cannot modify header information - headers already sent by (output started at /var/www/htdocs/ks017/html/rom-online/board/task.php:59)</message>
</error>

<error>
    <dateline>1299350829</dateline>
    <script>inc/functions.php</script>
    <line>1622</line>
    <type>2</type>
    <friendly_type>Warning</friendly_type>
    <message>Cannot modify header information - headers already sent by (output started at /var/www/htdocs/ks017/html/rom-online/board/task.php:59)</message>
</error>

<error>
    <dateline>1299350829</dateline>
    <script>inc/functions.php</script>
    <line>1622</line>
    <type>2</type>
    <friendly_type>Warning</friendly_type>
    <message>Cannot modify header information - headers already sent by (output started at /var/www/htdocs/ks017/html/rom-online/board/task.php:59)</message>
</error>

<error>
    <dateline>1299350829</dateline>
    <script>inc/functions.php</script>
    <line>1622</line>
    <type>2</type>
    <friendly_type>Warning</friendly_type>
    <message>Cannot modify header information - headers already sent by (output started at /var/www/htdocs/ks017/html/rom-online/board/task.php:59)</message>
</error>

<error>
    <dateline>1299350829</dateline>
    <script>inc/functions.php</script>
    <line>1622</line>
    <type>2</type>
    <friendly_type>Warning</friendly_type>
    <message>Cannot modify header information - headers already sent by (output started at /var/www/htdocs/ks017/html/rom-online/board/task.php:59)</message>
</error>

<error>
    <dateline>1299350829</dateline>
    <script>inc/functions.php</script>
    <line>1622</line>
    <type>2</type>
    <friendly_type>Warning</friendly_type>
    <message>Cannot modify header information - headers already sent by (output started at /var/www/htdocs/ks017/html/rom-online/board/task.php:59)</message>
</error>

<error>
    <dateline>1299350829</dateline>
    <script>inc/functions.php</script>
    <line>1622</line>
    <type>2</type>
    <friendly_type>Warning</friendly_type>
    <message>Cannot modify header information - headers already sent by (output started at /var/www/htdocs/ks017/html/rom-online/board/task.php:59)</message>
</error>

und hier mal meine task.php

PHP-Code:
<?php
/**
 * MyBB 1.6
 * Copyright 2010 MyBB Group, All Rights Reserved
 *
 * Website: http://mybb.com
 * License: http://mybb.com/about/license
 *
 * $Id: task.php 5016 2010-06-12 00:24:02Z RyanGordon $
 */
 
ignore_user_abort(true);
@
set_time_limit(0);

define("IN_MYBB"1);
define("NO_ONLINE"1);
define("IN_TASK"1);
define('THIS_SCRIPT''task.php');

require_once 
dirname(__FILE__)."/inc/init.php";

// Load language
$lang->set_language($mybb->settings['bblanguage']);
$lang->load("global");
$lang->load("messages");

if(
function_exists('mb_internal_encoding') && !empty($lang->settings['charset']))
{
    @
mb_internal_encoding($lang->settings['charset']);
}

require_once 
MYBB_ROOT."inc/functions_task.php";

// Are tasks set to run via cron instead & are we accessing this file via the CLI?
// php task.php [tid]
if(PHP_SAPI == "cli")
{
    
// Passing a specific task ID
    
if($_SERVER['argc'] == 2)
    {
        
$query $db->simple_select("tasks""tid""tid='".intval($_SERVER['argv'][1])."'");
        
$tid $db->fetch_field($query"tid");
    }

    if(
$tid)
    {
        
run_task($tid);
    }
    else
    {
        
run_task();
    }
}
// Otherwise false GIF image, only supports running next available task
else
{
    
// Send our fake gif image (clear 1x1 transparent image)
    
header("Content-type: image/gif");
    echo 
base64_decode("R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==");
    
    
// If the use shutdown functionality is turned off, run any shutdown related items now.
    
if($mybb->settings['useshutdownfunc'] != || $mybb->use_shutdown == true)
    {
        
add_shutdown("run_task");
    }
    else
    {
        
run_task();
    }
}
?>

was hat die fehlermeldung zu bedeuten und wie bekomme ich diesen weg.

vielen dank im vorraus für eure hilfe.

grüssle marcel
#2
Dass task.php da eine Ausgabe macht ist normal. Ist die Frage wie das zu functions.php Zeile 1622 kommt...
#3
hier mal die zeile 1622 aus der funktons.php

PHP-Code:
header($cookiefalse); 
#4
Das kann man problemlos selber schauen. Wink Der Code sollte niemals ausgeführt werden. Hast du irgendwas verändert?
[Bild: banner.png]

Bitte die Foren-Regeln beachten und im Profil die verwendete MyBB-Version angeben.
#5
nein nicht das ich wüsste. was muss/soll ich nun tun?
#6
hey,
ich habe mit einem ähnlichen problem zu kämpfen, seit einigen tagen bekomme ich folgende meldung:

Zitat:Your copy of MyBB running on KickAss (http://www.gilde-kickass.de) has experienced an error. Details of the error include:
---
Type: 2
File: inc/functions.php (Line no. 1697)
Message
Cannot modify header information - headers already sent by (output started at /usr/www/users/gildenp/mybb/task.php:59)

ich habe schon die funtions.php und die task.php neu hochgeladen ohne dass der fehler verschwunden ist, hier meine beiden dateien:

task.php:
PHP-Code:
<?php
/**
 * MyBB 1.6
 * Copyright 2010 MyBB Group, All Rights Reserved
 *
 * Website: http://mybb.com
 * License: http://mybb.com/about/license
 *
 * $Id: task.php 5683 2011-11-29 15:02:41Z Tomm $
 */
 
ignore_user_abort(true);
@
set_time_limit(0);

define("IN_MYBB"1);
define("NO_ONLINE"1);
define("IN_TASK"1);
define('THIS_SCRIPT''task.php');

require_once 
dirname(__FILE__)."/inc/init.php";

// Load language
$lang->set_language($mybb->settings['bblanguage']);
$lang->load("global");
$lang->load("messages");

if(
function_exists('mb_internal_encoding') && !empty($lang->settings['charset']))
{
    @
mb_internal_encoding($lang->settings['charset']);
}

require_once 
MYBB_ROOT."inc/functions_task.php";

// Are tasks set to run via cron instead & are we accessing this file via the CLI?
// php task.php [tid]
if(PHP_SAPI == "cli")
{
    
// Passing a specific task ID
    
if($_SERVER['argc'] == 2)
    {
        
$query $db->simple_select("tasks""tid""tid='".intval($_SERVER['argv'][1])."'");
        
$tid $db->fetch_field($query"tid");
    }

    if(
$tid)
    {
        
run_task($tid);
    }
    else
    {
        
run_task();
    }
}
// Otherwise false GIF image, only supports running next available task
else
{
    
// Send our fake gif image (clear 1x1 transparent image)
    
header("Content-type: image/gif");
    echo 
base64_decode("R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==");
    
    
// If the use shutdown functionality is turned off, run any shutdown related items now.
    
if($mybb->use_shutdown == true)
    {
        
add_shutdown("run_task");
    }
    else
    {
        
run_task();
    }
}
?>

und in zeile 1697 der functions.php, genauso wie bei dem threadersteller:
PHP-Code:
    header($cookiefalse); 
[Bild: BT_hor.jpg]
#7
soll ich die zeile bei der functions.php einfach rauslöschen oder wie kann ich das beheben? xD wenn stefan meint der code sollte eh nicht ausgeführt werden
[Bild: BT_hor.jpg]
#8
würde mich über eine antwort freuen, nervt jeden tag mehrere mails deswegen zu bekommen. danke schön Toungue.
[Bild: BT_hor.jpg]
#9
Die Meldung sagt schlichtweg nicht aus, wo das Problem liegt. Möglicherweise ist ein Plugin der Verursacher.
[Bild: banner.png]

Bitte die Foren-Regeln beachten und im Profil die verwendete MyBB-Version angeben.
#10
benötigst du mehr informationen? oder wie finde ich raus woran es liegt, was ich machen kann....ich habe auch schon die ursprungsdateien hochgeladen und dann das googleseo halt wieder hinzugefügen lassen, also ist eigentlich nur die änderung an der datei vollzogen worden. und das lief unter 1.6.6 ja ohne probleme
[Bild: BT_hor.jpg]


Möglicherweise verwandte Themen…
Thema Verfasser Antworten Ansichten Letzter Beitrag
  "Warning (2) Cannot modify header information"... Koelner 19 3.556 30.05.2013, 13:44
Letzter Beitrag: Koelner
Car Cannot modify Header Information :-( iProfi 30 9.293 03.03.2011, 16:27
Letzter Beitrag: Blubb
  Cannot modify header information nach Änderung in settings.php Tobi675 7 3.055 05.02.2011, 18:44
Letzter Beitrag: Michael
  Cannot modify header information - headers already sent by... snoop 2 1.909 17.11.2010, 20:51
Letzter Beitrag: snoop