[TYPO3-german] LTS Upgrade 4.5 auf 6.2 realurl - Probleme
Florian Haake
florian at haake24.net
Tue Apr 15 19:12:31 CEST 2014
Ok. Also ich werde schlauer... (wäre ja auch schlimm wenn nicht ;-))
Ich habe den Fehler mit dem Problem der weißen Seiten gefunden. Ich denke nahezu alle Fehler liegen in meiner realurl.conf-Datei.
Rausgeschmissen: if(preg_match('/simonconsult\.com/', t3lib_div::getIndpEnv('HTTP_HOST'))) {
Eingesetzt: if(preg_match('/xxxdomainxxx\.com/', \TYPO3\CMS\Core\Utility\GeneralUtility::getIndpEnv('HTTP_HOST'))) {
Jetzt habe ich nur noch das Problem, dass sowohl der deutsche (alsauch der englische) Webauftritt anstatt echter URLs mit Namen nur Zahlen verwenden. Er scheint also irgendwo die Domains nicht zu erkennen o.ä.
Hier nochmal die ganze realurl.conf - Datei:
===
<?php
// Host abfragen und getVar setzen (realurl ben<F6>tigt den L parameter):
if(preg_match('/simonconsult\.com/', t3lib_div::getIndpEnv('HTTP_HOST'))) {
$_GET['L'] = 1;
} else {
$_GET['L'] = 0;
}
$TYPO3_CONF_VARS['EXTCONF']['realurl'] = array(
'_DEFAULT' => array(
'init' => array(
'enableCHashCache' => true,
'appendMissingSlash' => 'ifNotFile',
'adminJumpToBackend' => true,
'enableUrlDecodeCache' => true,
'enableUrlEncodeCache' => true,
'emptyUrlReturnValue' => '/',
'disableErrorLog' => true,
),
'pagePath' => array(
'rootpage_id' => '1',
'type' => 'user',
'userFunc' => 'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
'spaceCharacter' => '-',
'languageGetVar' => 'L',
'expireDays' => 3,
'dontResolveShortcuts' => false,
'firstHitPathCache' => true,
'segTitleFieldList' => 'tx_realurl_pathsegment,alias,nav_title,title',
'autoUpdatePathCache' => true,
'encodeTitle_userProc'=>'fileadmin/template/scripts/tx_encode_realurl_title.php:tx_encode_realurl_title->main',
),
'preVars' => array(
array(
'GETvar' => 'L',
'valueMap' => array(),
'noMatch' => 'bypass',
),
array(
'GETvar' => 'LS',
'valueMap' => array(
'de' => '0',
'en' => '1',
),
'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
'select_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' => 'uid',
'addWhereClause' => ' AND NOT deleted',
'useUniqueCache' => 1,
'useUniqueCache_conf' => array(
'strtolower' => 1,
'spaceCharacter' => '-',
),
),
),
array(
'GETvar' => 'tx_ttnews[swords]',
),
),
),
),
// configure filenames for different pagetypes
'fileName' => array(
'defaultToHTMLsuffixOnPrev' => FALSE,
'index' => array(
'print.html' => array(
'keyValues' => array (
'type' => 98,
),
),
'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,
),
),/*
'aktuell.html' => array(
'keyValues' => array (
'no_cache' => 1,
),
),*/
),
),
),
);
$TYPO3_CONF_VARS['EXTCONF']['realurl']['www.XXXdomainXXX.de'] = $TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT'];
$TYPO3_CONF_VARS['EXTCONF']['realurl']['www.XXXdomainXXX.com'] = $TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT'];
?>
===
Aber jetzt finde ich den Fehler nicht mehr...
More information about the TYPO3-german
mailing list