Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
Got this error with php 5.3: Unknown error: Function eregi_replace() is deprecated in smileys_filter_process() (line 283 of /var/www/mysite.com/site/sites/all/modules/smileys/smileys.module).
Any fix?
Thanks
Comment | File | Size | Author |
---|---|---|---|
#4 | smileys-1336612-4.patch | 1.97 KB | mr.j |
Comments
Comment #1
superfedya CreditAttribution: superfedya commentedI think this 2 line must be adapted to php 5.3.
$chunk = eregi_replace("([ ,\.\?!:\(\)\r\n\<\>])". preg_quote($a) ."([ ,\.\?!:\(\)\r\n\<\>])", "\\1<img src=\"". check_url($GLOBALS['base_url'] .'/'. $smiley->image) ."\" title=\"". check_plain($alt) ."\" alt=\"". check_plain($alt) ."\" class=\"smiley-content\"/>\\2", $chunk);
$chunk = eregi_replace(preg_quote($a), '<img src="'. check_url($GLOBALS['base_url'] .'/'. $smiley->image) .'" title="'. check_plain($alt) .'" alt="'. check_plain($alt) .'" />', $chunk);
Comment #2
superfedya CreditAttribution: superfedya commentedAny news? This problem makes watchdog useless :(
Comment #3
mr.j CreditAttribution: mr.j commentedDisregard this one it was patched against an intermediate fix. See next comment
Comment #4
mr.j CreditAttribution: mr.j commentedThis patch works for me.