Skip to main content.
home | support | download

Back to List Archive

Index file error

From: Nick Le Mouton <noodles(at)>
Date: Fri Feb 25 2005 - 02:18:06 GMT
Hi everyone,

I've having some problems getting swish-e going on a new site that I'm
doing. I'm using the php extension for swish-e like so:

if(!extension_loaded('swishe')) {

$index_file = '/var/webroot/drugs/ddc.index';

$swish = swishe($index_file);

    if(($err = $swish->error()))
        echo "ERROR: $err (should be 0 on success)\n";
        $str_error = $swish->error_string();
        echo "ERROR TEXT: $str_error\n";
        $crit_error = $swish->critical_error();
        echo "ERROR CRITICAL: $crit_error\n";


But I get this error:

ERROR: -250 (should be 0 on success)
ERROR TEXT: Index file error

I've checked the index file, it's definitely there, and I can search it
using the command line e.g. swish-e -f ddc.index -w Orlistat
But php cannot access it for some reason (the index is even chmod'ed 777)

Can anyone help? This method has worked before on other sites that I've done
and this is the first time I've come across an error like this.

Received on Thu Feb 24 18:18:07 2005