[dokuwiki] Re: 'Search' times out and does not return results
From: ddoyle@xxxxxxxxxxxxxxxx
To: dokuwiki@xxxxxxxxxxxxx
Date: Tue, 6 Sep 2005 19:12:32 -0400
Hi Jeff,
After I had done the patch of indexer.php I still had trouble with the
searchindex plugin. I did the following (and then did a darcs revert
afterwords to remove the changes... because this is messy) to get a full
index to go:
* ensure your acl is setup and you're logged in as
the superuser
* copy the contents of lib/plugins/searchindex/script.js
to the end of lib/scripts/tw-sack.js (I know, horrible, but
I just wanted this to work once)
(the searchindex plugin's script.js file wasn't being included in
the page and this was the fastest way for me to fix it... i
don't know if this is my fault or not)
* click on the "admin" button
* click on "Searchindex Manager"
* click on "rebuild index" and wait patiently
That generated my index for me and all works well. Apologies if I gave
someone a stroke with my temporary hack and slash fix.
Thanks,
Dave
-----Original Message-----
From: dokuwiki-bounce@xxxxxxxxxxxxx [mailto:dokuwiki-bounce@xxxxxxxxxxxxx]
On Behalf Of Childs, Jeffrey
Sent: Tuesday, September 06, 2005 6:39 PM
To: dokuwiki@xxxxxxxxxxxxx
Subject: [dokuwiki] Re: 'Search' times out and does not return results
Dave,
Thanks for the patch.
Unfortunately, it didn't seem to help in this case. Thanks.
Jeff
-----Original Message-----
From: ddoyle@xxxxxxxxxxxxxxxx [mailto:ddoyle@xxxxxxxxxxxxxxxx]
Sent: Tuesday, September 06, 2005 2:56 PM
To: dokuwiki@xxxxxxxxxxxxx
Subject: [dokuwiki] Re: 'Search' times out and does not return results
Hello,
Long time listener, first time caller. Love me some dokuwiki.
I've submitted a patch concerning this. Not sure if I've done it right or
if Andi can use it but it worked on my Win32/Apache setup.
Basically the php builtin rename() function wasn't working on my system.
For me changing the following worked:
hunk ./inc/indexer.php 151
- return rename($conf['cachedir'].'/index.tmp',
- $conf['cachedir'].'/index.idx');
+ if(copy($conf['cachedir'].'/index.tmp',
+ $conf['cachedir'].'/index.idx')){
+ unlink($conf['cachedir'].'/index.tmp');
+ return true;
+ }
+ else{return false;}
Hope that's all good.
Thanks,
Dave
--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist