[TYPO3-german] Realurl nach Update findet Root Page ID nicht

André Sheydin andre.sheydin at gmail.com
Fri Mar 11 18:54:41 CET 2016


Danke! Klappt soweit bei normalen Seiten.

Bei tx_news bekomme ich leider folgende Meldung:

> Page Not Found
> 
> Reason: Segment "package-special-2" was not a keyword for a postVarSet as expected on page with id=18.


Dabei ist pid 18 die List-Seite. Hier meine komplette realurl_conf.php

> <?php
> 
> // Define root page id for each domain
>  $rootPids = array(
>      ›domain.local' => 2,
>      'www.domain.local <http://www.loock-hotels.local/>' => 2,
> //     'www.domain2.tld <http://www.domain2.tld/>' => 158, 
> //     'domain2.tld' => 158, 
>  ); 
>  
> 
> $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl'] = array(
>   '_DEFAULT' => array(
>  
>     'pagePath' => array(
>       'type' => 'user',
>       'userFunc' => 'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
>       'spaceCharacter' => '-',
>       'languageGetVar' => 'L',
>       'expireDays' => 7,
> //      'rootpage_id' => 2,
>       'rootpage_id' => $rootPids[$_SERVER['HTTP_HOST']],
> //      'excludePageIds' => '31,7,21',
>     ),
>  
>     'init' => array(
>       'enableCHashCache' => TRUE,
>       'enableCHashCache' => 1,
>       'respectSimulateStaticURLs' => 0,
>       'appendMissingSlash' => 'ifNotFile',
>       'enableUrlDecodeCache' => 1,
>       'enableUrlEncodeCache' => 1,
>       'postVarSet_failureMode' => '',
>     ),
>  
>     'redirects' => array(),
>  
>     'preVars' => array(
>       array(
>         'GETvar' => 'no_cache',
>         'valueMap' => array(
>           'nc' => 1,
>         ),
>         'noMatch' => 'bypass',
>       ),
>       array(
>         'GETvar' => 'L',
>         'valueMap' => array(
>           'ru' => '0',
>         ),
>         'noMatch' => 'bypass',
>       ),
>     ),
>  
>     'fixedPostVars' => array(
>       'newsDetailConfiguration' => array(
>         array(
>           'GETvar' => 'tx_news_pi1[news]',
>           'lookUpTable' => array(
>             'table' => 'tx_news_domain_model_news',
>             'id_field' => 'uid',
>             'alias_field' => 'title',
>             'addWhereClause' => ' AND NOT deleted',
>             'useUniqueCache' => 1,
>             'useUniqueCache_conf' => array(
>               'strtolower' => 1,
>               'spaceCharacter' => '-'
>             ),
>             'languageGetVar' => 'L',
>             'languageExceptionUids' => '',
>             'languageField' => 'sys_language_uid',
>             'transOrigPointerField' => 'l10n_parent',
>             'autoUpdate' => 1,
>             'expireDays' => 180,
>           )
>         )
>       ),
>       'newsCategoryConfiguration' => array(
>         array(
>           'GETvar' => 'tx_news_pi1[overwriteDemand][categories]',
>           'lookUpTable' => array(
>             'table' => 'tx_news_domain_model_category',
>             'id_field' => 'uid',
>             'alias_field' => 'title',
>             'addWhereClause' => ' AND NOT deleted',
>             'useUniqueCache' => 1,
>             'useUniqueCache_conf' => array(
>               'strtolower' => 1,
>               'spaceCharacter' => '-'
>             )
>           )
>         )
>       ),
>       'newsTagConfiguration' => array(
>         array(
>           'GETvar' => 'tx_news_pi1[overwriteDemand][tags]',
>           'lookUpTable' => array(
>             'table' => 'tx_news_domain_model_tag',
>             'id_field' => 'uid',
>             'alias_field' => 'title',
>             'addWhereClause' => ' AND NOT deleted',
>             'useUniqueCache' => 1,
>             'useUniqueCache_conf' => array(
>               'strtolower' => 1,
>               'spaceCharacter' => '-'
>             )
>           )
>         )
>       ),
>       '31' => 'newsDetailConfiguration',
>       '19' => 'newsDetailConfiguration',
> //      '21' => 'newsDetailConfiguration',
> //      '701' => 'newsDetailConfiguration', // For additional detail pages, add their uid as well
> //      '71' => 'newsTagConfiguration',
> //      '72' => 'newsCategoryConfiguration'
>     ),
>  
>     'postVarSets' => array(
>       '_DEFAULT' => array(
>         'controller' => array(
>           array(
>             'GETvar' => 'tx_news_pi1[action]',
>             'noMatch' => 'bypass'
>           ),
>           array(
>             'GETvar' => 'tx_news_pi1[controller]',
>             'noMatch' => 'bypass'
>           ),
>  
>           array(
>             'GETvar' => 'tx_news_pi1[day]',
>             'noMatch' => 'bypass',
>           ),
>           array(
>             'GETvar' => 'tx_news_pi1[month]',
>             'noMatch' => 'bypass',
>           ),
>           array(
>             'GETvar' => 'tx_news_pi1[year]',
>             'noMatch' => 'bypass',
>           ),
>  
>         ),
>         'dateFilter' => array(
>           array(
>             'GETvar' => 'tx_news_pi1[overwriteDemand][year]',
>           ),
>           array(
>             'GETvar' => 'tx_news_pi1[overwriteDemand][month]',
>           ),
>         ),
>         'page' => array(
>           array(
>             'GETvar' => 'tx_news_pi1[@widget_0][currentPage]',
>           ),
>         ),
> 
>       ),
>     ),
>  
>     'fileName' => array (
>            'defaultToHTMLsuffixOnPrev' => 0,
>            'acceptHTMLsuffix' => 1,
>            'index' => array(
>                    'sitemap.xml' => array(
>                            'keyValues' => array (
>                                    'type' => 200,
>                            ),
>                    ),
>                     'feed.rss' => array(
>                             'keyValues' => array (
>                                     'type' => 9818,
>                             ),
>                     ),
>            ),
>     ),
> 
>   ),
> );
> 
>  
> ?>


