Canot modify header information (PHP-Fehlerausgabe)

Du hast Probleme beim Einbau oder bei der Benutzung eines Mods? In diesem Forum bist du richtig.
Forumsregeln
phpBB 3.0 hat das Ende seiner Lebenszeit überschritten
phpBB 3.0 wird nicht mehr aktiv unterstützt. Insbesondere werden - auch bei Sicherheitslücken - keine Patches mehr bereitgestellt. Der Einsatz von phpBB 3.0 erfolgt daher auf eigene Gefahr. Wir empfehlen einen Umstieg auf die neuste phpBB-Version, welches aktiv weiterentwickelt wird und für welches regelmäßig Updates zur Verfügung gestellt werden.
Antworten
techno-com
Mitglied
Beiträge: 89
Registriert: 16.08.2010 11:42
Wohnort: 74076 Heilbronn
Kontaktdaten:

Canot modify header information (PHP-Fehlerausgabe)

Beitrag von techno-com »

Habe "phpBB3-SEO_Optimal_titlesV1-0-8" installiert, und jetzt habe ich tlw. folgenden Fehler wenn ich im Forum die Seite wechsle.

Es kann auch sein das dieses Problem schon länger besteht, da ich aber erst jetzt auf Grund eines anderen Problems das Debug mal eingeschaltet habe ich das jetzt aber erst sehen kann.
[phpBB Debug] PHP Notice: in file /includes/functions_content.php on line 981: Undefined variable: width
[phpBB Debug] PHP Notice: in file /includes/functions_content.php on line 982: Undefined variable: height
[phpBB Debug] PHP Notice: in file /includes/functions_content.php on line 981: Undefined variable: width
[phpBB Debug] PHP Notice: in file /includes/functions_content.php on line 982: Undefined variable: height
[phpBB Debug] PHP Warning: in file /includes/session.php on line 1035: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3816)
[phpBB Debug] PHP Warning: in file /includes/functions.php on line 4679: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3816)
[phpBB Debug] PHP Warning: in file /includes/functions.php on line 4681: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3816)
[phpBB Debug] PHP Warning: in file /includes/functions.php on line 4682: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3816)
[phpBB Debug] PHP Warning: in file /includes/functions.php on line 4683: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3816)
funktions_content.php (Zeile 521-1021):
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
//$download_link = append_sid("{$phpbb_root_path}download/file.$phpEx", 'id=' . $attachment['attach_id']);
$download_link = "{$phpbb_root_path}download/file.$phpEx?id=" . $attachment['attach_id'];
$comment_clean = preg_replace('`<[^>]*>`Ui', ' ', $comment);
$block_array += array(
'COMMENT_CLEAN' => $comment_clean,
);
if (!empty($phpbb_seo->seo_opt['rewrite_files'])) {
if (empty($phpbb_seo->seo_url['file'][$attachment['attach_id']])) {
if (($_pos = utf8_strpos($comment, '<br')) !== false) {
$comment_url = strip_tags(utf8_substr($comment, 0, $_pos));
} else {
$comment_url = $comment_clean;
}
$comment_url = utf8_strlen($comment_url) > 60 ? utf8_substr($comment_url, 0, 60) : $comment_url;
$phpbb_seo->seo_url['file'][$attachment['attach_id']] = $phpbb_seo->format_url($comment_url, $phpbb_seo->seo_static['file'][$display_cat]);
}
}
// www.phpBB-SEO.com SEO TOOLKIT END

switch ($display_cat)
{
// Images
case ATTACHMENT_CATEGORY_IMAGE:
$l_downloaded_viewed = 'VIEWED_COUNT';
$inline_link = append_sid("{$phpbb_root_path}download/file.$phpEx", 'id=' . $attachment['attach_id']);
$download_link .= '&mode=view';

$block_array += array(
'S_FLASH_FILE' => true,
'WIDTH' => $width,
'HEIGHT' => $height,
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
'U_VIEW_LINK' => append_sid($download_link . '&view=1'),
// www.phpBB-SEO.com SEO TOOLKIT END
);

$update_count[] = $attachment['attach_id'];
break;

// Images, but display Thumbnail
case ATTACHMENT_CATEGORY_THUMB:
$l_downloaded_viewed = 'VIEWED_COUNT';
$thumbnail_link = append_sid("{$phpbb_root_path}download/file.$phpEx", 'id=' . $attachment['attach_id'] . '&t=1');
$download_link .= '&mode=view';

$block_array += array(
'S_THUMBNAIL' => true,
'THUMB_IMAGE' => $thumbnail_link,
);

$update_count[] = $attachment['attach_id'];
break;

// Windows Media Streams
case ATTACHMENT_CATEGORY_WM:
$l_downloaded_viewed = 'VIEWED_COUNT';

// Giving the filename directly because within the wm object all variables are in local context making it impossible
// to validate against a valid session (all params can differ)
// $download_link = $filename;

$block_array += array(
'U_FORUM' => generate_board_url(),
'ATTACH_ID' => $attachment['attach_id'],
'S_WM_FILE' => true,
);

// Viewed/Heared File ... update the download count
$update_count[] = $attachment['attach_id'];
break;

funktions.php (4672-4724):
// application/xhtml+xml not used because of IE
header('Content-type: text/html; charset=UTF-8');

header('Cache-Control: private, no-cache="set-cookie"');
header('Expires: 0');
header('Pragma: no-cache');

return;
}

