Undefined offset v session.php

Upozornění: Tohle vlákno je hodně staré a informace nemusí být platné pro současné Nette.
ambruslaco
Člen | 7
+
0
-

Dobrý deň!

V logu sa mi každú sekundu objavuje PHP upozornenie:

[21-Apr-2011 13:41:13] PHP Notice:  Undefined offset: 0 in /sroot/www/stranka.sk/libs/Nette/Web/Session.php on line 129

Predmetný riadok:

|| ($variable !== '' && is_object($nf['DATA'][$namespace][$variable]) && (isset($value['V']) ? $value['V']

a toto je fragment kódu zo Session.php z distribúcie Nette (nemenil som nič):

		if (isset($nf['META'])) {
			$now = time();
			// expire namespace variables
			foreach ($nf['META'] as $namespace => $metadata) {
				if (is_array($metadata)) {
					foreach ($metadata as $variable => $value) {
						if ((!empty($value['B']) && $browserClosed) || (!empty($value['T']) && $now > $value['T']) // whenBrowserIsClosed || Time
							|| ($variable !== '' && is_object($nf['DATA'][$namespace][$variable]) && (isset($value['V']) ? $value['V'] : NULL) // Version
								!== NClassReflection::from($nf['DATA'][$namespace][$variable])->getAnnotation('serializationVersion'))) {

							if ($variable === '') { // expire whole namespace
								unset($nf['META'][$namespace], $nf['DATA'][$namespace]);
								continue 2;
							}
							unset($nf['META'][$namespace][$variable], $nf['DATA'][$namespace][$variable]);
						}
					}
				}
			}
		}

Toto je výpis session:

Array ( [__NF] => Array ( [C] => 51 [B] => 0.74809869089548 [DATA] => Array ( [Nette.Web.User/] => Array ( [authenticated] => 1 [identity] => NIdentity Object ( [name:NIdentity:private] => 7 [roles:NIdentity:private] => Array ( [0] => 3 ) [data:NIdentity:private] => Array ( [id_user] => 7 [fb_id] => 1391570934 [username] => kamas [email] => l@gmail.com [date_born] => 1989-08-29 [age] => 21 [gender] => 0 [date_reg] => 2011-03-24 23:16:43 [date_login] => 2011-04-21 14:26:39 [role] => 3  ) [frozen:NFreezableObject:private] => ) [reason] => [expireTime] => 1303397547 [expireDelta] => 7200 [expireIdentity] => [expireBrowser] => 1 [browserCheck] => 1 [authTime] => 1303389115 ) [fbLogin] => Array ( [logged] => 1 ) [Nette.Application/requests] => Array ( ) [Nette.Forms.Form/CSRF] => Array ( [key] => f7f5bd171376153a0afdf15895c40b1d ) [rating62] => [rating95] => Array ( [wasVoted] => 1 ) [rating94] => [rating100] => [rating101] => ) [META] => Array ( [Nette.Forms.Form/CSRF] => Array ( [key] => Array ( [T] => [B] => 1 ) ) [Nette.Web.User/] => Array ( [identity] => Array ( [V] => 0.9.3 ) [browserCheck] => Array ( [T] => [B] => 1 ) ) [rating95] => Array ( [0] => Array ( [T] => 1304596233 [B] => ) ) ) ) )

Neviete náhodou čo to môže spôsobovať? Žiadnu viditeľnú chybu vo fungovaní stránky som nenašiel, ale tisíce rovnakých riadkov v logu ma znepokojuje.

Ďakujem!

Editoval ambruslaco (21. 4. 2011 14:56)

David Grudl
Nette Core | 8228
+
0
-

Nějakým způsobem došlo k poškození struktury session, ale netuším proč.