[TYPO3-project-realty] Error with realty__search
Frank Hüttner
Frank.Huettner at web-me.org
Fri Jun 13 13:38:55 CEST 2008
Frank Hüttner schrieb:
> Hi,
>
> i get the following error message when I activate "realty__search":
> Fatal error: Class 'tx_lib_translator' not found in
> /..../typo3conf/ext/realty__search/controllers/extended/class.tx_lib_translator_extended.php
> on line 3
>
> Can somebody help me?
>
> TYPO3 4.2.1
> oelib 0.4.1
> realty 0.1.2
> realty__search 0.1.3
Dmitry Dulepov [typo3] schrieb:
> Frank Hüttner wrote:
>> i get the following error message when I activate "realty__search":
Fatal error: Class 'tx_lib_translator' not found in
/..../typo3conf/ext/realty__search/controllers/extended/class.tx_lib_translator_extended.php
on line 3
>>
>> Can somebody help me?
>
> 1. Open
typo3conf/ext/realty__search/controllers/extended/class.tx_lib_translator_extended.php
> 2. There should be one or more lines in the beginning of the file
that start from "require_once". Position cursor after them. If there are
no such lines, position the cursor before the line that starts from
"class ". Hit ENTER key to create a new line.
> 3. Add the following:
> requore_once(t3lib_extMgm::extPath('lib',
'class.tx_lib_translator.php'));
>
> This should help.
>
It work's!!!
<?php
require_once(t3lib_extMgm::extPath('lib', 'class.tx_lib_translator.php'));
class tx_lib_translator_extended extends tx_lib_translator {
function _translate($text) {
$this->_loadLocalLang();
$pattern = $this->translationPattern . 'e';
$this->parser = new tx_realty__search_models;
return preg_replace($pattern,
'$this->parser->convertString($this->_getLocalLang(\'$1\'))', $text);
}
}
if (defined('TYPO3_MODE') &&
$TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/realty__search/controllers/extended/class.tx_lib_translator_extended.php'])
{
include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/realty__search/controllers/extended/class.tx_lib_translator_extended.php']);
}
?>
More information about the TYPO3-project-realty
mailing list