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

scoutbaker’s picture

Priority: Critical » Normal

I 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).

scoutbaker’s picture

nancydru’s picture

Status: Active » Closed (duplicate)

Sounds to me like a duplicate. Since the module behaves correctly without CCK, then this is not a Sitenotes issue.