Hi there,
when I select the "mailing lists" item in the admin menu I get a warning like this:

warning: Missing argument 2 for drupal_get_form(), called in
/var/www/web718/html/modules/ezmlm.module on line 108 and defined in
/var/www/web718/html/includes/form.inc on line 61.

As far as I know the function drupal_get_form() only expects one argument so why do I get this error?Any suggestions?

Maybe the following information helps to find the error:

Warning: Duplicate entry '0' for key 1 query: INSERT INTO esnsatellite_watchdog (uid, type, message, severity, link, location, referer, hostname, timestamp) VALUES (1, 'php', 'Missing argument 2 for drupal_get_form(), called in /var/www/web718/html/modules/ezmlm.module on line 108 and defined in /var/www/web718/html/includes/form.inc on line 61.', 2, '', 'http://www.esn-germany.org/?q=ezmlm', 'http://www.esn-germany.org/', '84.60.29.11', 1212001732) in /var/www/web718/html/includes/database.mysql.inc on line 121

Thanks for your time :)
Keith

Comments

hutch’s picture

I don't really understand this error either, but let's check a few things
Which version of drupal are you using?

The error came from version 5.x-1.x-dev of ezmlm, line 108 has

$output = drupal_get_form('_ezmlm_subscribe_form');

I went to your website and clicked on the 'mailinglists' link and I got the same error.
do you have any lists configured yet?

Keith321’s picture

Yes, I use Drupal 5.x.
When I select the "mailing lists" item the admin menu then there is no way to define a mailing list at the moment.
Is this okay ?

hutch’s picture

I have 'Friendly URLs' set on all my drupal sites, so I'm not sure how yours will be but I guess

http://www.esn-germany.org/?q=admin/settings/ezmlm

should get you to the admin

http://www.esn-germany.org/?q=ezmlm is the users page, not admin

hutch’s picture

I think there is a problem with your watchdog table ;-(

esnsatellite_watchdog might be corrupt, if you have phpmyadmin you should be able to rebuild it or at least empty it

I tried to access the admin/settings/ezmlm and was refused entry as I would expect but the following error occurred:

Warning: Duplicate entry '0' for key 1 query: INSERT INTO esnsatellite_watchdog (uid, type, message, severity, link, location, referer, hostname, timestamp) VALUES (0, 'php', 'Duplicate entry '0' for key 1\nquery: INSERT INTO esnsatellite_watchdog (uid, type, message, severity, link, location, referer, hostname, timestamp) VALUES (0, 'access denied', '<em>admin/settings/ezmlm</em> denied access.', 1, '<a href=\\"/?q=admin/settings/ezmlm\\" class=\\"active\\">view</a>', 'http://www.esn-germany.org/?q=admin/settings/ezmlm', '', '89.145.198.59', 1212060138) in /var/www/web718/html/includes/database.mysql.inc on line 121.', 2, '', 'http://www.esn-germany.org/?q=admin/settings/ezmlm', '', '89.145.198.59', 1212060138) in /var/www/web718/html/includes/database.mysql.inc on line 121

It never got as far as ezmlm

Hope this helps

Keith321’s picture

First of all: tanks for your help.
I'll try to fix it in the next day. Otherwise you will hear from me :)

hutch’s picture

Assigned: Unassigned » hutch
Status: Active » Closed (fixed)