[TYPO3-dev] Re: Indexed Search Functionality Issue on TYPO3

Ramaraju Musku mramaraju.dba at gmail.com
Thu Jul 31 03:38:53 CEST 2014


Hello,
As mentioned, we  need to define 'PATH_thisScript' in crawler_cli.phpsh file. The script as follows -

        // Defining circumstances for CLI mode:
define('TYPO3_cliMode', TRUE);

        // Defining PATH_thisScript here: Must be the ABSOLUTE path of this script in the right context:
        // This will work as long as the script is called by it's absolute path!
define('PATH_thisScript',$_ENV['_']?$_ENV['_']:$_SERVER['_']);

        // Include configuration file:
require(dirname(PATH_thisScript).'/conf.php');

        // Include init file:
require(dirname(PATH_thisScript).'/'.$BACK_PATH.'init.php');



# HERE you run your application!
require_once(t3lib_extMgm::extPath('crawler').'class.tx_crawler_lib.php');

$crawlerObj = t3lib_div::makeInstance('tx_crawler_lib');


exit($crawlerObj->CLI_main());

?>

Locations: /var/www/bluestar-typo3/production-b/htdocs/typo3conf/ext/crawler/cli/crawler_cli.phpsh
                   /var/www/bluestar-typo3/production-b/htdocs/typo3/cli_dispatch.phpsh
And we have full root permissions for above files. I am new to this TYPO3 functionality. Can you please explain what are things I made wrong and what changes I need to do ?



More information about the TYPO3-dev mailing list