Hi there,

I get the following error appear on an otherwise empty white page:

Fatal error: Call to undefined function: str_ireplace() in /home/sites/danmaurice.co.uk/public_html/modules/search_and_replace/search_and_replace.module on line 241

when I search:
Case sensitive: No
Search for: Haileybury
Replace with: H a i l e y b u r y
Function: Search Body and Title Text
Types: Selected All

If I Simply change the Case sensitivity to 'Yes'
I get (after a little wait) a drupal Search and Replace page with:

warning: Wrong parameter count for str_replace() in /home/sites/danmaurice.co.uk/public_html/modules/search_and_replace/search_and_replace.module on line 244.

repeated 216 times in a red backed box

Followed by

0 occurrences found in the following node bodies and titles:

in a green backed box
and no search results listed.

Any ideas?

Cheers
David

Comments

davidjeanneret’s picture

I'm running Drupal 6.3 - forgot to say!

btopro’s picture

ugh! Never been able to get that before. Clean URLs on or off? do you have content types that don't have a body field? (I havent tested it on ones w/o it either).

I'm extremely busy lately but it is in the queue to patch issues and put out a full version.

davidjeanneret’s picture

Clean URLs are enabled.

Content Type Field:
Blog - Title, Body
Image - Title, Image, Image Galleries, Body
Page - Title, Body
Poll - Question, Choice, Vote Count, Poll Status, Poll Duration
Story - Title, Body

So I guess the answer is yes - cos the Poll type doesn't appear to have a body field.

I tried searching just the Blog and Page content types, but got the same issues.

Sorry - that hasn't ruled anything out!

Thanks for your attention

Happy Christmas!

Peace - David

btopro’s picture

Status: Active » Postponed (maintainer needs more info)

is this still an issue in beta3?

btopro’s picture

Version: 6.x-1.1-beta1 » 6.x-1.1-beta3