Form error for non-admin users

cboshuizen - July 14, 2007 - 02:56
Project:Mailman Manager
Version:4.7.x-1.x-dev
Component:Code
Category:support request
Priority:normal
Assigned:Shiny
Status:active
Description

None of my users can see the subscription form, getting this error:

warning: array_merge_recursive() [function.array-merge-recursive]: Argument #1 is not an array in /web/vhosts/spacegeneration.org/www/modules/user.module on line 2142.
warning: uasort() [function.uasort]: The argument should be an array in /web/vhosts/spacegeneration.org/www/modules/user.module on line 2145.

I can view all the forms fine as admin user, both for myself and any other user.

I don't really understand enough about Drupal to work out what is wrong here. Does anyone have any ideas?

Thanks,
Chris

#1

Shiny - July 14, 2007 - 11:09

Are you using the 4.7 version of this module? (with drupal 4.7).

If so, i'll set up a 4.7 version and attempt to replicate this.

#2

cboshuizen - July 14, 2007 - 23:58

Yes, it is 4.7 version. If you could do that, that'd be great. Thanks for the quick response.

Chris

#3

Shiny - July 15, 2007 - 06:14

i haven't been able to replicate
what verion of php? which OS?

can you also try the CVS version (branch = DRUPAL-4.7)
I spent some time on it today

#4

cboshuizen - July 15, 2007 - 16:18

I'm not sure what you mean by the 4.7 branch of CVS. On http://drupal.org/node/90465/release I can only find mailman_manager 4.7.x-1.x-dev, which I am using. Can you send me the link for the CVS version you mentioned, if it is different to this?

My site is 4.7.6 on Ubuntu with PHP 5.2.3. Interestingly, I don't see the problem on my test server under Windows with PHP 4.

Chris

#5

Shiny - July 15, 2007 - 20:39
Assigned to:Anonymous» Shiny

same OS + php as me (ubuntu feisty)

Attached is a tar ball of the the cvs branch DRUPAL-4.7

AttachmentSize
mailman_manager_cvs_drupal4.7.tar_.gz 5.43 KB

#6

cboshuizen - July 15, 2007 - 21:53

I found the problem. The access control setting wasn't ticked for my authenticated user, and the module wasn't handling that gracefully. The release version produced the above errors and generated useless submit buttons, and the one you gave me had no errors but still generated submit buttons on an otherwise empty content section. I guess it should show access denied instead.

I also noticed that both the CVS head version and the one you sent me lost their 'mailing list' sub tab under the edit tab. It's not there for my admin or regular users. Is that related to being a derivative of the v5 module?

Sorry for the beginner's mistake, and thanks for your help,
Chris

#7

ajzz - July 28, 2007 - 07:10

FYI: the missing "mailing lists" sub-tab noted above for Drupal 4.7.x has been posted as a separate support request at http://drupal.org/node/160904.

 
 

Drupal is a registered trademark of Dries Buytaert.