I'm using the "enhanced gallery module" and I don't know if that is the problem or if the problem exists in the original. I don't have time to do more thorough testing right now but I wanted to get this on record before I forget about it.

Anyway, I'm cleaning up my users and when I went to delete a user I got this error:

warning: Missing argument 2 for gallery_error() in /home/xxxxx/public_html/drupalhomedir/modules/gallery/gallery.module on line 503.

I really need to not get distracted by debugging now so I'm just going to temporarily disable the module. If no one else looks into this, I'll get back to it soon as I'm able.

Michelle

Comments

kiz_0987’s picture

Michelle,

One or two other people have reported this in the original module and that part of the code has not been changed in this enhanced version (although it has been changed in the new Beta version). I tried to find the old posts but couldn't.

The error that you are seeing is an error that Drupal throws up while its trying to display a gallery error -- so the real gallery error is hidden. The Drupal/PHP error is I think due to the gallery_error_mode variable not being in the database (surprizing if you have configured it), so it defaults to array(). I have changed this to array(1).

So, try changing line 504 from:
$error_mode = variable_get('gallery_error_mode', array());

to:
$error_mode = variable_get('gallery_error_mode', array(1));
Please let me know if it works.

michelle’s picture

Status: Active » Fixed

Sorry, I missed this response in the flood of email from this project. I ended up just disabling the module while I did the deletes. If this is fixed in your beta version, then I'll mark it fixed. Hopefully walkah will start incorporating your changes soon. Otherwise maybe you should just start a project for your module?

Thanks,

Michelle

Anonymous’s picture

Status: Fixed » Closed (fixed)