Freebie
Freebie copied to clipboard
PHP preg_match() error
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.
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 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 Could you try person)
. That should fail.
Perfect. Just pushed 0.2.4, check it out and let me know if it works for you.