I'm running a Drupal 5 install. Some time ago my site search started to show strange behaviour. At first I thought this was browser-related (http://drupal.org/node/223973), but the problems occur in all browsers.
The problem is that some searches will return normal results and others will take a long time and then end in a totally blank screen. I've tried to figure out if there's a pattern in the search terms on which the serach fails, but I haven't been able to find any smilarities.
- Short search terms as well as long ones, will fail
- Search terms that would give a few results as well as the ones that would give thousands, will fail
- Single terms as well as sets of words, will fail
I've searched the Drupal forums, but the problems were all different from mine. One thread suggested to use a manual form in a block instead of the default search block, but that didn't work either. Playing with the number of items that is indexed on a cron run has no effect either.
The site is 99% indexed and cron is running fine. Reïndexing doesn't have any effect.
Are there peopel who've had the same problem? Or maybe someone knows in what direction I should direct my search.. Thanks in advance.
Comments
I'm running a Drupal 5
Drupal 5. what ? 5.0? 5.1? 5.2? 5.7?
_____________________________________________________________________
My posts & comments are usually dripping with sarcasm.
If you ask nicely I'll give you a towel : )
I'm sorry I omitted that.
I'm sorry I omitted that. 5.7 off course..
=-=
what I would try to work at
export the DB, import it on a local installation
truncate the search table, then reindex
see if problem perists.
I assume you aren't using any contrib modules that would affect the search ?
_____________________________________________________________________
My posts & comments are usually dripping with sarcasm.
If you ask nicely I'll give you a towel : )
Can you rule out memory
Can you rule out memory problems or PHP timeout problems? Searching is quite resource intensive, so you might be running out or time or memory. Depending on the general load of the website, this will happen haphazardly, I reckon.
I think I can
I think I can rule out memory. I'm on a dedicated core2duo server with 2GB and the site doesn't have a lot of visitors.
Strangely some keywords fail repeatedly, but others will give successfull results repeatedly.
I'm going to use the suggestion to export the DB to a local install (no search related modules btw). I was hoping there was someone with the same problem and an easy solution.
Just because your server has 2GB of memory
doesn't mean php isn't running out of memory. By default php 4 usually only allocates 8MB of RAM. On my machine when I upgraded to 5 it allocated 16MB. I upped it to 24MB in the config file just to make sure.
I too am on a similar server.
memory_limit
memory_limit - 128MPeople tell me that's enough for just about anything..
yeah, that should be enough
yeah, that should be enough for most cases.
Do you have PHP error reporting and so on, turned on? If not, turn it on to see whether it returns a white page, or some hidden PHP errors. But try the database thingy first.
Still having trouble
I'm still having trouble with the search on this Drupal 5 install. In truncated the search tabel and reïndexed everything. After everything was indexed the blank pages returned. It's driving me (and the users) crazy.
I've got the following modules installed:
ACL
Advertisement
CCK
Contemplate
Flatcomment
Forum Access
Gmap
Image
LoginToboggan
Panels
Views
Does anyone know if there are known problems with search in combination with any of these modules?