[TYPO3-english] realurl in Unicode with _DOMAINS config

Pieter Geurts - Aleto pieter at aleto.nl
Thu Jun 16 16:35:46 CEST 2011


It looks like we are experiencing the same problem.

I can not make one page in chinees only. I always have to use a latin 
character.

'languageExceptionUids' => '7', does work; but I would like to have the 
Chinese url.



We developed an international website; including Chinese.

This worked fine.

In meantime we moved to a new server. Configurations should be about the 
same. Suddenly real url fior ttnews is not working anymore. I get urls like



http://www.domain.com/es/detalle/article/p-p/



in stead of:



http://www.domain.com/es/detalle/article/news-title



After we leave out the Unicode config ( 'enableAllUnicodeLetters' => 
true,); it is working fine in EN en ES; but I can not get the Chinese 
working. Urls with only Chinese in the url are not generated.



Do you have any clue were to look? I could not find anything in the 
mailinglists.



I am using TYPO3 4.5.2 / realurl 1.11.1



Realurlconf:

$TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT'] = array(

         'init' => array(

             'enableCHashCache' => 1,

             'appendMissingSlash' => 'ifNotFile',

             'enableUrlDecodeCache' => 1,

             'enableUrlEncodeCache' => 1,

             'respectSimulateStaticURLs' => 0,

         ),



                 'redirects_regex' => array (

                 ),



