PDA

View Full Version : Spider CLI call under Windows fails [Workaround included]


shockfreezer
06-22-2006, 07:58 AM
Hi there,

today i had to call the spider for reindexing on Windows from the CLI. (Windows Taskplaner)
The problem was that the spider could'nt include some files, because the variable $relative_script_path in the file "/admin/spider.php" was wrong.

To fix that I had to replace the code on line 53 in the spider.php:
$relative_script_path = implode('/',$path_part);
with this code:
$relative_script_path = realpath(dirname(__FILE__)."/..");

This fix should work for any installation type :)

Greez
shockfreezer