I recently upgraded from D4.7 to 5.1. I've installed (and updated) the TROLL module, but now blocked IP's are seeing this error:
Fatal error: Call to undefined function: l() in /../sites/all/modules/troll/troll.module on line 72

If i disable the Drupal cache, it seems to work fine.

???

Comments

MrGeek’s picture

after reading thru the older requests i found that by removing this line:
watchdog('troll', 'IP Ban: '. $_SERVER['REMOTE_ADDR'], l(t('administer'), 'admin/settings/troll/ip_ban/'), WATCHDOG_NOTICE);

the error goes away - but now i get no watchdog notices.. I also read that this was fixed a long time ago - so i'm confused why it's happening?

jaydub’s picture

Are you using 'normal' cache mode or 'aggressive'?

MrGeek’s picture

"normal"

MrGeek’s picture

is this a PHP5 thing?

jaydub’s picture

Ok this was a problem with the code in HEAD not picking up a change that
was made in the DRUPAL-5 branch. I've reverted the code to remove the
call to the Drupal l() function.

See #64856: banned user sees "Fatal error:..." instead of "Access Denied" for details

deekayen’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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