TYPO3-Testaccount
Testen Sie die aktuellste TYPO3-Version kostenlos und unverbindlich für einen Monat!

Jetzt testen!

Schulungen

jetzt buchen

Probleme mit TMENU - Update von 4.5.1 auf 4.6.1


Autor Nachricht
Verfasst am: 25. 01. 2012 [10:21]
Thomas27
Themenersteller
Dabei seit: 10.12.2004
Beiträge: 105
Hallo,

meine Typo 3 Seite läuft seit jahren stabil, aber beim Update auf die neue Version 4.6.2 habe ich folgendes Problem:

folgende Umstiegsmaßnahmen wurden getätigt
- install tool: - update wizard, db compare, alle Konflikte in DB aufgelöst, alle Temp Ordnerinhalte gelöscht, Clear DB aufgerufen, localconf.php extensions entfernt und auf ein Minimum reduziert

es sind z.Z. nur die nötigsten Extensions installiert, da sollte es keine Konflikte geben

Mein Problem ist jetzt, dass das ganz normale tmenu, welches über Jahre so funktioniert hat, jetzt folgende Fehlermeldung ausgibt (siehe unter TS):

TYPOSCRIPT
hp_template_bottom_menu >
hp_template_bottom_menu = HMENU 
hp_template_bottom_menu.special = list
hp_template_bottom_menu.special.value = 209
hp_template_bottom_menu.special.entryLevel = 1
	if {
		value = 209
		equals = 1
	}
hp_template_bottom_menu {
  1=TMENU
 1 {
 wrap = <ul class="navfooter">|</ul>
		expAll = 1
		noBlur = 1
		NO = 1
		NO {
			ATagTitle.field = abstract // description // subtitle // title
			wrapItemAndSub = |*| <li> | </li> |*| <li class="last"> | </li>
			stdWrap.htmlSpecialChars = 1
		}
		IFSUB < .NO
		IFSUB {
			wrapItemAndSub = |*| <li onmouseover="" class="dir"> | </li> |*| <li id="dirlast"> | </li>
		}
 }
 2 < .1
	2 {
		wrap = <ul id="nav2">|</ul>
		ACT.wrapItemAndSub = <li id="nav2act">|</li>
	}
 
	3 < .2
	3 {
		wrap = <ul id="nav3">|</ul>
		ACT.wrapItemAndSub = <li id="nav3act">|</li>
	}
}


Fehlermeldung im FE:

#1: PHP Runtime Notice: Non-static method tslib_cObj::getKey() should not be called statically, assuming $this from incompatible context in .../typo3_src-4.6.1/typo3/sysext/cms/tslib/class.tslib_menu.php line 178 (More information)

t3lib_error_Exception thrown in file
.../typo3_src-4.6.1/t3lib/error/class.t3lib_error_errorhandler.php in line 105.

10 t3lib_error_ErrorHandler::handleError(2048, "Non-static method tslib_cObj::getKey() should not …atically, assuming $this from incompatible context", ".../typo3…-4.6.1/typo3/sysext/cms/tslib/class.tslib_menu.php", 178, array)


.../typo3_src-4.6.1/typo3/sysext/cms/tslib/class.tslib_menu.php:

00176: }
00177: // EntryLevel

00178: $this->entryLevel = tslib_cObj::getKey (

00179: isset($conf['entryLevel.'])
00180: ? $this->parent_cObj->stdWrap($conf['entryLevel'], $conf['entryLevel.'])


..............................



Weitere Probleme nach dem Umstiegt:
Es sind ein paar Seitentitel, BEschreibungen, Keywörter und Records verschwunden??? Im BE ist dann jediglich noch das Icon der Seite in der jeweiligen Struktur vorhanden??? Das finde ich schon krass!

Fehlermeldungen im BE:
PHP Warning
PHP Warning: Illegal string offset 'description' in .../typo3_src-4.6.1/t3lib/class.t3lib_befunc.php line 2366

So ist der Umstieg erst einmal nicht zu empfehlen!
ProfilWWW
Verfasst am: 27. 01. 2012 [11:02]
Julian.Hofmann
Dabei seit: 18.05.2007
Beiträge: 1867
Hallo Thomas.

Der Teil hat mich zumindest stutzig gemacht:
Thomas27 schrieb:

00176: }
00177: // EntryLevel

EntryLevel in einem HMENU special=list? Das hat lediglich die value-Eigenschaft, jedoch, kein entryLevel. Vermutlich wurde das bislang einfach von TYPO3 dann ignoriert, während es jetzt Probleme macht, weil nicht korrekt (4.6 ist an vielen Stellen deutlich exakter und erwartet saubereren Code).

Viel Grüße
Julian
Profil
Verfasst am: 27. 01. 2012 [12:00]
Thomas27
Themenersteller
Dabei seit: 10.12.2004
Beiträge: 105
Hallo Julian,

auf deiner Vermutung hin, habe ich mal folgendes probiert:

TYPOSCRIPT
hp_template_bottom_menu >
hp_template_bottom_menu = HMENU 
hp_template_bottom_menu.special = list
hp_template_bottom_menu.special.value = 209
#hp_template_bottom_menu.special.entryLevel = 1
#	if {
#		value = 209
#		equals = 1
#	}
hp_template_bottom_menu {
  1=TMENU
# 1 {
# wrap = <ul class="navfooter">|</ul>
		#expAll = 1
		#noBlur = 1
#		NO = 1
#		NO {
#			ATagTitle.field = abstract // description // subtitle // title
#			wrapItemAndSub = |*| <li> | </li> |*| <li class="last"> | </li>
#			#stdWrap.htmlSpecialChars = 1
#		}
#		IFSUB < .NO
#		IFSUB {
#			wrapItemAndSub = |*| <li onmouseover="" class="dir"> | </li> |*| <li id="dirlast"> | </li>
#		}
# }
 #2 < .1
#	2 {
#		wrap = <ul id="nav2">|</ul>
#		ACT.wrapItemAndSub = <li id="nav2act">|</li>
#	}
 #
#	3 < .2
#	3 {
#		wrap = <ul id="nav3">|</ul>
#		ACT.wrapItemAndSub = <li id="nav3act">|</li>
#	}
}


Es ist also nur noch das TMenü aktiv, ohne Konfiguration.
Fazit -> der Fehler von oben wird ausgeworfen
ProfilWWW
Verfasst am: 27. 01. 2012 [12:30]
Julian.Hofmann
Dabei seit: 18.05.2007
Beiträge: 1867
Oh... Bei genauerem Hingucken und im Core rumschauen, würde ich sagen:
Herzlichen Glückwunsch, Du darfst einen Bugreport schreiben icon_wink.gif

Merkwürdig finde ich nur, dass es niemand anderen bisher zu geben scheint, der das Problem hat... icon_confused.gif

[Dieser Beitrag wurde 1mal bearbeitet, zuletzt am 27.01.2012 um 12:30.]
Profil
Verfasst am: 06. 03. 2012 [17:05]
bennib2
Dabei seit: 08.09.2009
Beiträge: 2
kann den fehler auch reproduzieren, TYPO3 4.6.4 und php 5.4