I tried banning one of my own IPs, uppon access, I see this error coming up:

Fatal error: Call to undefined function: l() in /home/.doublestuff/luperry/luperry.com/modules/troll/troll.module on line 61

Comments

deekayen’s picture

That's a weird bug since l() is a core function of Drupal. Please walk me through reproducing it in more detail.

luperry’s picture

I'm using drupal 4.7. I simply downloaded the 4.7 version of the module, and enabled it, it was done as it said on INSTALL.txt. To test out whether it's working, I banned the IP of a remote server I hace access to. I logged in by ssh to that account, and tried to access my site by lynx, then I saw the error.

worldcoast’s picture

I removed this from the troll.module file and the error goes away

watchdog('troll', 'IP Ban: '. $_SERVER['REMOTE_ADDR'], l(t('administer'), 'admin/troll/ip_ban/'), WATCHDOG_NOTICE);

This is the line of code that is failing, I get the same error.

worldcoast’s picture

sorry, that's on line 61

deekayen’s picture

Status: Active » Fixed

removed l() in DRUPAL-4-6, DRUPAL-4-7, and DRUPAL-5. There were too many parameters being sent to watchdog anyway...

Anonymous’s picture

Status: Fixed » Closed (fixed)