Hast du (oder jemand anders) eine Idee?

Besten Dank.

André



> Am 11.03.2016 um 18:28 schrieb g4-lisz at tonarchiv.ch <mailto:g4-lisz at tonarchiv.ch>:
> 
> Des Rätsels Lösung:
> 
>   $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl']
> 
> anstatt
> 
>   $TYPO3_CONF_VARS['EXTCONF']['realurl']
> 
> im Config-File...
> 
> Tja,
> 
> Grüsse,
> Till
> 
> On 03/11/2016 04:22 PM, g4-lisz at tonarchiv.ch <mailto:g4-lisz at tonarchiv.ch> wrote:
>> Hallo Leute,
>> 
>> seit dem Update von Realurl 1.x auf 2 kriege ich den Fehler:
>> 
>> #1453732574: RealURL was not able to find the root page id for the
>> domain "xxx"
>> 
>> Wir haben eine Multi-Language / Multi-Domain Konfiguration, die bisher
>> problemlos funktioniert hat.
>> 
>> Im Root-Template gibt es eine Weiche für baseURL in der Form:
>> 
>>  config.pageURL=http://www.dom.de/ <http://www.dom.de/>
>> 
>>  [globalString = ENV:HTTP_HOST=www.dom.fr <http://www.dom.fr/>]
>>  config.pageURL=http://www.dom.fr/ <http://www.dom.fr/>
>> 
>>  [globalString = ENV:HTTP_HOST=www.dom.it <http://www.dom.it/>]
>>  config.pageURL=http://www.dom.it/ <http://www.dom.it/>
>> 
>>  [global]
>> 
>> Das Pendant in der Realurlconf:
>> 
>> $TYPO3_CONF_VARS['EXTCONF']['realurl']['_DOMAINS'] = array(
>>        'encode' => array(
>>                array(
>>                        'GETvar' => 'L',
>>                        'value' => '0',
>>                        'useConfiguration' => '_DEFAULT',
>>                        'urlPrepend' => 'http://www.dom.de' <http://www.dom.de'>
>>                ),
>>                array(
>>                        'GETvar' => 'L',
>>                        'value' => '1',
>>                        'useConfiguration' => '_DEFAULT',
>>                        'urlPrepend' => 'http://www.dom.fr' <http://www.dom.fr'>
>>                ),
>>                array(
>>                        'GETvar' => 'L',
>>                        'value' => '2',
>>                        'useConfiguration' => '_DEFAULT',
>>                        'urlPrepend' => 'www.dom.it <http://www.dom.it/>'
>>                ),
>>        ),
>>        'decode' => array(
>>                '/^(www\.)?dom\.de$/' => array(
>>                        'GETvars' => array(
>>                                'L' => '0',
>>                        ),
>>                        'useConfiguration' => '_DEFAULT'
>>                ),
>>                '/^(www\.)?dom\.fr$/' => array(
>>                        'GETvars' => array(
>>                                'L' => '1',
>>                        ),
>>                        'useConfiguration' => '_DEFAULT'
>>                ),
>>                '/^(www\.)?domi\.it$/' => array(
>>                        'GETvars' => array(
>>                                'L' => '2',
>>                        ),
>>                        'useConfiguration' => '_DEFAULT'
>>                ),
>>        ),
>> );
>> 
>> Ich habe schon alles mögliche ausprobiert, Caches gelöscht, usw.
>> Hat jemand eine Idee, woran das liegen könnte? Kann man evlt. RealURL
>> die root PID fest vorgeben?
>> 
>> Grüsse,
>> Till
>> 
>> _______________________________________________
>> TYPO3-german mailing list
>> TYPO3-german at lists.typo3.org <mailto:TYPO3-german at lists.typo3.org>
>> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german <http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german>
> 
> _______________________________________________
> TYPO3-german mailing list
> TYPO3-german at lists.typo3.org <mailto:TYPO3-german at lists.typo3.org>
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german <http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german>


More information about the TYPO3-german mailing list