Zum Inhalt springen

RealUrl, mehrere Domains, Mehrsprachig "postVarSet-Fehler"

Erstellt am 7. September 2009 · Noch keine Antworten

Tags: RealURL, URLs & Routing, TYPO3 4, Frage

Unbekannter Benutzer ·

Hallo zusammen,

ich habe ein Problem was mich jetzt schon mehrere Tage beschäftigt.

Folgende Situation:

Typo3 4.2.8
Templavoila 1.3.7
RealUrl 1.5.3

In einer Typo3-Instanz sind 10 verschiede Webseiten mit verschiedenen Domains. Alle Seiten sind mehrsprachig (de,en,ru).

Wenn ich nun RealUrl aktiviere, dann funktioniert es auch in der ersten Ebene, sobald ich aber auf ein Submenü klicke bekomme ich "Reason: Segment "..." was not a keyword for a postVarSet as expected!"

Root-Ordner (Weiterleitung auf Startseite)
|- Startseite (Wird angezeigt)
|- Presse (Wird angezeigt)
|--- Pressemitteilung (Fehlermeldung)
usw.

Woran könnte das liegen? Ich habe Google auch schon ausgequetscht, allerdings ohne was nützliches gefunden zu haben.

Anbei noch einige Konfigurations-Einstellungen, eine Webseite kann ich euch nicht zeigen da der Entwicklungsserver im Intranet läuft.

Setup:

config.simulateStaticDocuments = 0
config.baseURL = http://domain.com/
config.tx_realurl_enable = 1
config.prefixLocalAnchors = all

realurl_conf.php

$RootPID = array(
      'sub1.domain.com'  => '236',
      'sub2.domain.com'  => '875',
      'sub3.domain.com'  => '1',
      ... usw.
);

$TYPO3_CONF_VARS['FE']['addRootLineFields'].= ',tx_realurl_pathsegment';
$TYPO3_CONF_VARS['EXTCONF']['realurl'] = array(
    '_DEFAULT' => array(
        'init' => array(
            'enableCHashCache' => true,
            'appendMissingSlash' => 'ifNotFile',
            'enableUrlDecodeCache' => true,
            'enableUrlEncodeCache' => true,
            //'postVarSet_failureMode' => 'ignore',
        ),
        'redirects' => array(),
        'preVars' => array(
            array(
                'GETvar' => 'no_cache',
                    'valueMap' => array(
                        'nc' => 0,
                    ),
                    'noMatch' => 'bypass',
                ),
                array(
                    'GETvar' => 'L',
                    'valueMap' => array(
                        'de' => '0',
                        'en' => '1',
                        'ru' => '2',
                    ),
                    'valueDefault' => 'de',
                    'noMatch' => 'bypass',
                ),
            ),
			'pagePath' => array(
				'type' => 'user',
				'userFunc' => 'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
				'spaceCharacter' => '-',
				'languageGetVar' => 'L',
				'firstHitPathCache' => true,
				'segTitleFieldList'=>'tx_realurl_pathsegment,alias,nav_title,title',
				'disablePathCache' => 0, 
				'expireDays' => 3,
				'rootpage_id' => $RootPID[$_SERVER['HTTP_HOST']],
            ),
            'fixedPostVars' => array(),
            'postVarSets' => array(
                '_DEFAULT' => array(
                    // news archive parameters
                    'archive' => array(
                        array(
                            'GETvar' => 'tx_ttnews[year]' ,
                        ),
                        array(
                            'GETvar' 	=> 'tx_ttnews[month]' ,
                            'valueMap' 	=> array(
                            'january' 	=> '01',
                            'february' 	=> '02',
                            'march' 	=> '03',
                            'april' 	=> '04',
                            'may' 		=> '05',
                            'june' 		=> '06',
                            'july' 		=> '07',
                            'august' 	=> '08',
                            'september' => '09',
                            'october' 	=> '10',
                            'november' 	=> '11',
                            'december' 	=> '12',
                        )
                    ),
                ),
                // news pagebrowser
                'browse' => array(
                    array(
                        'GETvar' => 'tx_ttnews[pointer]',
                    ),
                ),
                // news categories
                'select_category' => array (
                    array(
                        'GETvar' => 'tx_ttnews[cat]',
                    ),
                ),
                // news articles anMd searchwords
                'article' => array(
                    array(
                        'GETvar' => 'tx_ttnews[tt_news]',
                        'lookUpTable' => array(
                            'table' => 'tt_news',
                            'id_field' => 'uid',
                            'alias_field' => 'title',
                            'addWhereClause' => ' AND NOT deleted',
                            'useUniqueCache' => 1,
                            'useUniqueCache_conf' => array(
                                'strtolower' => 1,
                                'spaceCharacter' => '-',
                            ),
                        ),
                    ),
                    array(
                        'GETvar' => 'tx_ttnews[backPid]',
                    ),
                    array(
                        'GETvar' => 'tx_ttnews[swords]',
                    ),
                ),
            ),
        ),
        // configure filenames for different pagetypes
        'fileName' => array(
			      // Wichtig: Bitte Endung der Links angeben! --> 0 für Endung "/", --> 1 für Endung ".html" 
            'defaultToHTMLsuffixOnPrev' => 1,
            'index' => array(
                'print.html' => array(
                    'keyValues' => array(
                        'type' => 9995,
                    ),
                ),
                'rss.xml' => array(
                    'keyValues' => array(
                        'type' => 9996,
                    ),
                ),
                'rss091.xml' => array(
                    'keyValues' => array(
                        'type' => 9997,
                    ),
                ),
                'rdf.xml' => array(
                    'keyValues' => array(
                        'type' => 9998,
                    ),
                ),
                'atom.xml' => array(
                    'keyValues' => array(
                        'type' => 9999,
                    ),
                ),
            ),
        ),
    ),
);

Kennt dieses Phänomen vielleicht jemand und hat eine Lösung dafür?

Herzlichen Dank für eure Hilfe!

Gruß
Maik