Seite 1 von 1

Fehler bei der Session

Verfasst: 22.11.2008 15:41
von Hasu0bs
Hallo,
ich erhalte schon etwas länger den folgenden Fehler. Er tritt nur manchmal auf, eine regelmäßigkeit ist nicht zu erkennen:
(viewonline.php)

Code: Alles auswählen

[phpBB Debug] PHP Notice: in file /viewonline.php on line 480: Undefined index: username
[phpBB Debug] PHP Notice: in file /viewonline.php on line 481: Undefined index: user_colour
[phpBB Debug] PHP Notice: in file /viewonline.php on line 483: Undefined index: session_time
[phpBB Debug] PHP Notice: in file /viewonline.php on line 485: Undefined index: session_ip
[phpBB Debug] PHP Notice: in file /viewonline.php on line 486: Undefined index: session_browser
[phpBB Debug] PHP Notice: in file /viewonline.php on line 488: Undefined index: user_type
[phpBB Debug] PHP Notice: in file /viewonline.php on line 488: Undefined index: user_id
[phpBB Debug] PHP Notice: in file /viewonline.php on line 489: Undefined index: session_id
[phpBB Debug] PHP Notice: in file /viewonline.php on line 490: Undefined index: session_id
[phpBB Debug] PHP Notice: in file /viewonline.php on line 494: Undefined index: user_id
[phpBB Debug] PHP Notice: in file /viewonline.php on line 495: Undefined index: user_type
Verbunden damit ist in der viewonline.php bei dem betreffenden Benutzer keine Browserinformation zu sehen und als Zeit wird der 01.01.1970 angezeigt, also Timestamp 0

Dabei ist mir eben eingefallen, dass glaub ich eine Datenbankabfrage beim Update auf 3.02 nicht funktioniert hat.
Das war die mit DROP index und so weiter, ich meine, das wäre in der Session Tabelle gewesen.
Hat einer eine Idee zur Lösung?

Verfasst: 23.11.2008 16:34
von Hasu0bs
Hat jemand hier Erfahrungen mit diesen Fehlern gemacht?
Übrigends, ich denke dieser Fehler hier hat auch etwas damit zu tun:

Code: Alles auswählen

