Freebie icon indicating copy to clipboard operation
Freebie copied to clipboard

PHP preg_match() error

Open russback opened this issue 10 years ago • 4 comments

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.

russback avatar Apr 18 '14 07:04 russback

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?

dennisfrank avatar Feb 03 '16 13:02 dennisfrank

@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.

  • Is the error occurring on every URL? If not, which ones specifically fail?
  • What are your extension settings for Freebie? Do you have any parentheses in the settings?

averyvery avatar Feb 24 '16 03:02 averyvery

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

dennisfrank avatar Feb 24 '16 03:02 dennisfrank

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

averyvery avatar Feb 24 '16 15:02 averyvery