…..



                 'pagePath' => array(

                 'type' => 'user',

                 'userFunc' => 
'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',

                 'spaceCharacter' => '-',

                 'languageGetVar' => 'L',

                 'expireDays' => 7,

                 'rootpage_id' => 65,

                 ),



                 'postVarSets' => array(

                 '_DEFAULT' => array(

                                // news archive parameters

…



                         // news articles and searchwords

                                'article' => array(

                                                array(

                                                'GETvar' => 
'tx_ttnews[tt_news]',

                                                 'lookUpTable' => array(

                                                               'table' 
=> 'tt_news',

 
'id_field' => 'uid',

 
'alias_field' => 'title',

 
'addWhereClause' => ' AND NOT deleted',

 
'languageGetVar' => 'L',

 
                        'languageExceptionUids' => '',

 
                        'languageField' => 'sys_language_uid',

 
                        'transOrigPointerField' => 'l18n_parent',

 
                        'autoUpdate' => 1,

 
                        'expireDays' => 180, 


 
'useUniqueCache' => 1,

 
'useUniqueCache_conf' => array(

 
        'strtolower' => 1,

 
'spaceCharacter' => '-',

                                                                ),

                                                ), 


                                ),

……..


Op 3-6-2011 15:29, David ARNOULT - Edition & Internet Operations schreef:
> Hi,
>
> I am running realurl 1.11.1 (great ext, thanks Dimitry!) with TYPO3
> 4.3.11/Apache2.2/MySQL5/PHP5.2.9 on a Windows 2003 server. It seems that
> with _DOMAINS feature, 'enableAllUnicodeLetters' does not work completely.
> No problem for the other languages, Greek included.
>
> Live web site here in Chinese simplified: http://cn.topsolid.com
>
> Example of problem
> http://cn.topsolid.com/%E4%BA%A7%E5%93%81/%E5%B7%A5%E4%B8%9A%E8%A7%A3%E5%86%
> B3%E6%96%B9%E6%A1%88.htm
>
> I can see that when using prevars without _DOMAINS, it seems to work here on
> that site:
> http://www.leica-microsystems.com/jp/%E3%83%8B%E3%83%A5%E3%83%BC%E3%82%B9/%E
> 3%83%97%E3%83%AC%E3%82%B9%E3%83%AA%E3%83%AA%E3%83%BC%E3%82%B9/
>
> Is this bug related?
> http://bugs.typo3.org/view.php?id=16899
>
> Everything is in UTF-8 (Apache, Mysql, TYPO3). I have seen that
> config.locale_all has a great influence on the problem. I have tested
> several values defined here
> (http://msdn.microsoft.com/en-us/library/39cwe7zf%28vs.71%29.aspx)  without
> any results.
>
> My config:
> TS:
> config.linkVars = L
> config.uniqueLinkVars = 1
>
> config.metaCharset = utf-8
> config.renderCharset = utf-8
> config.additionalHeaders = Content-Type:text/html;charset=utf-8
> config.xhtml_cleaning = all
>
> config.sys_language_mode = content_fallback
> config.sys_language_overlay = hideNonTranslated
> ...
> [globalVar = GP:L = 7]
> config.language = cn
> config.locale_all = chinese-simplified
> config.sys_language_uid = 7
> config.baseURL = http://cn.topsolid.com/
> config.htmlTag_langKey = zh-CN
> plugin.tx_indexedsearch._DEFAULT_PI_VARS.lang = 7
> ...
>
>
> realurl:
> <?php
> $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl']=array (
> '_DEFAULT' =>  array(
>      'init' =>    array (
>        'enableCHashCache' =>  true,
> 	  'useCHashCache' =>  '0',
>        'appendMissingSlash' =>   'ifNotFile',
>        'adminJumpToBackend' =>  true,
>        'enableUrlDecodeCache' =>  true,
>        'enableUrlEncodeCache' =>  true,
>        'emptyUrlReturnValue' =>  '/',
> 	'enableAllUnicodeLetters' =>  true,
>        //'postVarSet_failureMode' =>  'redirect_goodUpperDir',
>        'doNotRawUrlEncodeParameterNames' =>  1,
>        'respectSimulateStaticURLs' =>  0,
>      ),
>
> 'preVars' =>  array(
>
>      array(
>          'GETvar' =>  'L',
>          'valueMap' =>  array(
>              'en' =>  0,
>              'fr' =>  1,
> 			'de' =>  2,
> 			'it' =>  3,
> 			'es' =>  4,
> 			'gr' =>  5,
> 			'br' =>  6,
> 			'cn' =>  7,
> 			'pl' =>  8,
> 			'hu' =>  9,
>          ),
> 	'valueDefault' =>  'en',
> 	'noMatch' =>  'bypass',
>      ),
> ),
>
> '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
> 				'category' =>  array (
> 					array(
> 						'GETvar' =>
> 'tx_ttnews[cat]',
> 						),
> 					),
> 				// news articles and searchwords
> 				
> 				'article' =>  array(
> 					array(
> 						'GETvar' =>
> 'tx_ttnews[tt_news]',
> 						'lookUpTable' =>  array(
> 							'table' =>
> 'tt_news',
> 							'id_field' =>  'uid',
> 							'alias_field' =>
> 'title',
> 							'addWhereClause' =>
> ' AND NOT deleted',
> 							'languageGetVar' =>
> 'L',
> 	
> 'languageExceptionUids' =>  '',
> 							'languageField' =>
> 'sys_language_uid',
> 	
> 'transOrigPointerField' =>  'l18n_parent',
> 							'autoUpdate' =>  1,
> 							'expireDays' =>  1,
> 							'useUniqueCache' =>
> 1,
> 	
> 'useUniqueCache_conf' =>  array(
>                                  'strtolower' =>  1,
>                                  'spaceCharacter' =>  '-',
> 							),
> 						),
> 					),
> 				),
> 				
> 				),
> 			),
>
>      'pagePath' =>    array (
>        'type' =>  'user',
>        'userFunc' =>
> 'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
>        'spaceCharacter' =>  '-',
>        'segTitleFieldList' =>  'tx_realurl_pathsegment,alias,nav_title,title',
>        'languageGetVar' =>  'L',
>        'rootpage_id' =>  2,
>        'expireDays' =>  1,
> 	  'disablePathCache' =>  true,
>
>        //'excludePageIds'    =>  null,
>        //'autoUpdatePathCache' =>  true,
>      ),
>
>      'fileName' =>    array (
>        'defaultToHTMLsuffixOnPrev' =>   '.htm',
>        'acceptHTMLsuffix' =>  0,
>      ),
>    ),
>
>    '_DOMAINS' =>  array(
>          'encode' =>  array(
>              array(
>                  'GETvar' =>  'L',
>                  'value' =>  '0',
>                  'ifDifferentToCurrent' =>  true,
>                  'useConfiguration' =>  '_DEFAULT',
>                  'urlPrepend' =>  'http://www.topsolid.com',
>              ),
>              array(
>                  'GETvar' =>  'L',
>                  'value' =>  '1',
>                  'ifDifferentToCurrent' =>  true,
>                  'useConfiguration' =>  '_DEFAULT',
>                  'urlPrepend' =>  'http://www.topsolid.fr',
>              ),
> 			array(
>                  'GETvar' =>  'L',
>                  'value' =>  '2',
>                  'ifDifferentToCurrent' =>  true,
>                  'useConfiguration' =>  '_DEFAULT',
>                  'urlPrepend' =>  'http://www.topsolid.de',
>              ),
> 			array(
>                  'GETvar' =>  'L',
>                  'value' =>  '3',
>                  'ifDifferentToCurrent' =>  true,
>                  'useConfiguration' =>  '_DEFAULT',
>                  'urlPrepend' =>  'http://www.topsolid.it',
>              ),
> 			array(
>                  'GETvar' =>  'L',
>                  'value' =>  '4',
>                  'ifDifferentToCurrent' =>  true,
>                  'useConfiguration' =>  '_DEFAULT',
>                  'urlPrepend' =>  'http://www.topsolid.es',
>              ),
> 			array(
>                  'GETvar' =>  'L',
>                  'value' =>  '5',
>                  'ifDifferentToCurrent' =>  true,
>                  'useConfiguration' =>  '_DEFAULT',
>                  'urlPrepend' =>  'http://www.topsolid.gr',
>              ),
> 			array(
>                  'GETvar' =>  'L',
>                  'value' =>  '6',
>                  'ifDifferentToCurrent' =>  true,
>                  'useConfiguration' =>  '_DEFAULT',
>                  'urlPrepend' =>  'http://br.topsolid.com',
>              ),
> 			array(
>                  'GETvar' =>  'L',
>                  'value' =>  '7',
>                  'ifDifferentToCurrent' =>  true,
>                  'useConfiguration' =>  '_DEFAULT',
>                  'urlPrepend' =>  'http://cn.topsolid.com',
>              ),
> 			array(
>                  'GETvar' =>  'L',
>                  'value' =>  '8',
>                  'ifDifferentToCurrent' =>  true,
>                  'useConfiguration' =>  '_DEFAULT',
>                  'urlPrepend' =>  'http://pl.topsolid.com',
>              ),
> 			array(
>                  'GETvar' =>  'L',
>                  'value' =>  '9',
>                  'ifDifferentToCurrent' =>  true,
>                  'useConfiguration' =>  '_DEFAULT',
>                  'urlPrepend' =>  'http://hu.topsolid.com',
>              ),
>          ),
>          'decode' =>  array(
>              'www.topsolid.com' =>  array(
>                  'GETvars' =>  array(
>                      'L' =>  '0',
>                  ),
>                  'useConfiguration' =>  '_DEFAULT',
>              ),
>              'www.topsolid.fr' =>  array(
>                  'GETvars' =>  array(
>                      'L' =>  '1',
>                  ),
>                  'useConfiguration' =>  '_DEFAULT',
>              ),
> 			'www.topsolid.de' =>  array(
>                  'GETvars' =>  array(
>                      'L' =>  '2',
>                  ),
>                  'useConfiguration' =>  '_DEFAULT',
>              ),
> 			'www.topsolid.it' =>  array(
>                  'GETvars' =>  array(
>                      'L' =>  '3',
>                  ),
>                  'useConfiguration' =>  '_DEFAULT',
>              ),
> 			'www.topsolid.es' =>  array(
>                  'GETvars' =>  array(
>                      'L' =>  '4',
>                  ),
>                  'useConfiguration' =>  '_DEFAULT',
>              ),
> 			'www.topsolid.gr' =>  array(
>                  'GETvars' =>  array(
>                      'L' =>  '5',
>                  ),
>                  'useConfiguration' =>  '_DEFAULT',
>              ),
> 			'br.topsolid.com' =>  array(
>                  'GETvars' =>  array(
>                      'L' =>  '6',
>                  ),
>                  'useConfiguration' =>  '_DEFAULT',
>              ),
> 			'cn.topsolid.com' =>  array(
>                  'GETvars' =>  array(
>                      'L' =>  '7',
>                  ),
>                  'useConfiguration' =>  '_DEFAULT',
>              ),
> 			'pl.topsolid.com' =>  array(
>                  'GETvars' =>  array(
>                      'L' =>  '8',
>                  ),
>                  'useConfiguration' =>  '_DEFAULT',
>              ),
> 			'hu.topsolid.com' =>  array(
>                  'GETvars' =>  array(
>                      'L' =>  '9',
>                  ),
>                  'useConfiguration' =>  '_DEFAULT',
>              ),
>          ),
> ),
> );
> ?>
>
> Many thanks if someone has an idea.
>
> Regards
>
> David
>
>
>



More information about the TYPO3-english mailing list