phpBB3 + Portal "Cannot Modify Head Information"

Hallo Leute :slight_smile:

Ich weiß leider nicht ob es in Ordnung ist etwas wegen phpBB3 zu fragen, aber ich tus mal :smiley:

Und zwar ich hab mir das gute Forum geholt, installiert und dann den Portal Mod hinzugefügt.

Das Forum ist was SEO Optimierung angeht natürlich nicht unbedingt das Beste, daher hab ich mir eine kleine Modifikation geladen und diese funktioniert auch ganz nett :slight_smile:

Nun ist das Problem, dass ich eine kleine Fehlermeldung bekomme und ich micht mit php nicht so gut auskenne, daher muss ich einfach mal hier fragen:

Folgende Fehlermeldung(en) bekomme ich:

[phpBB Debug] PHP Notice: in file /includes/functions_seo.php on line 269: Cannot modify header information - headers already sent by (output started at /cache/tpl_WoWCataclismo_overall_header.html.php:2) [phpBB Debug] PHP Notice: in file /includes/functions_seo.php on line 270: Cannot modify header information - headers already sent by (output started at /cache/tpl_WoWCataclismo_overall_header.html.php:2)

Code functions_seo:

[code]function seo_footer()
{
global $template, $user;

    global $phpbb_root_path, $phpEx;

    $path = (!empty($_SERVER['REQUEST_URI'])) ? $_SERVER['REQUEST_URI'] : getenv('REQUEST_URI');

    if (substr($path, 1, 5) . ".$phpEx" === "index.$phpEx")
    {

#269 header(‚HTTP/1.1 301 Moved Permanently‘);
#270 header('Location: ’ . append_sid($phpbb_root_path));
exit();
}

    $string = '<br />' . base64_decode('U0VPIE1PRCAmY29weTsgMjAwNyA8YSBocmVmPSJodHRwOi8vc3RhcnRyZWtndWlkZS5jb20iPlN0YXJUcmVrR3VpZGU8L2E+');
    $template->assign_var('DEBUG_OUTPUT', (isset($template->_tpldata['.'][0]['DEBUG_OUTPUT'])) ? $template->_tpldata['.'][0]['DEBUG_OUTPUT'] . $string : $string);

    return;

}[/code]

Code tpl_WoWCataclismo_overall_header.html:
(Cache Datei)
Hier weiß ich leider nicht wo genau der Fehler liegt, daher poste ich mal die ersten 64 Code Zeilen.

[code]<?php if (!defined('IN_phpBB')) exit; ?>

