I am able to subscribe users to a mailinglist, but after the subscription, I still get this message: "Your current email address is not subscribed to 1 list(s)."

I know this is a development version, so I guess I should just wait for further development?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Shiny’s picture

Do you have access to the mailman? does it record any commands being recieved?
Can you drupal installation send email?

janv@www.drupalsites.net’s picture

The answer is three times yes. After subscribing a user in Drupal, the user receives a confirmation e-mail and after confirmation a new member appears in the Mailman membership list. So, essentially it works, but drupal doesn't seem to register the subscriptions.

Also, I get this warning every time I visit the mailing lists tab in a user account:

warning: preg_match() expects parameter 2 to be string, array given in /var/www/vhosts/tienstiens.org/httpdocs/netw_oieb/includes/bootstrap.inc on line 718.

And a 2nd one after subscribing:

warning: syslog() expects parameter 1 to be long, string given in /var/www/vhosts/tienstiens.org/httpdocs/netw_oieb/modules/syslog/syslog.module on line 81.

arturoramos’s picture

Are you getting these errors with multiple email addresses or only with one? If so, can you tell us what that email address is?

Also can you check the mailman_users table and let us know what data your table has with respect to the user whose account is experiencing the errors?

janv@www.drupalsites.net’s picture

I've been able to solve the problem by changing

if (count($result) == 0) {

to

if (!$result) {

in function _mailman_manager_get_subscriptions (though I still get the syslog warning). The problem was that no data were written to the mailman_users table when a user visits the mailman tab for the first time. This is because count($result) results in 1 when the result set is empty.

samuelet’s picture

Are you sure you are using the last devel snapshot?
I ask you this because i solved a bug that seems exactly this one since April:
http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/mailman_man...

Please, if the patch should be applied also in another place, attach a diff patch or at least report the line numbers.

janv@www.drupalsites.net’s picture

When I first posted about this issue, the bug wasn't solved yet in the latest development snapshot. But apparantly now it is. Thanks.

samuelet’s picture

Status: Active » Closed (fixed)
Babalu’s picture

Status: Closed (fixed) » Active

patching file mailman_manager.module
Hunk #1 FAILED at 1.
Hunk #2 FAILED at 461.

patch not working

and i have this errors:
when i want to add an new mailing list:
warning: preg_match() expects parameter 2 to be string, array given in /var/www/web3/html/includes/bootstrap.inc on line 723.
warning: preg_match() expects parameter 2 to be string, array given in /var/www/web3/html/includes/bootstrap.inc on line 723.
warning: preg_match() expects parameter 2 to be string, array given in /var/www/web3/html/includes/bootstrap.inc on line 723.
warning: preg_match() expects parameter 2 to be string, array given in /var/www/web3/html/includes/bootstrap.inc on line 723.
warning: preg_match() expects parameter 2 to be string, array given in /var/www/web3/html/includes/bootstrap.inc on line 723.

and after adding the new mailing list this error:
warning: syslog() expects parameter 1 to be long, string given in /var/www/web3/html/modules/syslog/syslog.module on line 79.

samuelet’s picture

Did you read http://drupal.org/node/250006#comment-905138 ?
Patch is already in the last 6.x devel release so you don't need to apply it, just delete your mailman manager directory and install the devel release.
Syslog error could remain until syslog table is cleared (manually or by cron rotation).

Babalu’s picture

yes, but i'm using the newest d6 dev version (2008-Apr-16)

samuelet’s picture

Then it's ok that patch does not apply, the problem is another and could not mailman manager related.
Is the list added after the error message?

Babalu’s picture

yes the list is added after the errors

samuelet’s picture

Status: Active » Postponed (maintainer needs more info)

Uhm,i can't reproduce this bug on drupal 6.4 and 6.5.
Please, try to provide more details concerning your problem or it'll be hard to understand it: Do error messages happen only when a new list is build? What's you database backend and drupal release? Do you confirm that the form in the mailman manager user tab does not display his subscription? Any another strange issue with this module?

Babalu’s picture

i make some screenshots

Babalu’s picture

FileSize
20.09 KB
16.5 KB
4.66 KB
25.7 KB
53.17 KB
20.67 KB

pic1: i go to the settings page of mailman manager (no errors)
pic2: i go to add new mailing list (first error)
pic3: i have added a new mailing list (error)
pic4: i go to the user's mailing lists settings
pic5: the user's mailing lists settings. change your subscription: i have tested both and
pic6: error when i have selected one subscription. equal which one. still the same error

I'm using Drupal 6.4, MySQL 5.0.32

samuelet’s picture

pic6: What modules are installed in your site? Php version?
pic3: String error should be solved on last devel release of yesterday, but the error message could persists until watchdog will be rotated or cleared. Please, could you test it and report if something changes?

Babalu’s picture

FileSize
4.69 KB

pic3 error is away, right
pic6 error is still there
i have many modules installed (attached file)
PHP Version: PHP Version 5.2.0-8+etch11

samuelet’s picture

FileSize
2.96 KB

Does the attached patch solves pic6 error?

Babalu’s picture

hmm no. problem still there (pic6)

samuelet’s picture

Sorry, i meant pic2, not pic6.

samuelet’s picture

And about pic6, i suppose that the error message concerns the "Subdomain" module.
Can you disable it and test if i'm right?

samuelet’s picture

FileSize
952 bytes

From further inspection i suppose that Subdomain hooks a username validation without consider that account preferences can be changed through a different tab from the general one.
I've attached a patch to apply to Subodomain 6.x just for testing. I don't know if it has some conseguence in its activity (i don't think so), but if it fixes the problem it could be posted in the Subdomain issue section for reviewing.

Babalu’s picture

#20 oh pic2, yes, problem is solved. great :)
and yes. after deactivating subdomain modul it works.
#22 patch don't works

patching file subdomain.module
patch unexpectedly ends in middle of line
patch: **** malformed patch at line 16:

samuelet’s picture

FileSize
927 bytes

Try this one

Babalu’s picture

#24 patch works

GREAT!!

Babalu’s picture

Status: Postponed (maintainer needs more info) » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)

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