http://www.phpbb.de/community/viewtopic ... &p=1124320MartectX hat geschrieben:Dieser Fehler wurde mit 2.0.1 behoben. Ich nehme an, Du benutzt noch 2.0.0?Helmut hat geschrieben:ich habe gerade einen kleinen Fehler gefunden und zwar in Zusammenhang mit der Registrierung eines neuen Users. [...] Gehe ich hier her und ändere die Sprache wenn noch keine Felder sonst ausgefüllt sind, dann bekomme ich folgende Fehlermeldung:
Code: Alles auswählen
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4237: Undefined index: AUTOMATIC_DST_DISPLAY [phpBB Debug] PHP Notice: in file /includes/functions.php on line 4237: Undefined index: automatic_dst_timezones [phpBB Debug] PHP Notice: in file /includes/functions.php on line 4237: strtr() [function.strtr]: The second argument is not an array.
http://www.phpbb.de/community/viewtopic ... &p=1124320Helmut hat geschrieben:Hallo MartectX,
neee, ich habe schon die aktuelle Version 2.0.1 drinnen, aber hatte einen Tippfehler in der session.php gehabt, als ich nochmal alles durchgegangen war. Bis jetzt ist mir der Fehler auch nicht aufgefallen, obwohl ich diese Version schon ein paar Monate drauf habe.
Gruß Helmut
Ich hab jetzt nahezu das gleiche Problem mit phpbb 3.0.6 und automatic dst 2.0.2 - auf meinem lokalen Testsystem:
Code: Alles auswählen
[phpBB Debug] PHP Notice: in file /includes/automatic_dst.php on line 142: Undefined index: automatic_dst_timezones
[phpBB Debug] PHP Notice: in file /includes/automatic_dst.php on line 142: strtr() [function.strtr]: The second argument is not an array
Code: Alles auswählen
if ($this->data['user_id'] != ANONYMOUS)
{
$this->lang_name = (file_exists($this->lang_path . $this->data['user_lang'] . "/common.$phpEx")) ? $this->data['user_lang'] : basename($config['default_lang']);
//Quickly change language
if ($lang_name = request_var('lang', ''))
{
$sql = 'SELECT lang_id
FROM ' . LANG_TABLE . '
WHERE lang_dir = \'' . $db->sql_escape($lang_name) . '\'';
$result = $db->sql_query($sql);
$lang_exists = (bool) $db->sql_fetchfield('lang_id');
$db->sql_freeresult($result);
if ($lang_exists && file_exists($phpbb_root_path . 'language/' . basename($lang_name) . "/common.$phpEx"))
{
$this->lang_name = basename($lang_name);
}
}
//-------------------------
$this->date_format = $this->data['user_dateformat'];
}
else
{
$this->lang_name = basename($config['default_lang']);
//Quickly change language
if ($lang_name = request_var('lang', ''))
{
$sql = 'SELECT lang_id
FROM ' . LANG_TABLE . '
WHERE lang_dir = \'' . $db->sql_escape($lang_name) . '\'';
$result = $db->sql_query($sql);
$lang_exists = (bool) $db->sql_fetchfield('lang_id');
$db->sql_freeresult($result);
if ($lang_exists && file_exists($phpbb_root_path . 'language/' . basename($lang_name) . "/common.$phpEx"))
{
$this->lang_name = basename($lang_name);
}
}
//----------------------------------
$this->date_format = $config['default_dateformat'];
LG Un1