Closed (fixed)
Project:
Mailman Manager
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
23 Apr 2008 at 01:29 UTC
Updated:
3 Nov 2008 at 13:11 UTC
Jump to comment: Most recent file
Comments
Comment #1
Shiny commentedDo you have access to the mailman? does it record any commands being recieved?
Can you drupal installation send email?
Comment #2
janv@www.drupalsites.net commentedThe 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.
Comment #3
arturoramos commentedAre 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?
Comment #4
janv@www.drupalsites.net commentedI'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.
Comment #5
samuelet commentedAre 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.
Comment #6
janv@www.drupalsites.net commentedWhen I first posted about this issue, the bug wasn't solved yet in the latest development snapshot. But apparantly now it is. Thanks.
Comment #7
samuelet commentedComment #8
Babalu commentedpatching 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.
Comment #9
samuelet commentedDid 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).
Comment #10
Babalu commentedyes, but i'm using the newest d6 dev version (2008-Apr-16)
Comment #11
samuelet commentedThen 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?
Comment #12
Babalu commentedyes the list is added after the errors
Comment #13
samuelet commentedUhm,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?
Comment #14
Babalu commentedi make some screenshots
Comment #15
Babalu commentedpic1: 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
Comment #16
samuelet commentedpic6: 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?
Comment #17
Babalu commentedpic3 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
Comment #18
samuelet commentedDoes the attached patch solves pic6 error?
Comment #19
Babalu commentedhmm no. problem still there (pic6)
Comment #20
samuelet commentedSorry, i meant pic2, not pic6.
Comment #21
samuelet commentedAnd about pic6, i suppose that the error message concerns the "Subdomain" module.
Can you disable it and test if i'm right?
Comment #22
samuelet commentedFrom 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.
Comment #23
Babalu commented#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:
Comment #24
samuelet commentedTry this one
Comment #25
Babalu commented#24 patch works
GREAT!!
Comment #26
Babalu commentedComment #27
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.