hi everybody,

i have drupal4.6
scientific Linux = rhel3 = redhat enterprise 3
and just upgraded to php4.3.11-8 (which i finaly found)

before upgrading i had the problem, that i got the bad errormessage when i searched for content
"warning: Compilation failed: characters with values > 255 are not yet supported in classes at offset 52 in /var/www/html/drupal/modules/search.module on line 258."

this message do not show up anymore thanks a lot !!!!!

now i can search as administrator for users and get a correct result, that even worked already befor upgrading.

BUT if i search for content NOW i do not get errormessages anymore
BUT as result i get "sorry no result found/yield" instead of the content i was searching for.

i haven´t installed a cronjob via crontab yet, but i call from my browser www.mydrupal.cron.php
and i see in the adminmode, that 100% of the content of my board are INDEXED.

do i have to change some paths for the searchengine in the config/setting.php ??????
or did i forget soemthing important ???

i checked the handbook and i searched alrteady for the problem
but it still do not work

greets

aX...

Comments

alex_k-1’s picture

hi everybody,

i just solved all problems i had with the great SEARCH ENGINE on Drupal.
And i have to say that the Support and Documentations i found about a
fundamental module for Drupal was frustrating and STINKY BIRDSHI.....

well read my anger mail i will write on the forum later.

1. if you search a word and get errors like
"warning: Compilation failed: characters with values > 255 are not yet
supported in classes at offset 52 in
/var/www/html/drupal/modules/search.module on line 258."

--> than you need to upgrade php to > php4.3.2 (if you work with RHEL3
like me, than you are in trouble or you check
http://www.atomicrocketturtle.com/atomic/art/3ES/RPMS/).

2. you need to set a cronjob under linux with crontab for the "cron.php" in
your drupalfolder or you type the adress for cron.php in your
browser and press enter in my case it was
www.mydrupal.de/cron.php that indexes all content from your
drupalforum into the mysql-database. See also
http://drupal.org/node/22265
http://drupal.org/handbook/modules/search
http://drupal.org/node/23714
http://drupal.org/project/poormanscron

3. if you ever did a change on your side at administrator->settings->search,
this might cause that you can not index anymore or you miss old
indexes. Check in your mysql database the tables
search_index
search_total, i deleted all content in this tables (just the content !!)
than i also deleted
comment_cron_last
node_cron_last
in the table "variables" or just one of them if you can just see one.
After that i called again www.mydrupal.de/cron.php and everything
was indexed and searchable.
see also:
http://drupal.org/node/4288

I can tell you it took me very long time finding out this 3 steps, i can say it was to long...
well everything works now if you have a problem with search, feel free to contact me

cheers

aLeX...

peterthevicar’s picture

Thanks for the tips on this - I had the same error.

Compilation failed: characters with values > 255 are not yet supported in classes

A couple of simple changes seem to get search working with PHP 4.3.2. I edited search.module and made these changes:

1) Remove all characters with > 2 hex digits from the three CLASS definitions near the start. Make sure they still have matching ' round them. This removed the compilation failure. Had to force a reindex by clearing the value of cron_last_run in the value table of the database. After visiting cron.php the search worked OK for whole words but not wildcards.

2) Down in the do_search routine (line 474) you'll find it uses a multi-byte character to mark the place for * wildcards. I deleted the first two of the three characters leaving only the one-half symbol. There are 4 occurrences of this in the routine.

With these simple changes it seems to work with PHP 4.3.2. I guess this cut-down functionality (no UTF) could be made dependent on the version of PHP by a very clever person!

peterthevicar
drupal site: lymingtonchurch.org