07-19-2012, 07:45 PM
(07-19-2012, 04:44 PM)AlSchedl Wrote: Hi there,
in serveral docs to letodms it is mentioned, that it makes sense to regularly update the zend-lucene-driven full text index by cron job.
I tought this would be quite simple by adding a line
0 22 * * 1-5 /usr/bin/php /srv/www/htdocs/letodms/out/out.Indexer.php
to root´s crontab. But calling the script in that way only gives a
PHP Notice: Undefined index: REQUEST_URI in /srv/www/htdocs/letodms/inc/inc.Authentication.php on line 15
What am I missing. Could it be, that there is some environmental thing missing, when calling it that way ?
out.Indexer.php is supposed to be accessed by a browser. The php notice above is a rather minor problem. The major problem is the fact that you are not authenticated. You had to login and save the cookie first. In a second step you can call out.Indexer.php. It would be easier to take the indexer.php script from the utils directory.
Uwe