dear all,

a list has been linked with a group using mailman_groups. while subscribing a user to a list I receive the following error:

recoverable fatal error: Object of class stdClass could not be converted to string in /var/www/drupal6/sites/all/modules/mailman_manager/mailman_manager.module on line 553.

if I can assist in debugging this information, please let me know how.

best wishes

sebastian

Comments

samuelet’s picture

Are you sure it's not a mailman_groups bug? Does the bug persist if you disable it?
Did it stopped to work after installing last mailman_manager 6.x release?
How exactly was the user subscribed? I mean as user itself or as admin,from User->Mailman profile tab or from user administration list?

schoeller’s picture

hello samuelet,

>Are you sure it's not a mailman_groups bug?
I don't really know, but I presume its from mailman_manager, since I receive the error in

recoverable fatal error: Object of class stdClass could not be converted to string in /var/www/drupal/sites/all/modules/mailman_manager/mailman_manager.module on line 553.

>Does the bug persist if you disable it?
If I disable mailman_groups I cannot subscribe.

>Did it stopped to work after installing last mailman_manager 6.x release?
I have not tried a previous version. Where can I download one? My current one has the datestamp
datestamp = "1225454926"

>How exactly was the user subscribed? I mean as user itself or as admin,from User->Mailman profile tab or from user administration list?
The user was subscribed as a test user in the default group "authenticated user" from the groups page.
If I enable the right "access mailman_manager" to the "authenticated user" I get the same error.
If I subscribe the user from "user/3/mailman_manager" I get no error, which leads to the fact that indeed it might be an error from mailman_groups. Also subscribe log of mailman tells me "test: pending foo@bar.com".

I will have to stop here, since I need to go, but will continue to look into this issue. I keep you posted.

Thanks for your questions.

Sebastian

samuelet’s picture

In these days there were some changes in the module, and i could suppose that they affects the integration with mailman_groups:
http://drupal.org/cvs?commit=150186
http://drupal.org/cvs?commit=150016

If you can test this by revert the two patches, let me know.

Andy Inman’s picture

Mailman groups is still not posted here (I am very busy at the moment, absolutely no spare time) but you can find it on www.netgenius.co.uk (though the server is up and down on a daily basis lately, some serious issues with my hosting provider.)

As discussed in previous communication - a better defined interface between the two would make a lot more sense, just haven't had time to take it further.

schoeller’s picture

Hi all,

the issue I posted is due to a a request from mailman_groups.module. The error originates due to a function call in

function _mailman_manager_subscribe($uid, $lid, $mail, $digest, $password)

which is called from mailman_groups.module on line 328 using

_mailman_manager_subscribe($user, $lid, $user->mail, 'nodigest', '');

When this is altered to

_mailman_manager_subscribe($user->uid, $lid, $user->mail, 'nodigest', '');

I receive a different error that email could not be sent, but mailman_manager is triggered correctly for subscription and mailman registration is queued correctly. The error message sent is then

Unable to send e-mail. Please contact the site admin, if the problem persists.

While doing a grep for this string in the Drupal installation I receive a response in include/mail.inc I do not know yet how this error is related, but at least the mechanism is triggered correctly. Maybe I still need to study the code more in detail. Also there is no mechanism for being unsubscribed from mailman after leaving the group, at least it does not work for me.

Best wishes

Sebastian

Andy Inman’s picture

Not a solution, simply FYI, the "User Mailman Manager" module is supported by Mailman Groups, and possibly will provide a soltuin. Mailman Groups communicates with Mailman via email, but UMR uses the Mailman web interface.

schoeller’s picture

Status: Active » Closed (fixed)

Using user mailman manager everything works. Thanks for all the help.

Best wishes

Sebastian