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

dundun - July 7, 2007 - 22:42

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

#2

regx - July 11, 2007 - 22:35

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

regx - July 11, 2007 - 22:40

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

regx - August 31, 2007 - 05:54
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.

#5

rinnert - September 2, 2007 - 13:08
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

#6

regx - September 4, 2007 - 05:29

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

regx - September 6, 2007 - 21:39

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

#8

whiskeytango - September 15, 2007 - 16:40

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

regx - September 25, 2007 - 08:36

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

ScoutBaker - October 6, 2008 - 07:40
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.

#11

regx - October 7, 2008 - 01:28

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

ScoutBaker - October 7, 2008 - 03:08

@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

regx - October 12, 2008 - 09:58

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

#14

VSZ - December 11, 2008 - 10:40
Category:support request» bug report

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

 
 

Drupal is a registered trademark of Dries Buytaert.