<?php echo (isset($this->_rootref['META'])) ? $this->_rootref['META'] : ''; ?> <?php echo (isset($this->_rootref['SITENAME'])) ? $this->_rootref['SITENAME'] : ''; ?> • <?php if ($this->_rootref['S_IN_MCP']) { echo ((isset($this->_rootref['L_MCP'])) ? $this->_rootref['L_MCP'] : ((isset($user->lang['MCP'])) ? $user->lang['MCP'] : '{ MCP }')); ?> • <?php } else if ($this->_rootref['S_IN_UCP']) { echo ((isset($this->_rootref['L_UCP'])) ? $this->_rootref['L_UCP'] : ((isset($user->lang['UCP'])) ? $user->lang['UCP'] : '{ UCP }')); ?> • <?php } echo (isset($this->_rootref['PAGE_TITLE'])) ? $this->_rootref['PAGE_TITLE'] : ''; ?> <?php if ($this->_rootref['S_ENABLE_FEEDS']) { if ($this->_rootref['S_ENABLE_FEEDS_OVERALL']) { ?><?php } if ($this->_rootref['S_ENABLE_FEEDS_NEWS']) { ?><?php } if ($this->_rootref['S_ENABLE_FEEDS_FORUMS']) { ?><?php } if ($this->_rootref['S_ENABLE_FEEDS_TOPICS']) { ?><?php } if ($this->_rootref['S_ENABLE_FEEDS_TOPICS_ACTIVE']) { ?><?php } if ($this->_rootref['S_ENABLE_FEEDS_FORUM'] && $this->_rootref['S_FORUM_ID']) { ?><?php } if ($this->_rootref['S_ENABLE_FEEDS_TOPIC'] && $this->_rootref['S_TOPIC_ID']) { ?><?php } } ?> // _rootref['S_USER_PM_POPUP']) { ?> if (<?php echo (isset($this->_rootref['S_NEW_PM'])) ? $this->_rootref['S_NEW_PM'] : ''; ?>) { popup('<?php echo (isset($this->_rootref['UA_POPUP_PM'])) ? $this->_rootref['UA_POPUP_PM'] : ''; ?>', 400, 225, '_phpbbprivmsg'); } <?php } ?> function popup(url, width, height, name) { if (!name) { name = '_popup'; } window.open(url.replace(/&/g, '&'), name, 'height=' + height + ',resizable=yes,scrollbars=yes,width=' + width); return false; } function jumpto() { var page = prompt('<?php echo ((isset($this->_rootref['LA_JUMP_PAGE'])) ? $this->_rootref['LA_JUMP_PAGE'] : ((isset($this->_rootref['L_JUMP_PAGE'])) ? addslashes($this->_rootref['L_JUMP_PAGE']) : ((isset($user->lang['JUMP_PAGE'])) ? addslashes($user->lang['JUMP_PAGE']) : '{ JUMP_PAGE }'))); ?>:', '<?php echo (isset($this->_rootref['ON_PAGE'])) ? $this->_rootref['ON_PAGE'] : ''; ?>'); var per_page = '<?php echo (isset($this->_rootref['PER_PAGE'])) ? $this->_rootref['PER_PAGE'] : ''; ?>'; var base_url = '<?php echo (isset($this->_rootref['A_BASE_URL'])) ? $this->_rootref['A_BASE_URL'] : ''; ?>'; if (page !== null && !isNaN(page) && page == Math.floor(page) && page > 0) { if (base_url.indexOf('?') == -1) { document.location.href = base_url + '?start=' + ((page - 1) * per_page); } else { document.location.href = base_url.replace(/&/g, '&') + '&start=' + ((page - 1) * per_page); } } }[/code] Hier wäre zu guter letzt der Code von der [b]richtigen overall_header.html[/b] [code] {META} {SITENAME} • {L_MCP} • {L_UCP} • {PAGE_TITLE} // 0) { if (base_url.indexOf('?') == -1) { document.location.href = base_url + '?start=' + ((page - 1) * per_page); } else { document.location.href = base_url.replace(/&/g, '&') + '&start=' + ((page - 1) * per_page); } } }[/code] Ich hoffe mein Beitrag ist nicht zu Code lastig... Vielleicht kann mir ja einer von euch helfen und mir sagen welche Datei ich genau bearbeiten muss und mit was, ich hab nämlich echt keinen Plan :hail: Also schon mal danke im Vorraus :slight_smile: Gruß talktothehand

Du kannst die header nur setzen wenn noch kein output stattgefunden hat.
Keine doctypes und nicht mal whitespaces

Du kannst die header nur setzen wenn noch kein output stattgefunden hat.
Keine doctypes und nicht mal whitespaces

Es darf keine Ausgabe stattfinden, bevor Header gesendet werden. Vielleicht ha du vor der öffnenden PHP-Klammer ein Leerzeichen reingeschummelt? Ansonsten musst du wohl suchen :ps:

Mfg :wink2:

/edit: zu langsam

na toll jz kann ich suchen, dass kann dauern :smiley:

thx schon mal ^^

Suchen? :ps:

SChau doch einfach in welcher Zeile dich PHP anmeckert.

Zeile 2 bspw :wink:

Dort wo du den Doctype einsetzen lässt - das ist gewissermaßen schon eine Ausgabe und folglich stört genau DAS PHP

jap ich kenn mich ned so gut aus mit php :p

ok soll ich jetzt alles löschen bis ich zum ersten php stoße, oder kann ich das irgendwie umgehn ^.^

ach gott muss sich das für euch beknackt anhörn :p