If I enable, "smart tagging" the content in most of my nodes disappears and I get the following error:
preg_replace(): Unknown modifier 'I' in /home/donorge/public_html/giveorange/modules/delicious/delicious.module on line 846.
appears to be this line that is causing problems:
$text = preg_replace('/(?<=>)([^<]+)?(\b'.$tag.'\b)/i','$1$2'.$deliciousLink,$text);
Comments
Comment #1
merlinofchaos commentedWhat version of PHP are you running?
Comment #2
jasonwhat commented4.4.1
Comment #3
jasonwhat commentedAny update on this? I'd really like to give this module a try.
Comment #4
merlinofchaos commentedDoes it work if you replace the
.$tag.portion with.preg_quote($tag).?Comment #5
jasonwhat commentedI changed two instances of that and no change. However, I'm not sure if I replaced the code properly. Could you be more specific about where the changes would need to be made?
Comment #6
merlinofchaos commentedSpecifically I mean:
Comment #7
jasonwhat commentedWhen I do that I get this error:
Warning: preg_replace(): Unknown modifier 'I' in /home/mysite/public_html/modules/delicious/delicious.module on line 846Comment #8
benthere commentedI got a similar error. Only difference was the unknown modifier was "1". I'm building a site related to 9/11, so my first assumption was that content is not escaped or filtered properly in either the title or category fields, so "9/11" looks like a "/1" modifier. I haven't looked at the code, just an idea.
Comment #9
merlinofchaos commentedThat seems reasonable, though the preq_quote fix from above should take care of that. I'm not entirely sure why it doesn't.
I admit this one's sat around for awhile because I played with it and could not figure out what was wrong. :/
Comment #10
Anonymous (not verified) commentedNo longer supporting 4.X