I'm getting an error when the feedburner.module is turned on. There is the error:

Warning: preg_match() [function.preg-match]: Delimiter must not be alphanumeric or backslash in /home/brent/bhn/sites/all/modules/feedburner/feedburner.module on line 293

The code that is causing the error is below:

  $useragents_regex = variable_get('feedburner_useragents', '/feedburner|feedvalidator/i');

  !preg_match($useragents_regex, preg_quote($_SERVER['HTTP_USER_AGENT']))

The error looks to be when it loads the variables from the db. The defaults, '/feedburner|feedvalidator/i' works just fine. To get it working, I replaced $useragents_regex with '/feedburner|feedvalidator/i' and it works fine.

Comments

Dave Reid’s picture

It's usually caused when you have a WYSIWYG editor that changes the useragents setting in admin/settings/feedburner when it shouldn't. Do you have TinyMCE/FCKeditor/WYSIWYG enabled?

designerbrent’s picture

Dave,

No, I don't have any WYSIWYG editor running now. I did at one time but not now. I can try looking at another install to see what is entered there.

I could also chalk it up to the odd install that I have. It's been upgraded to 6.4 from some pre-release versions of 6 and things like css and js aggregation don't work either. I think i need to do a total rebuild from scratch but i'm not looking forward to that.

So maybe it's just me!

Dave Reid’s picture

designerbrent, are you still having this issue or did you get it resolved?

designerbrent’s picture

Status: Active » Fixed

I think I got it resolved but it may just still be hacked. I can't remember. I need to rebuild the site from scratch as I think it has several problems... I'll just say that it is resolved.

Thanks for paying attention to it.

Netzarim’s picture

I have an error at the same location. I do have FCKEditor. I was getting some odd permissions errors, so I rebuilt permissions and got this error:

Warning: preg_match() [function.preg-match]: Unknown modifier 'p' in /mnt/nfs/home/ag/sites/all/modules/feedburner/feedburner.module on line 293

Warning: Cannot modify header information - headers already sent by (output started at /mnt/nfs/home/ag/sites/all/modules/feedburner/feedburner.module:293) in /mnt/nfs/home/ag/includes/bootstrap.inc on line 591

Warning: Cannot modify header information - headers already sent by (output started at /mnt/nfs/home/ag/sites/all/modules/feedburner/feedburner.module:293) in /mnt/nfs/home/ag/includes/bootstrap.inc on line 592

Warning: Cannot modify header information - headers already sent by (output started at /mnt/nfs/home/ag/sites/all/modules/feedburner/feedburner.module:293) in /mnt/nfs/home/ag/includes/bootstrap.inc on line 593

Warning: Cannot modify header information - headers already sent by (output started at /mnt/nfs/home/ag/sites/all/modules/feedburner/feedburner.module:293) in /mnt/nfs/home/ag/includes/bootstrap.inc on line 594

Appears to be related to that line 293... I am going to try the hack the other guy did as a work around....

##########################

Tried the hack, appears to work, in that I was able to rebuild permissions. I am still getting the error that I initially ran the rebuild of permissions for:

* DEBUG: N;
* DEBUG: Empty PERMISSIONS, IGNORING -- 281
* DEBUG: N;
* DEBUG: Empty PERMISSIONS, IGNORING -- 282
* DEBUG: N;
* DEBUG: Empty PERMISSIONS, IGNORING -- 283

This appears on all pages while logged in..

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.