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
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
Yes, it is 4.7 version. If you could do that, that'd be great. Thanks for the quick response.
Chris
#3
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
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
same OS + php as me (ubuntu feisty)
Attached is a tar ball of the the cvs branch DRUPAL-4.7
#6
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
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.