Search Box Warning: preg_replace() [function.preg-replace]: Unknown modifier

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
carasmo
Power Poster
Power Poster
Posts: 506
Joined: Thu Feb 08, 2007 6:11 pm

Search Box Warning: preg_replace() [function.preg-replace]: Unknown modifier

Post by carasmo »

Help!

I've installed CMSMS on two sites, both are validating on the pages in question. One site has zero problems with the search, but the other site, when I put in a "/" or strange characters in the search field, it returns errors:

Warning: preg_replace() [function.preg-replace]: Unknown modifier

Code: Select all

The error site is: www.contemporarywomenscare.com/-/contemporary-womens-care/
I did a search for "ob/gyn" and anything with a / and errors are cropping up all over the place.

The other site that doesn't have errors is: http://www.dropsoul.com/testCMSMS/

No errors. The only difference is that I'm using an image for the submit button on the one with the errors.

Please, please, I beg for help.

Thank you.
Last edited by carasmo on Thu Mar 22, 2007 12:51 am, edited 1 time in total.
carasmo
Power Poster
Power Poster
Posts: 506
Joined: Thu Feb 08, 2007 6:11 pm

Re: Search Box Warning: preg_replace() [function.preg-replace]: Unknown modifier

Post by carasmo »

Apparently any page with content ob/gyn or somthing/something will return errors on all CMSMS sites. This is something wrong with the module itself. The errors are:

For example, I added xy/snn on a page and then did a search for it:

I get this error:

Warning: preg_replace() [function.preg-replace]: Unknown modifier 'n' in /home/cwc/public_html/-/modules/Search/action.dosearch.php on line 169

Warning: preg_replace() [function.preg-replace]: Unknown modifier 'n' in /home/cwc/public_html/-/modules/Search/action.dosearch.php on line 170

it's all about the action.dosearch.php page. What on that page doesn't accept "/" forward slashes. Please help me fix this.

Thank you!!
carasmo
Power Poster
Power Poster
Posts: 506
Joined: Thu Feb 08, 2007 6:11 pm

Re: Search Box Warning: preg_replace() [function.preg-replace]: Unknown modifier

Post by carasmo »

Bump
carasmo
Power Poster
Power Poster
Posts: 506
Joined: Thu Feb 08, 2007 6:11 pm

Re: Search Box Warning: preg_replace() [function.preg-replace]: Unknown modifier

Post by carasmo »

Bump
carasmo
Power Poster
Power Poster
Posts: 506
Joined: Thu Feb 08, 2007 6:11 pm

Re: Search Box Warning: preg_replace() [function.preg-replace]: Unknown modifier

Post by carasmo »

Please
Post Reply

Return to “CMSMS Core”