[TYPO3-english] Re: realurl autoconf not generating

Riccardo Coletta leilond at hotmail.com
Thu Jul 20 10:38:49 CEST 2017


I finally discovered the problem myself
I have an extension that in his "localconf.php" has this

$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl']['decodeSpURL_preProc']["ric_test"] = 
	'EXT:ric_test/Classes/Hooks/Realurl.php:RIC\\RicTest\\Hooks\\Realurl->decodeSpURL_preProc';

I use it to make some url decoding to "prettify" them a bit more. And it works perfectly.
Well, if I deleted "realurl_autoconf.php" file, it  won't be regenerated until this hook is so declared. 

I had to modifiy my extension this way

if( file_exists( "../realurl_autoconf.php" ) ) {
	$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl']['decodeSpURL_preProc']["ric_test"] = 
	'EXT:ric_test/Classes/Hooks/Realurl.php:RIC\\RicTest\\Hooks\\Realurl->decodeSpURL_preProc';
}

And it finally worked




More information about the TYPO3-english mailing list