Can't activate

chrissearle - May 24, 2008 - 08:49
Project:User mailman register
Version:5.x-1.3
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:by design
Description

On the admin/settings/user_mailman_register page I see my list. Click the activate link and it goes to

admin/settings/user_mailman_register/edit/1

Add URL and admin password

Save

Status is still set to Deactivated.

I can access the admin URL using the password given from the lynx browser on the drupal server (same server in fact).

#1

samuelet - May 24, 2008 - 09:57

A list is not activated if password validation mismatches,url is not a valid url (in both cases error is showed in the page) or there is a sql error.
Any error is logged in admin/logs/watchdog?
What version of mailman manger is installed?

#2

chrissearle - May 24, 2008 - 10:54

admin/logs/watchdog - only log entry for user mailman reg type is a "<my list name> settings updated"

I ssh'd to the drupal server - and then copied the URL from the settings page

lynx <url copied from drupal settings>

Then I copied the password from the drupal page - and I was logged in as the list admin.

Mailman Manager 5.x-1.1
User Mailman Register 5.x-1.3

If I try to activate while watching the apache logs for the mailman server - I see no new entries in access or error logs, ery odd.

Not sure I understand how this bit works tho - I was looking thru user_mailman_register_adminedit_form_submit() and I can see it constructing a db query to update the mailman_lists data. Then it calls this SQL and says settings updated. And - the settings I set ARE updated. Can't see anything in this function about activation though - (was going to add some debug). I can't see where the activation is actually being checked - the only ref's I'm seeing to the URL are in user subscription update and in the valid_url check - however - that would raise a watchdog error if it failed which is not present.

#3

samuelet - May 24, 2008 - 12:56

Activate output is done by (line 353):

<?php
if (!_user_mailman_register_list_allowed($list)) $cmd = 'Activate';
?>

_user_mailman_register_list_allowed checks for mailman url and password, and for "can subscribe to " access control.
As administrator that permission should be always true, but just to be sure, try to add it to authenticated users too.

#4

chrissearle - May 24, 2008 - 13:17
Status:active» closed

Aha - I _knew_ I must have missed a step :)

I have an admin role which several admin users have - rather than being logged in as the initial user. I had checked off all of mailman_manager and user_mailman_register - but I hadn't realised that each new list gave a new permission to be checked off :)

Your last comment gave me the hint to go check ;)

#5

samuelet - July 16, 2008 - 13:44
Status:closed» by design
 
 

Drupal is a registered trademark of Dries Buytaert.