averyvery / Freebie

EE 2.0 extension for ignoring specific segments when routing
57 stars 8 forks source link

PHP preg_match() error #20

Open russback opened 10 years ago

russback commented 10 years ago

Hi.

We're getting a warning:

A PHP Error was encountered
Severity: Warning
Message: preg_match(): Unknown modifier ')'
Filename: freebie/ext.freebie.php
Line Number: 292

This is on php 5.3.3.

dennisfrank commented 8 years ago

I had the same error. And man, this was hard to debug, but finally easy to solve:

I had a ) in my custom Profile Triggering Word. This was messing with the preg_match().

For now I would avoid (and )in the Profile Triggering Word.

@averyvery Would this be an easy fix?

averyvery commented 8 years ago

@dennisfrank sorry for the very late reply on this. I just set my profile triggering word to "(person)" on a local copy and it seemed to have no effect on Freebie's effectiveness.

dennisfrank commented 8 years ago

@averyvery Could you try person). That should fail.

averyvery commented 8 years ago

Perfect. Just pushed 0.2.4, check it out and let me know if it works for you.