[TYPO3-english] RealURL 1.9.2 shows PHP warnings

Victor Livakovsky v-tyok at mail.ru
Wed Jun 9 20:55:29 CEST 2010


Hello, List.

Just updated RealURL from 1.8.1 to 1.9.2 on one of my multilanguage 
multidomain websites and getting lot of following warnings, when page is 
called for a first time:

Warning: Missing argument 2 for tx_realurl::isString(), called in 
/home/www/typo3conf/ext/realurl/class.tx_realurl.php on line 2464 and 
defined in /home/www/typo3conf/ext/realurl/class.tx_realurl.php  on line 
2316


After a second or two normal page content shows without any warnings.


TYPO3 version 4.2.12

RealURL config in typo3conf/realurl_conf.php :

<?php

$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl'] = array (
    '_DEFAULT' => array (
        'init' => array (
            'enableCHashCache' => '1',
            'appendMissingSlash' => 'ifNotFile',
            'enableUrlDecodeCache' => '0',
            'enableUrlEncodeCache' => '0',
        ),
        'preVars' => array (
            '0' => array (
                'GETvar' => 'no_cache',
                'valueMap' => array (
                    'nc' => '1',
                ),
                'noMatch' => 'bypass'
            ),
            '1' => array (
            	'GETvar' => 'L',
            	'valueMap' => array(
            		'ja' => '1',
            		'es' => '2',
            		'fr' => '3',
            		'en' => '4',
            		'it' => '5',
            		'zh' => '6',
            	),
            	'noMatch' => 'bypass'
            ),
        ),
        'pagePath' => array (
            'type' => 'user',
            'userFunc' => 
'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
            'spaceCharacter' => '-',
            'languageGetVar' => 'L',
            'expireDays' => '7',
            'disablePathCache' => '1',
            'autoUpdatePathCache' => '0',
        ),
        'postVarSets' => array (
            '_DEFAULT' => array (
                'archive' => array (
                    '0' => array (
                        'GETvar' => 'tx_ttnews[year]',
                    ),
                    '1' => 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',
                        ),
                    ),
                ),
                'browse' => array (
                    '0' => array (
                        'GETvar' => 'tx_ttnews[pointer]',
                    ),
                ),
                'select_category' => array (
                    '0' => array (
                        'GETvar' => 'tx_ttnews[cat]',
                    ),
                ),
                'article' => array (
                    '0' => 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' => '-',
                            ),
                        ),
                    ),
                    '1' => array (
                        'GETvar' => 'tx_ttnews[swords]',
                    ),
                ),
            ),
        ),
        'fileName' => array (
            'defaultToHTMLsuffixOnPrev' => true,
            'index' => array (
            	'print.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',
                    )
                ),
            ),
        ),
    ),

);

$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl']['www.domain1.com'] = 
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl']['_DEFAULT'];
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl']['www.domain1.com']['pagePath']['rootpage_id'] 
= 1;

$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl']['www.domain2.com'] = 
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl']['_DEFAULT'];
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl']['www.domain2.com']['pagePath']['rootpage_id'] 
= 123;

$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl']['www.domain3.com'] = 
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl']['_DEFAULT'];
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl']['www.domain3.com']['pagePath']['rootpage_id'] 
= 257;

?>


Any help would be appreciated. 



More information about the TYPO3-english mailing list