ksevelyar
01.07.2008, 18:53
После обновления realurl до 1.4.0, если я создаю новую страницу (например news) и потом кликаю на ней то вижу например:
Reason: Segment "news" was not a keyword for a postVarSet as expected!
Если я жму просмотр страницы из бэкенда, то страница отображается - при адресе вида "index.php?id=6"
Мои настройки:
В сетапе:
config.simulateStaticDocuments = 0
config.baseURL = http://localhost:8505/
config.tx_realurl_enable = 1
config.uniqueLinkVars = 1
config.linkVars = L
в .htaccess
RewriteEngine On
RewriteRule ^typo3$ - [L]
RewriteRule ^typo3/.*$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule .* index.php
localconf
<?php
$TYPO3_CONF_VARS['SYS']['sitename'] = 'TYPO3 Dummy Version 4.2.0'; //
$TYPO3_CONF_VARS[SYS][doNotCheckReferer] = 1;
$TYPO3_CONF_VARS['SYS']['setDBinit'] = 'SET NAMES utf8;';
$TYPO3_CONF_VARS['BE']['forceCharset'] = 'utf-8';
// Default password is "joh316" :
$TYPO3_CONF_VARS['BE']['installToolPassword'] = 'bacb98acf97e0b6112b1d1b650b84971';
$TYPO3_CONF_VARS['EXT']['extList'] = 'tsconfig_help,context_help,extra_page_cm_options, impexp,sys_note,tstemplate,tstemplate_ceditor,tste mplate_info,tstemplate_objbrowser,tstemplate_analy zer,func_wizards,wizard_crpages,wizard_sortpages,l owlevel,install,belog,beuser,aboutmodules,setup,ta skcenter,info_pagetsconfig,viewpage,rtehtmlarea,cs s_styled_content,t3skin';
$TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT'] = array(
'init' => array(
'enableCHashCache' => 1
),
'preVars' => array(
array(
'GETvar' => 'no_cache',
'valueMap' => array(
'no_cache' => 1,
),
'noMatch' => 'bypass',
),
array(
'GETvar' => 'L',
'valueMap' => array(
'en' => '1',
),
'noMatch' => 'bypass',
),
),
'fileName' => array (
'index' => array(
'backend.php' => array(
'keyValues' => array (
'type' => 100,
)
),
'print' => array(
'keyValues' => array(
'type' => 98,
)
),
),
),
'postVarSets' => array(
'_DEFAULT' => array (
'article' => array(
array(
'GETvar' => 'tx_ttnews[tt_news]',
),
array(
'GETvar' => 'tx_ttnews[backPid]',
),
),
'category' => array(
array(
'GETvar' => 'tx_ttnews[cat]',
),
),
'neste' => array(
array(
'GETvar' => 'tx_ttnews[pointer]',
),
),
),
),
'pagePath' => array(
'type' => 'user',
'userFunc' => 'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
'spaceCharacter' => '-',
'languageGetVar' => 'L',
'expireDays' => 3
),
);
## INSTALL SCRIPT EDIT POINT TOKEN - all lines after this points may be changed by the install script!
$typo_db_username = 'root'; // Modified or inserted by TYPO3 Install Tool.
$typo_db_host = 'localhost:8501';
$typo_db = 'utf8_typo';
$TYPO3_CONF_VARS["GFX"]["im_path"] = 'C:\\Program Files\\TYPO3_4.2.0\\GraphicsMagick\\'; // Modified by TYPO3Winstaller
$TYPO3_CONF_VARS["GFX"]["im_path_lzw"] = 'C:\\Program Files\\TYPO3_4.2.0\\GraphicsMagick\\';
$TYPO3_CONF_VARS["GFX"]["im_version_5"] = 'gm';
$TYPO3_CONF_VARS["GFX"]["TTFdpi"] = '96'; // Modified or inserted by TYPO3 Install Tool.
$TYPO3_CONF_VARS["GFX"]["gdlib_2"] = '1'; // Modified or inserted by TYPO3 Install Tool.
$TYPO3_CONF_VARS["SYS"]["encryptionKey"] = '47d1e990583c9c67424d369f3414728e6793d9dc2ae3429d4 88a7374bc85d2a0b19b62xxx7d46a6079a75f10934288d3';
$TYPO3_CONF_VARS['EXT']['extList'] = 'css_styled_content,tsconfig_help,context_help,ext ra_page_cm_options,impexp,sys_note,tstemplate,tste mplate_ceditor,tstemplate_info,tstemplate_objbrows er,tstemplate_analyzer,func_wizards,wizard_crpages ,wizard_sortpages,lowlevel,install,belog,beuser,ab outmodules,setup,taskcenter,info_pagetsconfig,view page,rtehtmlarea,t3skin,automaketemplate,tt_news,r ealurl';
$TYPO3_CONF_VARS['EXT']['extConf']['css_styled_content'] = 'a:2:{s:15:"setPageTSconfig";s:1:"1";s:19:"removePositionTypes";s:1:"1";}';
$TYPO3_CONF_VARS['EXT']['extConf']['tt_news'] = 'a:12:{s:13:"useStoragePid";s:1:"1";s:13:"noTabDividers";s:1:"0";s:25:"l10n_mode_prefixLangTitle";s:1:"1";s:22:"l10n_mode_imageExclude";s:1:"1";s:20:"hideNewLocalizations";s:1:"0";s:13:"prependAtCopy";s:1:"1";s:5:"label";s:5:"title";s:9:"label_alt";s:0:"";s:10:"label_alt2";s:0:"";s:15:"label_alt_force";s:1:"0";s:21:"categorySelectedWidth";s:1:"0";s:17:"categoryTreeWidth";s:1:"0";}';
$TYPO3_CONF_VARS['SYS']['sitename'] = 'TYPO3 Saitovodstvo Version 4.2.0'; // Modified or inserted by TYPO3 Install Tool.
$TYPO3_CONF_VARS['SYS']['encryptionKey'] = 'd66aa232d380ecb631bf9582e7532952';
$TYPO3_CONF_VARS['GFX']["im"] = '0';
$TYPO3_CONF_VARS['GFX']['im_combine_filename'] = '';
$TYPO3_CONF_VARS['GFX']["im_path"] = '';
$TYPO3_CONF_VARS['GFX']['im_version_5'] = 'gm';
$TYPO3_CONF_VARS['GFX']["im_path_lzw"] = '';
$TYPO3_CONF_VARS['GFX']['thumbnails'] = '1';
$TYPO3_CONF_VARS['GFX']['im_path'] = 'C:\\Program Files\\TYPO3_4.2.0\\GraphicsMagick\\'; // Modified or inserted by TYPO3 Install Tool.
$TYPO3_CONF_VARS['GFX']['im_path_lzw'] = 'C:\\Program Files\\TYPO3_4.2.0\\GraphicsMagick\\';
$TYPO3_CONF_VARS['FE']['disableNoCacheParameter'] = '0'; // Modified or inserted by TYPO3 Install Tool.
$TYPO3_CONF_VARS['EXT']['extConf']['realurl'] = 'a:4:{s:10:"configFile";s:26:"typo3conf/realurl_conf.php";s:14:"enableAutoConf";s:1:"0";s:14:"autoConfFormat";s:1:"0";s:12:"enableDevLog";s:1:"0";}';
$TYPO3_CONF_VARS["SYS"]["compat_version"] = '4.2'; // Modified or inserted by TYPO3 Install Tool.
?>
Очень надеюсь на помошь.
Reason: Segment "news" was not a keyword for a postVarSet as expected!
Если я жму просмотр страницы из бэкенда, то страница отображается - при адресе вида "index.php?id=6"
Мои настройки:
В сетапе:
config.simulateStaticDocuments = 0
config.baseURL = http://localhost:8505/
config.tx_realurl_enable = 1
config.uniqueLinkVars = 1
config.linkVars = L
в .htaccess
RewriteEngine On
RewriteRule ^typo3$ - [L]
RewriteRule ^typo3/.*$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule .* index.php
localconf
<?php
$TYPO3_CONF_VARS['SYS']['sitename'] = 'TYPO3 Dummy Version 4.2.0'; //
$TYPO3_CONF_VARS[SYS][doNotCheckReferer] = 1;
$TYPO3_CONF_VARS['SYS']['setDBinit'] = 'SET NAMES utf8;';
$TYPO3_CONF_VARS['BE']['forceCharset'] = 'utf-8';
// Default password is "joh316" :
$TYPO3_CONF_VARS['BE']['installToolPassword'] = 'bacb98acf97e0b6112b1d1b650b84971';
$TYPO3_CONF_VARS['EXT']['extList'] = 'tsconfig_help,context_help,extra_page_cm_options, impexp,sys_note,tstemplate,tstemplate_ceditor,tste mplate_info,tstemplate_objbrowser,tstemplate_analy zer,func_wizards,wizard_crpages,wizard_sortpages,l owlevel,install,belog,beuser,aboutmodules,setup,ta skcenter,info_pagetsconfig,viewpage,rtehtmlarea,cs s_styled_content,t3skin';
$TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT'] = array(
'init' => array(
'enableCHashCache' => 1
),
'preVars' => array(
array(
'GETvar' => 'no_cache',
'valueMap' => array(
'no_cache' => 1,
),
'noMatch' => 'bypass',
),
array(
'GETvar' => 'L',
'valueMap' => array(
'en' => '1',
),
'noMatch' => 'bypass',
),
),
'fileName' => array (
'index' => array(
'backend.php' => array(
'keyValues' => array (
'type' => 100,
)
),
'print' => array(
'keyValues' => array(
'type' => 98,
)
),
),
),
'postVarSets' => array(
'_DEFAULT' => array (
'article' => array(
array(
'GETvar' => 'tx_ttnews[tt_news]',
),
array(
'GETvar' => 'tx_ttnews[backPid]',
),
),
'category' => array(
array(
'GETvar' => 'tx_ttnews[cat]',
),
),
'neste' => array(
array(
'GETvar' => 'tx_ttnews[pointer]',
),
),
),
),
'pagePath' => array(
'type' => 'user',
'userFunc' => 'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
'spaceCharacter' => '-',
'languageGetVar' => 'L',
'expireDays' => 3
),
);
## INSTALL SCRIPT EDIT POINT TOKEN - all lines after this points may be changed by the install script!
$typo_db_username = 'root'; // Modified or inserted by TYPO3 Install Tool.
$typo_db_host = 'localhost:8501';
$typo_db = 'utf8_typo';
$TYPO3_CONF_VARS["GFX"]["im_path"] = 'C:\\Program Files\\TYPO3_4.2.0\\GraphicsMagick\\'; // Modified by TYPO3Winstaller
$TYPO3_CONF_VARS["GFX"]["im_path_lzw"] = 'C:\\Program Files\\TYPO3_4.2.0\\GraphicsMagick\\';
$TYPO3_CONF_VARS["GFX"]["im_version_5"] = 'gm';
$TYPO3_CONF_VARS["GFX"]["TTFdpi"] = '96'; // Modified or inserted by TYPO3 Install Tool.
$TYPO3_CONF_VARS["GFX"]["gdlib_2"] = '1'; // Modified or inserted by TYPO3 Install Tool.
$TYPO3_CONF_VARS["SYS"]["encryptionKey"] = '47d1e990583c9c67424d369f3414728e6793d9dc2ae3429d4 88a7374bc85d2a0b19b62xxx7d46a6079a75f10934288d3';
$TYPO3_CONF_VARS['EXT']['extList'] = 'css_styled_content,tsconfig_help,context_help,ext ra_page_cm_options,impexp,sys_note,tstemplate,tste mplate_ceditor,tstemplate_info,tstemplate_objbrows er,tstemplate_analyzer,func_wizards,wizard_crpages ,wizard_sortpages,lowlevel,install,belog,beuser,ab outmodules,setup,taskcenter,info_pagetsconfig,view page,rtehtmlarea,t3skin,automaketemplate,tt_news,r ealurl';
$TYPO3_CONF_VARS['EXT']['extConf']['css_styled_content'] = 'a:2:{s:15:"setPageTSconfig";s:1:"1";s:19:"removePositionTypes";s:1:"1";}';
$TYPO3_CONF_VARS['EXT']['extConf']['tt_news'] = 'a:12:{s:13:"useStoragePid";s:1:"1";s:13:"noTabDividers";s:1:"0";s:25:"l10n_mode_prefixLangTitle";s:1:"1";s:22:"l10n_mode_imageExclude";s:1:"1";s:20:"hideNewLocalizations";s:1:"0";s:13:"prependAtCopy";s:1:"1";s:5:"label";s:5:"title";s:9:"label_alt";s:0:"";s:10:"label_alt2";s:0:"";s:15:"label_alt_force";s:1:"0";s:21:"categorySelectedWidth";s:1:"0";s:17:"categoryTreeWidth";s:1:"0";}';
$TYPO3_CONF_VARS['SYS']['sitename'] = 'TYPO3 Saitovodstvo Version 4.2.0'; // Modified or inserted by TYPO3 Install Tool.
$TYPO3_CONF_VARS['SYS']['encryptionKey'] = 'd66aa232d380ecb631bf9582e7532952';
$TYPO3_CONF_VARS['GFX']["im"] = '0';
$TYPO3_CONF_VARS['GFX']['im_combine_filename'] = '';
$TYPO3_CONF_VARS['GFX']["im_path"] = '';
$TYPO3_CONF_VARS['GFX']['im_version_5'] = 'gm';
$TYPO3_CONF_VARS['GFX']["im_path_lzw"] = '';
$TYPO3_CONF_VARS['GFX']['thumbnails'] = '1';
$TYPO3_CONF_VARS['GFX']['im_path'] = 'C:\\Program Files\\TYPO3_4.2.0\\GraphicsMagick\\'; // Modified or inserted by TYPO3 Install Tool.
$TYPO3_CONF_VARS['GFX']['im_path_lzw'] = 'C:\\Program Files\\TYPO3_4.2.0\\GraphicsMagick\\';
$TYPO3_CONF_VARS['FE']['disableNoCacheParameter'] = '0'; // Modified or inserted by TYPO3 Install Tool.
$TYPO3_CONF_VARS['EXT']['extConf']['realurl'] = 'a:4:{s:10:"configFile";s:26:"typo3conf/realurl_conf.php";s:14:"enableAutoConf";s:1:"0";s:14:"autoConfFormat";s:1:"0";s:12:"enableDevLog";s:1:"0";}';
$TYPO3_CONF_VARS["SYS"]["compat_version"] = '4.2'; // Modified or inserted by TYPO3 Install Tool.
?>
Очень надеюсь на помошь.