Closed (duplicate)
Project:
Site Notes
Version:
5.x-1.5
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
9 Apr 2009 at 16:38 UTC
Updated:
20 Oct 2009 at 14:00 UTC
If a user other than user 1 tries to view site note I get the error:
warning: Invalid argument supplied for foreach()
in /is/htdocs/drupal5/sites/all/modules/cck/fieldgroup.module on line 394.This error is gone once the user was assigned the rights to view site notes.
I was able to duplicate this error on another site.
It might be more helpful to display a qualified error saying that the user doesn't have the rights to view this item instead.
Kind regards,
Frank
Comments
Comment #1
scoutbaker commentedI am unable to confirm this issue. Attempting to access the sitenotes as any user who does not have permissions gives an Access denied (as it should).
There are, however, ongoing, unresolved issues relating to field groups in CCK. If I remember correctly, when I saw it, if you use field groups anywhere, you'll start seeing that error in unexpected places. For me this occurred even when there was no activity related to the content type using the field group. If you go search around the issue queues you should be able to find some workarounds (i.e., code you can use to hack the modules as nothing has been released with a fix yet).
Comment #2
scoutbaker commentedhttp://drupal.org/node/168045#comment-594146
Comment #3
nancydruSounds to me like a duplicate. Since the module behaves correctly without CCK, then this is not a Sitenotes issue.