PHP error in users' logout
dundun - July 7, 2007 - 22:21
| Project: | dot_disclaimer |
| Version: | 5.x-1.4 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
I've just installed this module in my Drupal 5.1 site, but I've noticed that everytime a user logs off I've got the following PHP error:
Missing argument 4 for dot_disclaimer_user() in /home/.../modules/dot_disclaimer/dot_disclaimer.module on line 196.
Any idea?
Thanks in advance,

#1
Just deleted $category in line 196 and no more errors.
#2
This should be fixed in the latest release.
another option is to set categories = '' so that it defaults to nothing if it isn't passed along.
This is probably a better option since the docs still say that it is passed in, otherwise if it was you would get a similar error.
#3
I just checked and currently this is fixed in the dev release only.
Since that is hidden somewhat from people downloading modules I will wait until I post a new revision before closing this issue.
#4
see: http://drupal.org/node/171967 for patch - patch is against 5.x-1.3 release.
Setting this to fixed since there is now another thread.
#5
when I use the 1.3 version I receive the error
Missing argument 4 for dot_disclaimer_user() in modules\dot_disclaimer\dot_disclaimer.module on line 196.
in my account
when I use the dev version this is fixed but than I receive this error
* warning: Invalid argument supplied for foreach() in modules\cck\fieldgroup.module on line 394.
* warning: Invalid argument supplied for foreach() in modules\cck\fieldgroup.module on line 394.
* warning: Invalid argument supplied for foreach() in modules\cck\fieldgroup.module on line 394.
at the user registration page
#6
I wont be able to get to this for a couple of days. It should be a simple fix.
I use cck a lot and have contributed to that project.
#7
I Just installed CCK, but can't duplicate the error.
Does this only happen when creating a CCK node?
#8
I get the same error whenever I login as a new user. It will also appear when, as a normal user I go to edit my user info page.
Hope this helps narrow it down.
#9
Do you also have CCK installed? I need more info so that I can replicate this error.
Please email me as much info as possible regarding the error. Any info helps. CCK exports etc.
This module works fine for me on 3 different sites. I want to get this fixed, but If I can not replicate the error then there isn't much I can do.
#10
Just some updates and clarification for the various parts of this issue.
Using Drupal 5.10 and dot_disclaimer 5.x-1.4.
Still has the error listed by the OP
a) On logout, shows the error 1 time
b) On profile edit, shows the error 2 times
Using the 5.x-1.x-dev resolves this issue.
@#5 - I was unable to reproduce this error.
#11
These issues should all be fixed in the dev release.
I haven't made a new official release because no one ever posted any feedback stating that the error was fixed.
#12
@regex: Thanks.
I'm glad to confirm that I no longer see the original issue during logout or editing a profile using the dev release. I never saw the CCK error, even without the dev release, so I can't confirm any change for that.
#13
Thanks for the feed back, I will make a new official release.
#14
I have the error
warning: Invalid argument supplied for foreach() in /home/lookmosc/public_html/sites/all/modules/cck/fieldgroup.module on line 394.
with dev version of the module