The search modules doesn't work; i tried to key-in the common text, the result is nothing. Nothing I can search. Why?

Thks

Comments

markhope’s picture

Can you post some more details?

What happens when you search - blank page, no results or a message?

Have you got cron enabled (or poormanscron module) to index your site content?
Is this on a local test server?

Mark

treotan’s picture

Yes nothing can be search;
I cannot find the module called poormanscron; and the cron job is already run.
Yes I think this is the index problem, but I do not know how to fix it?

Thks

markhope’s picture

Yes nothing can be search;

Sorry treotan but you've said this already - if you explain what happens when you search somebody may be able to help.

Do you search for something and the page refreshes but with no results?
Do you get any error message?
What is your version of PHP? Do you normally get PHP error messages (error logs print to screen)
Are you developing on a local test site, or is on a hosted server? Does it work on the local test site but not on the hosted server?
What version of Drupal are you using?

To see if the site has been indexed go to:
Home » administer » settings » search

To enable searching by role go to:
Home » administer » access control

If you need to run cron through drupal:
http://drupal.org/project/poormanscron

Mark

treotan’s picture

OK! I just used the common text for testing; it do not prompted any red-text message, just display "Your Search Yielded No Results".
And I checked the "Home » administer » settings » search", I pressed the Re-inde site button and display "0% of the site has been indexed. There are 81 items left to index." Is it normal? But it still cannot use search function.

My web is hosting on the webhosting company and the configuration is the php is 4.3.11, drupal is 4.7.3, mysql is 4.0.23, and apache is 1.3.33.

I already enable the access control (search content) for all users.

Thanks a lots,

markhope’s picture

Hi Treotan,

you will probably need to upgrade PHP or change to a host that has a later version of PHP.

See:
http://drupal.org/node/29227
http://drupal.org/node/6696

I recently had problems with the search and login features - I would get a php error with the search feature and the login would just refresh the page and then nothing - much like what is happening when you search.

PHP 4.3.2 and lower is distributed with a version of PCRE Library that is too old for Drupal 4.7 (Version later than 3.9 is required if I remember rightly)

Can you find out what version of PCRE you have using a phpinfo(); page?

I think that under the admin interface I got an error under general settings that said something about PCRE and UTF-8 support.
Do you get this too?

Mark

treotan’s picture

pcre
PCRE (Perl Compatible Regular Expressions) Support enabled
PCRE Library Version 4.5 01-December-2003

HTTP_ACCEPT_CHARSET ISO-8859-1, utf-8;q=0.7,*;q=0.7

Is it ok? or just upgrade the php to version 4.3.2?

Thks

markhope’s picture

Hi Treotan,

The version of PCRE is OK I think (can't find the post that mentioned the version!) however looking at the requirements for Drupal...

http://drupal.org/requirements

it does state that Drupal 4.6 onwards need PHP 4.3.3 or later. I'd say you need to upgrade.

Mark

wmostrey’s picture

Hey Mark,

You could be right. One more thing I'm guessing here, is that cron.php is not set up correctly.

Treotan,

Try to run cron.php from your browser. So that's http://yoursite.ext/cron.php. Does it return any errors? Do the settings still display "0% processed" or not?

wmostrey’s picture

Hey Mark,

You could be right. One more thing I'm guessing here, is that cron.php is not set up correctly.

Treotan,

Try to run cron.php from your browser. So that's http://yoursite.ext/cron.php. Does it return any errors? Do the settings still display "0% processed" or not?

treotan’s picture

Hi Wmostrey,

I tried to run http://mydomain.com/cron.php; I cannot see anything, it is a blank page. Nothing....0% processed....

Thanks

wmostrey’s picture

Hey treotan,

Then I'm afraid markhope is right and you should upgrade your PHP version if possible. If it's not possible, I'm afraid you'll have to do without the search functionality..

tom friedhof’s picture

I'm having the same issue. I running apache 2.0.55, mysql 4.1.12, drupal 4.7 cvs, php 4.4.2, PCRE 6.2. My search index says 0% of the site has been indexed. Cron is running correctly and the search_index table is updating according to what mysql is saying, but the search index in drupal still says 0%. I can search for some content, but not search for everything including the content headers, which are supposed to be scored really high with the search module. Why isn't everything getting indexed?