I have followed the tutorial to make a shared image gallery. Everything seems to work fine, except that a warning message appear after an authenticated user press save after uploading a picture. The picture is stored as it should and it looks just fine. The warning message is: "warning: Invalid argument supplied for foreach() in ../includes/form.inc on line 1428." where ../ is my drupal root. Any idea what this could mean? I don't get the warning if I upload as superadministrator.

Comments

kmonty’s picture

Status: Active » Postponed (maintainer needs more info)

Can you take a screenshot of the form you are trying to submit? Do images exist in the gallery already? Is it a new gallery?

Toxid’s picture

This is the form: http://i50.tinypic.com/71it1d.jpg
The description field is a cck text.

This is the error: http://i45.tinypic.com/dow5nb.jpg
As you can see the image I uploaded through the form appears on the lower line to the right.

I also wonder why authenticated user can't chose gallery through the dropdown. It's empty

dbeall’s picture

If your not using image descriptions, you can use content_access for this type of gallery which will allow uploads, but not editing. Content_access will also allow choosing the gallery, if it is set that way.

The shared gallery setup was to allow image editing, image additions and image descriptions, but not allow changing the gallery title or gallery description by authenticated users.

dddave’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

Smells like dead...