[TYPO3-english] RealURL "XXX was not a keyword for a postVarSet as expected!"

Fernando Arconada falcifer2001 at yahoo.es
Sat Oct 18 14:15:17 CEST 2008


I m trying to configure realurl 1.5.2 with TYPO3 4.2.2 but I always
have "XXX was not a keyword for a postVarSet as expected!" it was a
bug but it is closed.
I have this error when i use the extension cbrealurl and
also (without cbrealurl) following your tutorual
http://typo3bloke.net/post-details/realurl_made_easy_part_2/ 

With older versions i never had problems

Many thanks in advance

##### BEGIN .htaccess ###############
RewriteEngine On
RewriteRule ^typo3$ - [L]
RewriteRule ^typo3/.*$ - [L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule .* index.php

##### END .htaccess ###############

##### BEGIN reaurlconf.php from TYPO3 Bloke tutorial ###############
<?php
$tx_realurl_config = array(
    'init' => array(
        'enableCHashCache' => true,
        'appendMissingSlash' => 'ifNotFile',
        'enableUrlDecodeCache' => true,
        'enableUrlDecodeCache' => true,
        'emptyUrlReturnValue' => '/',
    ),
    'preVars' => array(
    ),
    'postVarSets' => array(
        '_DEFAULT' => array(
        ),
    ),
    'pagePath' => array(
        'type' => 'user',
        'userFunc' => 'EXT:realurl/
class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
        'spaceCharacter' => '-',
        'languageGetVar' => 'L',
        'expireDays' => 3,
    ),
);
$TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT'] = $tx_realurl_config;
?>
##### END reaurlconf.php from TYPO3 Bloke tutorial ###############

##### BEGIN reaurl.php from extension cbrealurl ###############
<?php

/**
 * RealURL helper script
 *
 * @ref http://typo3bloke.net/post-details/archive/2008/may/30/
realurl_made_easy_part_1/
 *
 * @author Michael Cannon <michael at cannonbose.com>
 * @version $Id: realurl.php,v 1.11 2008/08/25 16:29:56 cannon Exp $
 */

// Prevent new realurl updates from clearing cache
unset($TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']
['clearAllCache_additionalTables']['tx_realurl_pathcache']);

// realurl naming precedence configuration
$TYPO3_CONF_VARS['FE']['addRootLineFields'] .= 
',tx_realurl_pathsegment,alias,title';

$TYPO3_CONF_VARS['EXTCONF']['realurl'] = array();
$TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT'] = array(
        'init' => array( 
                'enableCHashCache' => true
                , 'appendMissingSlash' => 'ifNotFile'
                , 'adminJumpToBackend' => true
                , 'enableUrlDecodeCache' => true
                , 'enableUrlEncodeCache' => true
                , 'emptyUrlReturnValue' => '/'
                // Allow for proper SEO 404 handling
                , 'postVarSet_failureMode' => ''
        )   
        , 'redirects'           => array()
        , 'preVars' => array(
                        array(   
                                'GETvar' => 'no_cache'
                                , 'valueMap' => array( 
                                        'nc' => 1
                        )
                        , 'noMatch' => 'bypass'
                )
                , array(   
                        'GETvar' => 'L', 
                        'valueMap' => array(
                                // id's need to line up with Website 
Language Ids in TYPO3
                                // 'english' => '0',
                                'en' => '0',
                                'us' => '0',
                                // 'french' => '1',
                                'fr' => '1',
                                // Simplified Chinese
                                'cn' => '2',
                                // norwegian?
                                // 'no' => '2',
				// Simplified Chinese
				'tw' => '3',
				// 'german' => '3',
				// 'de' => '3',
				// 'danish' => '4',
				'dk' => '4',
				// 'spanish' => '5',
				'es' => '5',
				// British English
				'uk' => '6',
				// Traditional Chinese
				'tw' => '8',
			),   
			'noMatch' => 'bypass',
		),
	)
	, 'pagePath' => array(
		'type'			=> 'user'
		, 'userFunc' => 'EXT:realurl/
class.tx_realurl_advanced.php:&tx_realurl_advanced->main'
		, 'spaceCharacter'	=> '-'
		, 'languageGetVar'	=> 'L'
		, 'rootpage_id'		=> 1
		, 'segTitleFieldList'	=> 
'tx_realurl_pathsegment,alias,title'
	)
	, 'fixedPostVars'	=> array()
	, 'postVarSets' => array(
		'_DEFAULT' => array(
			// news archive parameters
			'archive' => array(
				array(
					'GETvar' => 'tx_ttnews[year]'
				)
				, array(
					'GETvar' => 'tx_ttnews[month]'
					// MLC uncomment if month names 
instead of numbers are
					// desired
					/*
					, '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',
					)
					*/
				)
				, array(
					'GETvar' => 'tx_ttnews[day]'
				)
			)
			// news pagebrowser
			, 'npage' => array(
				array(
					'GETvar' => 'tx_ttnews[pointer]'
				)
			)
			// news category
			, 'article-cat' => array (
				array(
					'GETvar' => 'tx_ttnews[cat]'
					, 'lookUpTable' => array(
						'table' => 'tt_news_cat'
						, 'id_field' => 'uid'
						, 'alias_field' => 'title'
						, 'addWhereClause' => ' 
AND deleted != 1'
						, 'useUniqueCache' => 1
						, 'useUniqueCache_conf' => 
array(
							'strtolower' => 1
						),
					),
				),
			)
			// news item
			, 'article' => array(
				array(
					'GETvar' => 'tx_ttnews[tt_news]'
					, 'lookUpTable' => array(
						'table' => 'tt_news'
						, 'id_field' => 'uid'
						// MLC Goolge wants 
uniqueness for spidering
						, 'alias_field' => 'concat
(title, " ", uid)'
						, 'addWhereClause' => ' 
AND deleted != 1'
						, 'useUniqueCache' => 1
						, 'useUniqueCache_conf' => 
array(
							'strtolower' => 1
							, 'spaceCharacter' 
=> '-'
						)
					)
				)
				, array(
					'GETvar' => 'tx_ttnews[swords]'
				)
			)
			, 'nbp' => array(
				array(
					'GETvar' => 'tx_ttnews[backPid]'
				)
			)
			, 'nq' => array(
				array(
					'GETvar' => 'news_search
[search_text]'
				)
			)
			, 'nqc' => array(
				array(
					'GETvar' => 'news_search[category]
[]'
				)
			)
			, 'login'	=> array(
				array(
					'GETvar'	=> 
'tx_newloginbox_pi3[showUid]'
				)
			)
			, 'forgot-login'	=> array(
				array(
					'GETvar'	=> 
'tx_newloginbox_pi1[forgot]'
				)
			)
			, 'search'	=> array(
				array(
					'GETvar'	=> 
'tx_indexedsearch[sword]'
				)
				, array(
					'GETvar'	=> 
'tx_indexedsearch[ext]'
				)
				, array(
					'GETvar'	=> 
'tx_indexedsearch[submit_button]'
				)
				, array(
					'GETvar'	=> 
'tx_indexedsearch[_sections]'
				)
				, array(
					'GETvar'	=> 
'tx_indexedsearch[pointer]'
				)
			)
			, 'srfu'	=> array(
				array(
					'GETvar'	=> 
'tx_srfeuserregister_pi1[cmd]'
				)
				, array(
					'GETvar'	=> 
'tx_srfeuserregister_pi1[pointer]'
				)
				, array(
					'GETvar'	=> 
'tx_srfeuserregister_pi1[mode]'
				)
				, array(
					'GETvar'	=> 
'tx_srfeuserregister_pi1[sword]'
				)
				, array(
					'GETvar'	=> 
'tx_srfeuserregister_pi1[sort]'
				)
			)
			, 'scal'	=> array(
				array(
					'GETvar'	=> 
'tx_desimplecalendar_pi1[showUid]'
				)
				, array(
					'GETvar'	=> 
'tx_desimplecalendar_pi1[form]'
				)
				, array(
					'GETvar'	=> 
'tx_desimplecalendar_pi1[mode]'
				)
				, array(
					'GETvar'	=> 
'tx_desimplecalendar_pi1[backPath]'
				)
			)
			, 'calender-category'	=> array(
				array(
					'GETvar'	=> 
'tx_advCalendar_pi1[category]'
				)
			)
			, 'view' => array(
				array(
					'GETvar' => 'view'
				)
			)
			, 'cforum'		=> array(
				array(
					'GETvar' => 'cat_uid'
				)
				, array(
					'GETvar' => 'conf_uid'
				)
				, array(
					'GETvar' => 'thread_uid'
				)
				, array(
					'GETvar' => 'page'
				)
				, array(
					'GETvar' => 'flag'
				)
			)
			, 'event' => array(
				array(
					'GETvar' => 'eventid'
				)
			)
			, 'ef' => array(
				array(
					'GETvar' => 'editflag'
				)
			)
			, 'start' => array(
				array(
					'GETvar' => 'start'
				)
			)
			, 'day' => array(
				array(
					'GETvar' => 'day'
				)
			)
			, 'week' => array(
				array(
					'GETvar' => 'week'
				)
			)
			, 'month' => array(
				array(
					'GETvar' => 'month'
				)
			)
			, 'bu' => array(
				array(
					'GETvar' => 'backURL'
				)
			)
			, 'cmd' => array(
				array(
					'GETvar' => 'cmd'
				)
			)
			, 'year' => array(
				array(
					'GETvar' => 'year'
				)
			)
			, 'rdfi' => array(
				array(
					'GETvar' => 'tx_nrdfimport_pi1
[showUid]'
				)
			)
			, 'sponsor'	=> array(
				array(
					'GETvar'	=> 
'tx_t3consultancies_pi1[showUid]'
					, 'lookUpTable' => array(
						'table' => 
'tx_t3consultancies'
						, 'id_field' => 'uid'
						, 'alias_field' => 'title'
						, 'addWhereClause' => ' 
AND deleted != 1'
						, 'useUniqueCache' => 1
						, 'useUniqueCache_conf' => 
array(
							'strtolower' => 1
							, 'spaceCharacter' 
=> '-'
						)
					)
				)
				, array(
					'GETvar'	=> 
'tx_t3consultancies_pi1[service]'
				)
				, array(
					'GETvar'	=> 
'tx_t3consultancies_pi1[pointer]'
				)
			)
			, 'slide-show'	=> array(
				array(
					'GETvar'	=> 
'tx_gsislideshow_pi1[total]'
				)
				, array(
					'GETvar'	=> 
'tx_gsislideshow_pi1[lastUid]'
				)
				, array(
					'GETvar'	=> 
'tx_gsislideshow_pi1[firstUid]'
				)
				, array(
					'GETvar'	=> 
'tx_gsislideshow_pi1[current]'
				)
				, array(
					'GETvar'	=> 
'tx_gsislideshow_pi1[showUid]'
					, 'lookUpTable' => array(
						'table' => 
'tx_gsislideshow_images'
						, 'id_field' => 'uid'
						, 'alias_field' => 
'caption'
						, 'addWhereClause' => ' 
AND deleted != 1'
						, 'useUniqueCache' => 1
						, 'useUniqueCache_conf' => 
array(
							'strtolower' => 1
							, 'spaceCharacter' 
=> '-'
						)
					)
				)
			)
			, 'tac' => array(
				array(
					'GETvar' => 'tac'
				)
			)
			, 'bp' => array(
				array(
					'GETvar' => 'backPID'
				)
			)
			, 'product' => array(
				array(
					'GETvar' => 'tt_products'
					, 'lookUpTable' => array(
						'table' => 'tt_products'
						, 'id_field' => 'uid'
						// MLC Goolge wants 
uniqueness for spidering
						, 'alias_field' => 'concat
(title, " ", uid)'
						, 'addWhereClause' => ' 
AND deleted != 1'
						, 'useUniqueCache' => 1
						, 'useUniqueCache_conf' => 
array(
							'strtolower' => 1
						),
					)
				)
			)
			// MLC Bahag photo gallery
			, 'gallery' => array(
				array(
					'GETvar' => 'gallery'
				)
			)
			, 'image' => array(
				array(
					'GETvar' => 'viewImage'
				)
			)
			, 'rp' => array(
				array(
					'GETvar' => 'resultPage'
				)
			)
			, 'idx' => array(
				array(
					'GETvar' => 'idx'
				)
			)
			, 'anmode' => array (
					array('GETvar' => 
'tx_piapappnote_pi1[mode]')
			)
			, 'anptr' => array (
					array('GETvar' => 
'tx_piapappnote_pi1[pointer]')
)
			, 'anfile' => array (
					array('GETvar' => 
'tx_piapappnote_pi1[file]')
			)
			, 'anseach' => array (
					array('GETvar' => 
'tx_piapappnote_pi1[sword]')
			)
			, 'annote' => array (
					array('GETvar' => 
'tx_piapappnote_pi1[noteid]')
			)
			, 'anauth' => array (
					array('GETvar' => 
'tx_piapappnote_pi1[author]')
			)
			, 'anname' => array (
					array('GETvar' => 
'tx_piapappnote_pi1[title]')
			)
			, 'andesc' => array (
					array('GETvar' => 
'tx_piapappnote_pi1[description]')
			)
			, 'ancat' => array (
					array('GETvar' => 
'tx_piapappnote_pi1[categorylist]')
			)
			, 'anver' => array (
					array('GETvar' => 
'tx_piapappnote_pi1[versionlist]')
			)
			, 'andev' => array (
					array('GETvar' => 
'tx_piapappnote_pi1[devicelist]')
			)													   
			, 'galp' => array (
					array('GETvar' => 
'tx_hldamgallery_pi1[galleryPID]')
			)													   
			, 'galcat' => array (
					array('GETvar' => 
'tx_hldamgallery_pi1[galleryCID]')
			)													   
			, 'galimg' => array (
					array('GETvar' => 
'tx_hldamgallery_pi1[imgID]')
			)													   
			, 'faq-category' => array (
					array('GETvar' => 'tx_irfaq_pi1
[cat]'
						, 'lookUpTable' => array(
							'table' => 
'tx_irfaq_cat'
							, 'id_field' => 
'uid'
							, 'alias_field' => 
'title'
							, 'addWhereClause' 
=> ' AND deleted != 1'
							, 'useUniqueCache' 
=> 1
							, 
'useUniqueCache_conf' => array(
								'strtolower' 
=> 1
								, 
'spaceCharacter' => '-'
							)
					)
				)
			)													   
			// page comments
			, 'skcomm' => array(
					array(
						'GETvar' => 
'tx_skpagecomments_pi1[showComments]',
					),
					array(
						'GETvar' => 
'tx_skpagecomments_pi1[showForm]',
					),
			)
			// ab_downloads
			, 'dl-act' => array(
				array(
					'GETvar' => 'tx_abdownloads_pi1
[action]',
					'valueMap' => array(
						'show-category' => 
'getviewcategory',
						'propose-a-new-download' 
=> 'getviewaddnewdownload', 
						'open-download' => 
'getviewclickeddownload', 
						'show-details-for-
download' => 'getviewdetailsfordownload', 
						'report-broken-download' 
=> 'getviewreportbrokendownload',
						'rate-download' => 
'getviewratedownload',
					),
				),
			)
			, 'dl-cat' => array(
				array(
					'GETvar' => 'tx_abdownloads_pi1
[category_uid]',
					'valueMap' => array(
						'home' => '0',
					),
					'lookUpTable' => array(
						'table' => 
'tx_abdownloads_category',
						'id_field' => 'uid',
						'alias_field' => 'label',
						'addWhereClause' => ' AND 
deleted != 1',
						'useUniqueCache' => 1,
						'useUniqueCache_conf' => 
array(
							'strtolower' => 1,
							'spaceCharacter' 
=> '-',
						),
					),
				),
			)
			, 'dl-file' => array(
				array(
					'GETvar' => 'tx_abdownloads_pi1
[uid]',
					'lookUpTable' => array(
						'table' => 
'tx_abdownloads_download',
						'id_field' => 'uid',
						'alias_field' => 'label',
						'addWhereClause' => ' AND 
deleted != 1',
						'useUniqueCache' => 1,
						'useUniqueCache_conf' => 
array(
							'strtolower' => 1,
							'spaceCharacter' 
=> '-',
						),
					),
				),
			)
			, 'dl-ptr' => array(
				array(
					'GETvar' => 'tx_abdownloads_pi1
[pointer]',
				),
			)
			, 'll-act' => array(
				array(
					'GETvar' => 'tx_ablinklist_pi1
[action]',
					'valueMap' => array(
						'show-category' => 
'getviewcategory',
						'propose-a-new-link' => 
'getviewaddnewlink', 
						'open-link' => 
'getviewclickedlink', 
						'show-details-for-link' => 
'getviewdetailsforlink', 
						'report-broken-link' => 
'getviewreportbrokenlink',
						'rate-link' => 
'getviewratelink',
					),
				),
			)
			, 'll-cat' => array(
				array(
					'GETvar' => 'tx_ablinklist_pi1
[category_uid]',
					'valueMap' => array(
						'home' => '0',
					),
					'lookUpTable' => array(
						'table' => 
'tx_ablinklist_category',
						'id_field' => 'uid',
						'alias_field' => 'label',
						'addWhereClause' => ' AND 
deleted != 1',
						'useUniqueCache' => 1,
						'useUniqueCache_conf' => 
array(
							'strtolower' => 1,
							'spaceCharacter' 
=> '-',
						),
					),
				),
			)
			, 'll-link' => array(
				array(
					'GETvar' => 'tx_ablinklist_pi1
[uid]',
					'lookUpTable' => array(
						'table' => 
'tx_ablinklist_link',
						'id_field' => 'uid',
						'alias_field' => 'label',
						'addWhereClause' => ' AND 
deleted != 1',
						'useUniqueCache' => 1,
						'useUniqueCache_conf' => 
array(
							'strtolower' => 1,
							'spaceCharacter' 
=> '-',
						),
					),
				),
			)
			, 'll-ptr' => array(
				array(
					'GETvar' => 'tx_ablinklist_pi1
[pointer]',
				),
			)
			, 'cal'=> array(
				array(
					'GETvar' => 'tx_cal_controller
[view]'
				),
				array(
					'GETvar' => 'tx_cal_controller
[getdate]'
				),
				array(
					'GETvar' => 'tx_cal_controller
[lastview]'
				),
				array(
					'GETvar' => 'tx_cal_controller
[type]'
				),
				array(
					'GETvar' => 'tx_cal_controller
[category]',
					'lookUpTable' => array(
						'table' => 
'tx_cal_category',
						'id_field' => 'uid',
						'alias_field' => 'title',
						'addWhereClause'  => ' AND 
deleted != 1',
						'useUniqueCache' => 1,
						'useUniqueCache_conf' => 
array(
							'strtolower' => 1,
							'spaceCharacter' 
=> '-',
						 ),
					 
					),
				),
				array(
					'GETvar' => 'tx_cal_controller
[uid]',
					'lookUpTable' => array(
						'table' => 'tx_cal_event',
						'id_field' => 'uid',
						'alias_field' => 'title',
						'addWhereClause'  => ' AND 
deleted != 1',
						'useUniqueCache' => 1,
						'useUniqueCache_conf' => 
array(
							'strtolower' => 1,
							'spaceCharacter' 
=> '-',
						),
					),
				),
			)
			// MLC commented out to prevent duplicating URLs
			/*
			, 'ch' => array(
				array(
					'GETvar' => 'cHash',
				),
			),
			*/
		)
	)
	, 'fileName' => array (
		'index' => array(
			'index.html' => array(
				'keyValues' => array(
					'type' => 0,
				)
			)
			, 'print.html' => array(
				'keyValues' => array(
					'type' => 98,
				)
			)
			, 'text.html' => array(
				'keyValues' => array(
					'type' => 99,
				)
			)
			, 'rss.xml' => array(
				'keyValues' => array(
				'type' => 100,
				)
			)
			, 'rss091.xml' => array(
				'keyValues' => array(
				'type' => 101,
				 )
			)
			, 'rdf.xml' => array(
				'keyValues' => array(
				'type' => 102,
				)
			)
			, 'atom.xml' => array(
				'keyValues' => array(
				'type' => 103,
				)
			)
			, 'sitemap.xml' => array(
				'keyValues' => array(
				'type' => 200,
				)
			)
			, '_DEFAULT' => array(
				'keyValues' => array()
			)
		)
		, 'defaultToHTMLsuffixOnPrev' => 1
		, 'acceptHTMLsuffix' => 1
	)   
);

$customFile						= '../../realurl-
custom.php';

// include customizations outside of this script
if ( false && file_exists( $customFile ) )
{
	include( $customFile );
}

// phpsuexec seems to not like the above, therefore put your realurl
// customizations here. don't forget to backup this file outside of this
// directory
else
{
	$TYPO3_CONF_VARS['EXTCONF']['realurl']['www.cannonbose.com'] = 
$TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT'];
	$TYPO3_CONF_VARS['EXTCONF']['realurl']['www.cannonbose.com']
['pagePath']['rootpage_id'] = 1;
	$TYPO3_CONF_VARS['EXTCONF']['realurl']['cannonbose.com'] = 
$TYPO3_CONF_VARS['EXTCONF']['realurl']['www.cannonbose.com'];
	$TYPO3_CONF_VARS['EXTCONF']['realurl']['support.cannonbose.com'] = 
$TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT'];
	$TYPO3_CONF_VARS['EXTCONF']['realurl']['support.cannonbose.com']
['pagePath']['rootpage_id'] = 7;
}

?>

##### END reaurl.php from extension cbrealurl ###############



More information about the TYPO3-english mailing list