[phpBB Debug] PHP Notice: in file /includes/session.php on line 2009: Undefined index: datetime
[phpBB Debug] PHP Notice: in file /includes/session.php on line 2028: strtr() [function.strtr]: The second argument is not an array
[phpBB Debug] PHP Notice: in file /includes/session.php on line 2009: Undefined index: datetime
[phpBB Debug] PHP Notice: in file /includes/session.php on line 2028: strtr() [function.strtr]: The second argument is not an array
[phpBB Debug] PHP Notice: in file /includes/session.php on line 2009: Undefined index: datetime
[phpBB Debug] PHP Notice: in file /includes/session.php on line 2028: strtr() [function.strtr]: The second argument is not an array
[phpBB Debug] PHP Notice: in file /includes/session.php on line 2009: Undefined index: datetime
[phpBB Debug] PHP Notice: in file /includes/session.php on line 2028: strtr() [function.strtr]: The second argument is not an array
[phpBB Debug] PHP Notice: in file /includes/session.php on line 2009: Undefined index: datetime
[phpBB Debug] PHP Notice: in file /includes/session.php on line 2028: strtr() [function.strtr]: The second argument is not an array
[phpBB Debug] PHP Notice: in file /includes/session.php on line 2009: Undefined index: datetime
[phpBB Debug] PHP Notice: in file /includes/session.php on line 2028: strtr() [function.strtr]: The second argument is not an array
[phpBB Debug] PHP Notice: in file /includes/session.php on line 2009: Undefined index: datetime
[phpBB Debug] PHP Notice: in file /includes/session.php on line 2028: strtr() [function.strtr]: The second argument is not an array
[phpBB Debug] PHP Notice: in file /includes/session.php on line 2009: Undefined index: datetime
[phpBB Debug] PHP Notice: in file /includes/session.php on line 2028: strtr() [function.strtr]: The second argument is not an array
[phpBB Debug] PHP Notice: in file /includes/session.php on line 2009: Undefined index: datetime
[phpBB Debug] PHP Notice: in file /includes/session.php on line 2028: strtr() [function.strtr]: The second argument is not an array
[phpBB Debug] PHP Notice: in file /includes/session.php on line 2009: Undefined index: datetime
[phpBB Debug] PHP Notice: in file /includes/session.php on line 2028: strtr() [function.strtr]: The second argument is not an array
Der kommt manchmal beim Aufruf der posting.php :( :(

Verfasst: 25.11.2008 18:39
von Hasu0bs
Hat keiner eine Idee? :-(

Verfasst: 25.11.2008 18:49
von Miriam
Überprüfe/repariere mal Deine Tabellen. Ist schon mal ein Anfang. 8)

Verfasst: 27.11.2008 14:06
von Hasu0bs
Hallo zusammen,
danke für den Tipp mit dem reparieren. Aber Leider kommt der Fehler immernoch. Zumindest den in der posting.php habe ich gerade vor mir.

Code: Alles auswählen

[phpBB Debug] PHP Notice: in file /includes/session.php on line 2009: Undefined index: datetime
[phpBB Debug] PHP Notice: in file /includes/session.php on line 2028: strtr() [function.strtr]: The second argument is not an array
Gibt es dafür sonst noch eine Erklärung?

Verfasst: 27.11.2008 16:31
von Miriam
Entschuldige, ich hätte das Posting besser lesen sollen (also im Sinne von inhaltlich verstehen). Diese Index-Meldung bezieht sich auf den Schlüssel eines Arrays.
Hast Du irgendwas mit den Sprachen gemacht?

Verfasst: 27.11.2008 18:54
von Hasu0bs
Hi
Macht ja nichts, ich bin ja froh, dass du mir hilfst :)

An den Sprachen habe ich so direkt nichts geändert. Ich habe nur im Adminbereich eine eigene Sprach-Datei hinzugefügt, für meine eigenen Mods. Aber das hat ja nichts mit der posting.php zu tun.
in der common.php unter /language/de steht immernoch

Code: Alles auswählen

	'datetime'			=> array(
		'TODAY'		=> 'Heute',
		'TOMORROW'	=> 'Morgen',
		'YESTERDAY'	=> 'Gestern',

		'Sunday'	=> 'Sonntag',
		'Monday'	=> 'Montag',
		'Tuesday'	=> 'Dienstag',
		'Wednesday'	=> 'Mittwoch',
		'Thursday'	=> 'Donnerstag',
		'Friday'	=> 'Freitag',
		'Saturday'	=> 'Samstag',

		'Sun'		=> 'So',
		'Mon'		=> 'Mo',
		'Tue'		=> 'Di',
		'Wed'		=> 'Mi',
		'Thu'		=> 'Do',
		'Fri'		=> 'Fr',
		'Sat'		=> 'Sa',

		'January'	=> 'Januar',
		'February'	=> 'Februar',
		'March'		=> 'März',
		'April'		=> 'April',
		'May'		=> 'Mai',
		'June'		=> 'Juni',
		'July'		=> 'Juli',
		'August'	=> 'August',
		'September' => 'September',
		'October'	=> 'Oktober',
		'November'	=> 'November',
		'December'	=> 'Dezember',

		'Jan'		=> 'Jan',
		'Feb'		=> 'Feb',
		'Mar'		=> 'Mär',
		'Apr'		=> 'Apr',
		'May_short'	=> 'Mai',	// Short representation of "May". May_short used because in English the short and long date are the same for May.
		'Jun'		=> 'Jun',
		'Jul'		=> 'Jul',
		'Aug'		=> 'Aug',
		'Sep'		=> 'Sep',
		'Oct'		=> 'Okt',
		'Nov'		=> 'Nov',
		'Dec'		=> 'Dez',
	),
Aber gute Idee, darauf bin ich garnicht gekommen!

Verfasst: 27.11.2008 19:18
von Hasu0bs
Hallo nochmal
Also, ich habe gerade mal so durch die Dateien des Forums geschaut, wie das alles zusammenhängt. Die common.php wird ja schon beim Laden der Session includet, weil das sowieso jede Datei braucht. Und irgendwie hatte ich vorher wohl die user->foramt_date funktion benutzt, die kannte dann die Sprach-Variabeln noch nicht!
Ich glaube, das problem ist gelöst. Wenn es noch was gibt, melde ich mich nochmal.
Danke!!!