Since I did not well submit the first time my bug report, here is the correct one.

This should be the issue to use to collaborate on theses versions : Drupal 4.6.x, Gallery 2.1, gallery.module 4.6

Here is what I get.

Fatal error: Call to a member function on a non-object in [path to the module]/modules/gallery.module on line 319

The gallery in standalone works pretty well actually.

Here is a patch that could mabe work, but does not work for the moment. If someone would like to play with it, please check it out.

Comments

fazizi’s picture

What member function was trying to be called? I bet it's the isError method.

Take a look at my comment:

http://drupal.org/node/45159#comment-79711

Fi

alexandreracine’s picture

Mmmm, no line 319 is the second line here

  $ret = GalleryEmbed::init($params);
  if ($ret->getErrorCode() & ERROR_MISSING_OBJECT) {
    // Our user mapping is missing.  Make a mapping, or create a new user.
alexandreracine’s picture

But more important, with the gallery.module version 3 that you can download here : http://drupal.org/node/45159#comment-80514

Here is what I have when I go in the admin area of the gallery.module setting in admin/settings/gallery

"gallery
Array"

And then two buttons.
There is no fields to put data in.

patchak’s picture

Gallery 2.1 and drupal 4.6 will not work together?

Is there workaround or I have to move my drupal site to 4.7???

alexandreracine’s picture

Priority: Critical » Normal

Patchak - Short answer : no.

Inform8n’s picture

>> Patchak - Short answer : no.

To which of his questions? I really don't want to move to Drupal 4.7 yet and potentially break more modules I have installed. =/

alexandreracine’s picture

Inform8n:

Drupal 4.7 is not stable yet, this can give you some hints :) Will it break some stuff? Yep.

Currently : Gallery 2.1 is out, but gallery.module does not work with G2.1 and Drupal 4.6.x.

You can download Drupal 4.7 cvs, gallery.module cvs and G2.1 and make them work, but expect some bugs or bumps along the road.

There is an old saying : If it is not broken, don't fix it.

wilh’s picture

So is there an effort going on to address 2.1 and 4.6, or do we just have to wait for 4.7 to become stable?

Michelle’s picture

I don't think anyone is working on 2.1/4.6 unless I missed a post.

Michelle

centipod’s picture

Could someone please just tell the Gallery folks to not say on their website that 4.6 can embed Gallery2? Unless its true?

kiz_0987’s picture

But it is true. People have been using Drupal 4.6 with Gallery 2.0 for months now (since Gallery2 first came out). The issue is that there is no supported version of gallery.module for Drupal 4.6 and Gallery 2.1. The supported choices are:
Drupal 4.6 and Gallery 2.0
Drupal 4.7 and Gallery 2.1

bharat’s picture

I've submitted a patch to DRUPAL-4-6 that makes it work with Gallery 2.1. This is the code that we use on the Gallery website. Works fine.

http://drupal.org/node/45159#comment-90780

kiz_0987’s picture

Status: Active » Fixed

Bharat's patch has been committed into the CVS for version 4.6. There is now gallery.module (G2.0) and gallery.module.G2.1 (G2.1). When using Gallery2.1 you have to remove/rename gallery.module and rename gallery.module.G2.1 to gallery.module, as explained in INSTALL.txt.

Thanks Bharat.

Anonymous’s picture

Status: Fixed » Closed (fixed)