I installed drupal 4.6.0 (from scratch, no upgrade) and gallery2 beta2, both running OK.

I can activate "Gallery Navigation" block, but it is not show on screen.
When I activate "Gallery Image Block" my entire drupal system is frozen. The only thing I can do is desactivate it and click on "save blocks". This give back my system to life.

Comments

walkah’s picture

if by "drupal is frozen" you mean that when you click on things nothing is happening - there's a good chance PHP is running out of memory for you. G2 recommends 16MB of RAM - and when embedded in drupal you'll need it.

try increasing your memory_limit setting in php.ini - does that help?

jmalone’s picture

I also am having the same problem. I installed 4.6.0 from scratch. I installed the gallery module (also 4.6.0). Everything went ok there. When I enable the gallery navigation block it doesnt show up on the page. If I enable the image block I get the error:

warning: implode(): Bad arguments. in /var/www/www.maloneworld.com/drupal-4.6.0/modules/gallery/gallery.module on line 141.
warning: implode(): Bad arguments. in /var/www/www.maloneworld.com/drupal-4.6.0/modules/gallery/gallery.module on line 142.

And then my site is screwed (cant log in as admin. errors on the main page. etc...) The only thing I have been able to do to fix it is restore the database.

PHP is set to use 64M of memory so I dont think that is the problem.

calumet’s picture

I raised the PHP memory limit to 16 MB, and now drupal doesn's froze when enabling the gallery blocks. Thanks.
But I'm having the same problem as jmalone: Navigation block doesn't appear anyware and Gallery Image Block give me the error:

warning: implode(): Bad arguments. in /var/www/www.maloneworld.com/drupal-4.6.0/modules/gallery/gallery.module on line 141.
warning: implode(): Bad arguments. in /var/www/www.maloneworld.com/drupal-4.6.0/modules/gallery/gallery.module on line 142.

I can access gallery images through the Gallery Image Block. If I login and then select one image from the image block, then a block appears showing:

gallery

* view slideshow

If I login with administrative rights, then the block that appears is as follows:

gallery

* add comment
* create link
* delete photo
* edit permissions
* edit photo
* make highlight
* move photo
* view comment
* view slideshow
* Site Admin

At first, i thought that this was the navigation block, but I can't use this block to navigate my albums!

lvadillo’s picture

I was getting the error in line 142 too (I'm using 4.5.2).

After selecting something in admin/options/gallery Show, the module stopped giving the error.

Seems that "Show" cannot be empty!

walkah’s picture

fixed in CVS, thanks :)

Anonymous’s picture

addylo’s picture

Title: Gallery blocks doesn't show up » It's back...

Still getting this error.

warning: implode() [function.implode]: Bad arguments. in /export/var/www/nealaddy/htdocs/modules/gallery.module on line 190.

This is a fresh, new install of drupal, G2, etc. Versions in use are as follows:

drupal-4.6.3
gallery-2.0.1
gallery-4.6.0 (gallery.module)
g2-module-imageblock-0.9.7
php-5.0.5-r4
mysql-5.0.15
apache-2.0.55
Gentoo Linux

I've followed all the instructions (I could find) for Drupal and Gallery. Both are working great. G2 works in both the random image and integrated page modules.

So, if this was fixed in April why is it still here?

drupalicious’s picture

I've got the same problem...

warning: implode(): Bad arguments. in /home/luxvis/public_html/modules/gallery/gallery.module on line 190.

Line 190 is:
$params['show'] = implode('|', variable_get('gallery_block_show_' . $delta, array()));

Any suggestions?

drupalicious’s picture

Title: It's back... » Quick fix for Gallery module issues...

I tried deleting line 190 but it defaulted to show all info - so instead I disabled the gallery.module altogether and added a new block named 'gallery' - enable PHP and insert:

@readfile('http://www.yoursite.com/gallery/main.php?g2_view=imageblock.External&g2_blocks=randomImage&g2_show=none');

Make sure to change 'yoursite.com/gallery' to your install. More variables for this are under the imageblock admin in Gallery...

agilpwc’s picture

According to the Gallery docs, the show variable has an option of 'none'. So a simple fix to the implode error is to add 'none' as an option and select it.

In the version I have gallery.module,v 1.4.2.4 2005/12/02 20:39:56 the function is gallery_block line 175 add in a 'none' option after 'fullsize'.

Sorry I'm don't know how to generate a patch file. But it is simple enough.