i got this error :(

warning: preg_match() [function.preg-match]: Unknown modifier 'p' in /www/htdocs/w009e5c5/drupal/modules/feedburner/feedburner.module on line 246.

what can i do ?

thx in advance

Comments

eanx’s picture

I received a similar error but only after attempting to activate feedflare integration:

warning: preg_match() [function.preg-match]: Unknown modifier 'p' in /home/gregslis/public_html/modules/feedburner/feedburner.module on line 246.

warning: preg_match() [function.preg-match]: Unknown modifier 'p' in /home/gregslis/public_html/modules/feedburner/feedburner.module on line 543.

When attempting to reverse my attempt, the error persists.

Any ideas?

kirvett’s picture

I'm using reikiman's D6 port from http://drupal.org/node/203733, so what I'm running is significantly different. Still, I get the same error and I think it's happening with the same function call in both versions. Try the fix I did to see if it works for you. Go to the _feedburner_redirect() function (line 305 in CVS) in feedburner.module and replace this:

$useragents = '/'. _feedburner_var('useragents') .'/i';
  if (!preg_match($useragents, $_SERVER['HTTP_USER_AGENT'])) {

with this:

$useragents = _feedburner_var('useragents');
  if(stripos($useragents, $_SERVER['HTTP_USER_AGENT']) === false) {

Make sure to update everybody here on whether it works or not.

nickbits’s picture

Hi,

Exactly the same here, I only get the problem when turning FeedFlare on. However, I do not get any issues when I turn it off again.

Nick

dave reid’s picture

Assigned: Unassigned » dave reid
Status: Active » Postponed (maintainer needs more info)

Just curious, what do you guys have saved in your FeedBurner advanced settings for the "Allowed Useragents"?

dave reid’s picture

Version: 5.x-0.5 » 6.x-1.x-dev
Status: Postponed (maintainer needs more info) » Fixed

This issue should be solved in the new 6.x-1.0-alpha version. Please give it a try and let me know! It might take me a bit to get the whole module synced back to the Drupal 5 version, so I'm sorry if you don't have a Drupal 6 install to test it on.

nickbits’s picture

Thanks.

That appears to work.

Thanks.
Nick

Anonymous’s picture

Status: Fixed » Closed (fixed)

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