warning: array_chunk() expects parameter 1 to be array, null given in /home/mysite/mysite.com/sites/all/modules/node_gallery/node_gallery.pages.inc on line 158.

is given when trying to upload images using plupload. Works fine with admin, any ideas?

Comments

bjsomers’s picture

Status: Active » Fixed

Changing to fixed. Didn't have the pfupload permission settings enabled for other roles.

scroogie’s picture

Status: Fixed » Active

It's still a bug, there should be no error message if a permission is not given, thanks for reporting. When exactly did the error message appear? The location is inside the manage images form, so I'm wondering.

justintime’s picture

Title: Error when anyone but admin uploads images » When plupload fails, manage images tab throws an error
Status: Active » Fixed

Found and fixed in dev. Changing title to reflect actual bug.

justintime’s picture

I also just committed code that will display an error, and won't display the plupload widget if 'bulk upload files with plupload' permissions aren't available to the user.

bjsomers’s picture

That's great Justin, thanks for the quick response. I'm a total newbie, how do I get the updated code to install? The dev version looks like it was last updated on Dec. 3rd.

justintime’s picture

Easiest thing is to just wait for alpha2 to be released and install that. If it were a critical fix, you could wait for the build bot to rebuild the 3.x-dev release, or follow the CVS instructions at http://drupal.org/node/330271/cvs-instructions/DRUPAL-6--3.

But, since you've got the permissions set right now, I'd just wait for the next official release and install that.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.