[TYPO3-english] RealURL not working after update to 1.7
Neil Haskins
nhaskins at gmail.com
Thu Dec 24 16:54:08 CET 2009
Hi all,
I've been successfully running RealURL for a while now, but after
updateing to 1.7 no new links are generated, I tried clearing the cache
and now I have no links at all. Pages can still be viewed with the pid
(i.e. domain.tld/index.php?id=123) but if I try to type in a pages
"speaking URL" the first time I get an error, with the first page in the
tree underneath, after that I just get that first page from the tree
(even though it's not what I typed).
The error message is
Warning: preg_replace() [function.preg-replace]: Compilation failed:
missing terminating ] for character class at offset 13 in
/folder/folder/public_html/typo3conf/ext/realurl/class.tx_realurl_advanced.php
on line 896
that repeats many times, then it says once
Warning: Cannot modify header information - headers already sent by
(output started at
/folder/folder/public_html/typo3conf/ext/realurl/class.tx_realurl_advanced.php:896)
in
/folder/folder/public_html/typo3_src-4.2.10/typo3/sysext/cms/tslib/class.tslib_fe.php
on line 3229
I haven't altered class.tx_realurl_advanced.php, but line 896 (in context)
895 // Strip the rest...:
896 $processedTitle = preg_replace('/[^a-zA-Z0-9\\' . $space . ']/',
'', $processedTitle); // strip the rest
897 $processedTitle = preg_replace('/\\' . $space . '+/', $space,
$processedTitle); // Convert multiple 'spaces' to a single one
898 $processedTitle = trim($processedTitle, $space);
And my realurlconf.php
<?php
$tx_realurl_config = array(
'init' => array(
'enableCHashCache' => true,
'appendMissingSlash' => 'ifNotFile',
'enableUrlDecodeCache' => true,
'enableUrlEncodeCache' => true,
),
'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,
),
'fileName' => array (
'defaultToHTMLsuffixOnPrev' => 0,
),
);
$TYPO3_CONF_VARS['EXTCONF']['realurl'] = array(
'mlmi.org' => $tx_realurl_config,
'www.mlmi.org' => 'mlmi.org',
'lfmc.tv' => $tx_realurl_config,
'www.lfmc.tv' => 'lfmc.tv',
'oasisoflove.ca' => $tx_realurl_config,
'www.oasisoflove.ca' => 'oasisoflove.ca',
'kingdomcreation.tv' => $tx_realurl_config,
'www.kingdomcreation.tv' => 'kingdomcreation.tv',
'almusaphotography.com' => $tx_realurl_config,
'www.almusaphotography.com' => 'almusaphotography.com'
);
$TYPO3_CONF_VARS['EXTCONF']['realurl']['oasisoflove.ca']['pagePath']['rootpage_id']
= 1;
$TYPO3_CONF_VARS['EXTCONF']['realurl']['mlmi.org']['pagePath']['rootpage_id']
= 12;
$TYPO3_CONF_VARS['EXTCONF']['realurl']['lfmc.tv']['pagePath']['rootpage_id']
= 250;
$TYPO3_CONF_VARS['EXTCONF']['realurl']['kingdomcreation.tv']['pagePath']['rootpage_id']
= 319;
$TYPO3_CONF_VARS['EXTCONF']['realurl']['almusaphotography.com']['pagePath']['rootpage_id']
= 353;
unset($tx_realurl_config);
?>
I hope I've been clear, thanks for any help.
Merry Christmas to all, and to all a good night (or day).
More information about the TYPO3-english
mailing list