Fatal (and non-fatal) errors

davidjeanneret - December 15, 2008 - 19:19
Project:Search and Replace
Version:6.x-1.1-beta3
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:postponed (maintainer needs more info)
Description

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

#1

davidjeanneret - December 15, 2008 - 19:30

I'm running Drupal 6.3 - forgot to say!

#2

btopro - December 17, 2008 - 01:41

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.

#3

davidjeanneret - December 17, 2008 - 11:34

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

#4

btopro - February 23, 2009 - 20:43
Status:active» postponed (maintainer needs more info)

is this still an issue in beta3?

#5

btopro - February 23, 2009 - 20:43
Version:6.x-1.1-beta1» 6.x-1.1-beta3
 
 

Drupal is a registered trademark of Dries Buytaert.