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,

Comments

dundun’s picture

Just deleted $category in line 196 and no more errors.

regx’s picture

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.

regx’s picture

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.

regx’s picture

Status: Active » Fixed

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.

rinnert’s picture

Status: Fixed » Active

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

regx’s picture

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.

regx’s picture

I Just installed CCK, but can't duplicate the error.
Does this only happen when creating a CCK node?

whiskeytango’s picture

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.

regx’s picture

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.

scoutbaker’s picture

Version: 5.x-1.2 » 5.x-1.4
Component: User interface » Code

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.

regx’s picture

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.

scoutbaker’s picture

@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.

regx’s picture

Thanks for the feed back, I will make a new official release.

VSZ’s picture

Category: support » bug

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