[TYPO3-english] realurl error Reason: Segment "404" was not a keyword

Tomaz Zaman tomaz at optiss.si
Thu Aug 18 13:01:08 CEST 2011


Here, try this one:

<?php
$TYPO3_CONF_VARS['EXTCONF']['realurl'] = array(
    'www.domain.dk' => array(
        'init' => array(
            'enableCHashCache' => '1',
            'enableUrlDecodeCache' => '1',
            'enableUrlEncodeCache' => '1',
            'appendMissingSlash' => 'ifNotFile',
        ),
        'fileName' => array('defaultToHTMLsuffixOnPrev' => '0'),
        'preVars' => array(
            0 => array(
                'GETvar' => 'L',
                'valueMap' => array(
		'dk' => '0', 	// remove this line to avoid having www.domain.dk/dk/page..
		'sv' => '1',
		'no' => '2',
		'de' => '3',
		'en' => '4',
                ),
                'noMatch' => 'bypass',
            ),
        ),
        'pagePath' => array(
            'type' => 'user',
            'userFunc' 
=>'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main', 

            'spaceCharacter' => '-',
            'languageGetVar' => 'L',
            'rootpage_id' => 1,
            'expireDays' => 30,
        ),
    ),
);
?>


On 2011-08-18 10:52:29 +0000, Tomaz Zaman said:

> Remove valueDescription array and firstHitPathCache, (where did you 
> find that?), then remove the postVarSets array as well.
> 
> On 2011-08-18 10:36:53 +0000, Morten Hagh said:
> 
>> Here is my RealURL conf.
>> 
>> $TYPO3_CONF_VARS['EXTCONF']['realurl'] = array(
>> 	'init' => array(    		'enableCHashCache' => 1,        	 
>> 'appendMissingSlash' => 'ifNotFile',        		'enableUrlDecodeCache' => 
>> 1, 	
>> 		'enableUrlEncodeCache' => 1,
>> 		'postVarSet_failureMode' => '',
>> 	),
>> 
>> 	'_DEFAULT' => array(
>> 		'redirects' => array(),
>> 		'preVars' => array(
>> 			array(
>> 				'GETvar' => 'L',
>> 				'valueMap' => array(
>> 					'dk' => '0',
>> 					'sv' => '1',
>> 					'no' => '2',
>> 					'de' => '3',
>> 					'en' => '4',
>> 				),
>> 				'valueDescription' => array(
>> 					'dk' => 'Dansk',
>> 					'sv' => 'Svenska',
>> 					'no' => 'Norsk',
>> 					'de' => 'Deutsch',
>> 					'en' => 'English',
>> 				),
>> 			'noMatch' => 'bypass',
>> 		),
>> 	),
>> 	'pagePath' => array(	
>> 		'type' => 'user',
>> 		'userFunc' =>
>> 	
>> 'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
>> 		'spaceCharacter' => '-',
>> 		'languageGetVar' => 'L',
>> 		'expireDays' => 7,
>> 		'firstHitPathCache' => 1,
>> 	),
>> 	'postVarSets' => array(
>> 		'_DEFAULT' => array(	
>> 		),
>> 	),
>> );
>> 
>> /Morten Hagh
>> 
>> -----Oprindelig meddelelse-----
>> Fra: typo3-english-bounces at lists.typo3.org
>> [mailto:typo3-english-bounces at lists.typo3.org] På vegne af Tomaz Zaman
>> Sendt: 18. august 2011 12:24
>> Til: typo3-english at lists.typo3.org
>> Emne: Re: [TYPO3-english] realurl error Reason: Segment "404" was not a
>> keyword
>> 
>> Paste your realurl configuration
>> 
>> On 2011-08-18 10:03:23 +0000, Morten Hagh said:
>> 
>>> Yes, I do have a 404 error page set up which works fine! I am getting this
>>> segment error at random pages.
>>> 
>>> /Morten Hagh
>>> 
>>> -----Oprindelig meddelelse-----
>>> Fra: typo3-english-bounces at lists.typo3.org
>>> [mailto:typo3-english-bounces at lists.typo3.org] På vegne af Tomaz Zaman
>>> Sendt: 18. august 2011 11:47
>>> Til: typo3-english at lists.typo3.org
>>> Emne: Re: [TYPO3-english] realurl error Reason: Segment "404" was not a
>>> keyword
>>> 
>>> Do you have a page with title 404 set up?
>>> 
>>> On 2011-08-18 09:37:07 +0000, Morten Hagh said:
>>> 
>>>> Hi list,
>>>> 
>>>> 
>>>> 
>>>> I am getting this error when trying to access a subpage of another
>>> subpage:
>>>> 
>>>> 
>>>> 
>>>> Reason: Segment "404" was not a keyword for a postVarSet as expected on
>>> page
>>>> with id=0.
>>>> Additionally, http://www.xxxx.dk/dk/404/ was not found while trying to
>>>> retrieve the error document.
>>>> 
>>>> 
>>>> 
>>>> I have the newest RealURL install.
>>>> 
>>>> When I access the page by it's ID with index.php?id= I can see it fine.
>>>> 
>>>> What am I doing wrong
>>>> 
>>>> 
>>>> 
>>>> /Morten Hagh


-- 
----------------------------------------------------------------
Tomaz Zaman, certified TYPO3 integrator
http://optiss.si | info at optiss.si | +386 30 651 645



More information about the TYPO3-english mailing list