Fatal error: Call to undefined function: l()

MrGeek - September 13, 2008 - 21:30
Project:Troll
Version:5.x-1.3
Component:Miscellaneous
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

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.

???

#1

MrGeek - September 14, 2008 - 23:26

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?

#2

jaydub - September 17, 2008 - 12:45

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

#3

MrGeek - September 18, 2008 - 06:23

"normal"

#4

MrGeek - September 20, 2008 - 18:00

is this a PHP5 thing?

#5

jaydub - September 21, 2008 - 12:12

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

 
 

Drupal is a registered trademark of Dries Buytaert.