Active
Project:
dot_disclaimer
Version:
5.x-1.4
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
7 Jul 2007 at 22:21 UTC
Updated:
11 Dec 2008 at 10:40 UTC
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
Comment #1
dundun commentedJust deleted $category in line 196 and no more errors.
Comment #2
regx commentedThis 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.
Comment #3
regx commentedI 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.
Comment #4
regx commentedsee: 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.
Comment #5
rinnert commentedwhen 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
Comment #6
regx commentedI 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.
Comment #7
regx commentedI Just installed CCK, but can't duplicate the error.
Does this only happen when creating a CCK node?
Comment #8
whiskeytango commentedI 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.
Comment #9
regx commentedDo 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.
Comment #10
scoutbaker commentedJust 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.
Comment #11
regx commentedThese 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.
Comment #12
scoutbaker commented@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.
Comment #13
regx commentedThanks for the feed back, I will make a new official release.
Comment #14
VSZ commentedI 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