/**
* Generate page footer
*/
function page_footer($run_cron = true)
{
global $db, $config, $template, $user, $auth, $cache, $starttime, $phpbb_root_path, $phpEx;
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
global $phpbb_seo;
if (!empty($phpbb_seo)) {
$phpbb_seo->seo_end();
}
// www.phpBB-SEO.com SEO TOOLKIT END

// Output page creation time
if (defined('DEBUG'))
{
$mtime = explode(' ', microtime());
$totaltime = $mtime[0] + $mtime[1] - $starttime;

if (!empty($_REQUEST['explain']) && $auth->acl_get('a_') && defined('DEBUG_EXTRA') && method_exists($db, 'sql_report'))
{
$db->sql_report('display');
}

$debug_output = sprintf('Time : %.3fs | ' . $db->sql_num_queries() . ' Queries | GZIP : ' . (($config['gzip_compress'] && @extension_loaded('zlib')) ? 'On' : 'Off') . (($user->load) ? ' | Load : ' . $user->load : ''), $totaltime);

if ($auth->acl_get('a_') && defined('DEBUG_EXTRA'))
{
if (function_exists('memory_get_usage'))
{
if ($memory_usage = memory_get_usage())
{
global $base_memory_usage;
$memory_usage -= $base_memory_usage;
$memory_usage = get_formatted_filesize($memory_usage);

$debug_output .= ' | Memory Usage: ' . $memory_usage;
}
}

$debug_output .= ' | <a href="' . build_url() . '&explain=1">Explain</a>';
}
}

session.php (1018-1036):
/**
* Sets a cookie
*
* Sets a cookie of the given name with the specified data for the given length of time. If no time is specified, a session cookie will be set.
*
* @param string $name Name of the cookie, will be automatically prefixed with the phpBB cookie name. track becomes [cookie_name]_track then.
* @param string $cookiedata The data to hold within the cookie
* @param int $cookietime The expiration time as UNIX timestamp. If 0 is provided, a session cookie is set.
*/
function set_cookie($name, $cookiedata, $cookietime)
{
global $config;

$name_data = rawurlencode($config['cookie_name'] . '_' . $name) . '=' . rawurlencode($cookiedata);
$expire = gmdate('D, d-M-Y H:i:s \\G\\M\\T', $cookietime);
$domain = (!$config['cookie_domain'] || $config['cookie_domain'] == 'localhost' || $config['cookie_domain'] == '127.0.0.1') ? '' : '; domain=' . $config['cookie_domain'];

header('Set-Cookie: ' . $name_data . (($cookietime) ? '; expires=' . $expire : '') . '; path=' . $config['cookie_path'] . $domain . ((!$config['cookie_secure']) ? '' : '; secure') . '; HttpOnly', false);
}
Satanlagen Technik Forum: http://www.satanlagenforum.de /Satanlagen Shop http://www.satshop-heilbronn.de
Version 3.0.12 Board3 Portal 2.0.2 phpBB SEO Class 0.7.0-/Mode: Advanced Advanced BBcodes Box 3.0.11 (Highslide) / Wer war da 1.2.1 / Thanks for Post 1.3.3 / phpBB Galerie 1.1.6 / Simple Url To Link Name / Picture Auto Resize
Verschoben von phpBB 3.0: Administration und Benutzung nach phpBB 3.0: Mod Support am 26.09.2011 21:45 durch Metzle

Benutzeravatar
Mahony
Ehemaliges Teammitglied
Beiträge: 12178
Registriert: 17.11.2005 22:33
Wohnort: Ostfildern Kemnat
Kontaktdaten:

Re: Canot modify header information (PHP-Fehlerausgabe)

Beitrag von Mahony »

Hallo
Es handelt sich lediglich um Notices.
Wenn du die Meldungen nicht haben möchtest, solltest du die Variablen (in der /includes/functions_content.php ) definieren. siehe dazu auch http://www.php-fehlermeldungen.de/topic20.html

Code: Alles auswählen

$width = '';
$height = ''; 
Das packst du am besten vor

Code: Alles auswählen

$block_array += array(
'S_FLASH_FILE' => true,
'WIDTH' => $width,
'HEIGHT' => $height,

Grüße: Mahony
Taekwondo in Berlin
Wer fragt, ist ein Narr für fünf Minuten, wer nicht fragt, ist ein Narr für immer.
techno-com
Mitglied
Beiträge: 89
Registriert: 16.08.2010 11:42
Wohnort: 74076 Heilbronn
Kontaktdaten:

Re: Canot modify header information (PHP-Fehlerausgabe)

Beitrag von techno-com »

Habe ganz ehrlich absolut nicht verstanden was / warum usw. das ist / soll.... aber ich habe davon ja auch keine Ahnung !

Habe daher die Änderung wie folgt jetzt mal vorgenommen, hoffe ich habe das von dir richtig verstanden (die Neuerung natürlich nicht in "fett" !).

Meine Fehlermeldung wird ja dort aber auch eher unter http://www.php-fehlermeldungen.de/topic24.html beschrieben... da habe ich aber nichts gefunden was sich da mit meiner Datei deckt.
// Images
case ATTACHMENT_CATEGORY_IMAGE:
$l_downloaded_viewed = 'VIEWED_COUNT';
$inline_link = append_sid("{$phpbb_root_path}download/file.$phpEx", 'id=' . $attachment['attach_id']);
$download_link .= '&mode=view';
$width = '';
$height = '';

$block_array += array(
'S_FLASH_FILE' => true,
'WIDTH' => $width,
'HEIGHT' => $height,
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
'U_VIEW_LINK' => append_sid($download_link . '&view=1'),
// www.phpBB-SEO.com SEO TOOLKIT END
);

$update_count[] = $attachment['attach_id'];
break;

// Images, but display Thumbnail
case ATTACHMENT_CATEGORY_THUMB:
Satanlagen Technik Forum: http://www.satanlagenforum.de /Satanlagen Shop http://www.satshop-heilbronn.de
Version 3.0.12 Board3 Portal 2.0.2 phpBB SEO Class 0.7.0-/Mode: Advanced Advanced BBcodes Box 3.0.11 (Highslide) / Wer war da 1.2.1 / Thanks for Post 1.3.3 / phpBB Galerie 1.1.6 / Simple Url To Link Name / Picture Auto Resize
Benutzeravatar
Mahony
Ehemaliges Teammitglied
Beiträge: 12178
Registriert: 17.11.2005 22:33
Wohnort: Ostfildern Kemnat
Kontaktdaten:

Re: Canot modify header information (PHP-Fehlerausgabe)

Beitrag von Mahony »

Hallo
Die headers already sent Fehlermeldungen sind Folgefehler aus dem ersten Fehler.
Die Fehler sollten also nun behoben sein (nachdem du die geänderte Datei hoch geladen hast).


Grüße: Mahony
Taekwondo in Berlin
Wer fragt, ist ein Narr für fünf Minuten, wer nicht fragt, ist ein Narr für immer.
techno-com
Mitglied
Beiträge: 89
Registriert: 16.08.2010 11:42
Wohnort: 74076 Heilbronn
Kontaktdaten:

Re: Canot modify header information (PHP-Fehlerausgabe)

Beitrag von techno-com »

OK, jetzt habe ich es vollständig verstanden... Danke dir vielmals ! :P
Satanlagen Technik Forum: http://www.satanlagenforum.de /Satanlagen Shop http://www.satshop-heilbronn.de
Version 3.0.12 Board3 Portal 2.0.2 phpBB SEO Class 0.7.0-/Mode: Advanced Advanced BBcodes Box 3.0.11 (Highslide) / Wer war da 1.2.1 / Thanks for Post 1.3.3 / phpBB Galerie 1.1.6 / Simple Url To Link Name / Picture Auto Resize
Antworten

Zurück zu „[3.0.x] Mod Support“