Re: STK meldet "Undefined variable: ....."
Verfasst: 15.08.2013 08:17
So sieht es aus wenn ich das STK aufrufe [ externes Bild ]
phpBB.de - Die deutsche phpBB-Community
https://www.phpbb.de/community/
DEBUG-Mods aktiv:Miriam hat geschrieben:KB:debugmode
Mal sehen, ob wir da ein bisschen mehr Output provozieren können.
portal.php
Code: Alles auswählen
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4833: Undefined variable: l_users
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4835: Undefined variable: l_online_users_portal
[phpBB Debug] PHP Warning: in file /includes/functions.php on line 5074: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3795)
[phpBB Debug] PHP Warning: in file /includes/functions.php on line 5076: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3795)
[phpBB Debug] PHP Warning: in file /includes/functions.php on line 5077: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3795)
[phpBB Debug] PHP Warning: in file /includes/functions.php on line 5078: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3795)
functions.php
Zeile 4833 bis 4855
Code: Alles auswählen
'TOTAL_USER_BOARD' => $l_users,
'TOTAL_USERS_ONLINE' => $l_online_users,
'TOTAL_USERS_PORTAL_ONLINE' => $l_online_users_portal,
functions.php
Zeile 5074 bis 5078
Code: Alles auswählen
// 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');
if ($user->data['user_accept_rules'] == 0 && $user->data['is_registered'] && !$user->data['is_bot'] && (request_var('mode', '') != 'terms'))
{
if (confirm_box(true))
{
$sql = 'UPDATE ' . USERS_TABLE . "
SET user_accept_rules = '1'
WHERE user_id = " . $user->data['user_id'];
$db->sql_query($sql);
}
else
{
confirm_box(false, sprintf($user->lang['NEW_RULES'], '<a href="' . append_sid("{$phpbb_root_path}ucp.$phpEx", 'mode=terms') . '">', '</a>'));
header("Location: " . append_sid("{$phpbb_root_path}ucp.$phpEx?mode=logout&sid=" . $user->session_id));
}
}
return;
index.php
wie vorstehend, "zuzüglich"
Code: Alles auswählen
[phpBB Debug] PHP Notice: in file /includes/gallery/config/config.php on line 29: Undefined index: disp_total_images
config.php
Zeile 22 bis 30
Code: Alles auswählen
static public function get($key)
{
if (self::$loaded === false)
{
self::load();
}
return self::$config[$key];
}
Code: Alles auswählen
'TOTAL_USER_BOARD' => $l_users,
'TOTAL_USERS_ONLINE' => $l_online_users,
'TOTAL_USERS_PORTAL_ONLINE' => $l_online_users_portal
Code: Alles auswählen
'TOTAL_USER_BOARD' => (isset($l_users)) ? $l_users : '',
'TOTAL_USERS_ONLINE' => $l_online_users,
'TOTAL_USERS_PORTAL_ONLINE' => (isset($l_online_users_portal)) ? $l_online_users_portal : '',
Code: Alles auswählen
static public function get($key)
{
Code: Alles auswählen
if ($key == 'disp_total_images') return;
Ich verstehe die Welt nicht mehrMiriam hat geschrieben:Na gut,
kommen wir also erst einmal zu diesen Codefragmenten (die haben aber nicht direkt etwas mit dem Anmeckern beim STK zu tun)
error_reporting
auf dem Testboard verhindert aber eine Ausgabe.