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.

CommentFileSizeAuthor
#10 G2EmbedTestUtilities.class15.1 KBkiz_0987
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

kiz_0987’s picture

What version of Drupal are you using? What version of gallery.module are you using?

You'll need Drupal 4.7 for the new cvs version of gallery.module.

mckyja’s picture

Version: » master

I just downloaded drupal (CVS) and gallery (CVS) and Gallery 2.1.

Gallery2.1 (CVS)
- install (drupal.mysite.com/gallery2/) - no problems
- Image Block module installed and activated in Gallery2 - ok
- Image Frame module installed and activated in Gallery2 - ok
- Configured Gallery2 - ok
- added 5 albums and 50 pics - no problems
Drupal 4.7 (CVS)
- installed at (drupal.mysite.com) - no problems
- configure drupal - ok

gallery.module
- upload module - ok
- activate module - ok
- configure module - generates following error: (* are server path info)
Fatal error: Call to a member function on a non-object in /*/*/*/*/*/modules/gallery/G2EmbedTestUtilities.class on line 188

my server environment -
- Apache/1.3.33 (Unix)
- PHP Version 5.1.2
- mysql 5.0.18

Any Ideas???

mckyja’s picture

So i futzed with the .class file and basically bypassed the phpMemoryCheck function @ line 188 called from the preInitTests function - config went fine, saved all info with Success

embedded gallery shows up but clicking on the albums listed always took me back to the main gallery page. Is this a gallery2 issue or maybe a URL rewrite issue between drupal and gallery2?

drupaldan-1’s picture

I get the same error on the configuration screen

[client X.X.X.X] PHP Fatal error: Call to a member function on a non-object in /x/x/x/x/modules/gallery/G2EmbedTestUtilities.class on line 1
88, referer: http://x.x.x/x/admin/settings/gallery (x's refer to specific paths on my machine).

In order to comply to all the requirements I upgraded to 4.7.0-cvs. Gallery is 2.1 cvs. On the configuration screen there is no "submit" button. At the bottom of the screen there is a "Save configuration" button and "Reset to defaults" button. Clicking on the Save Configuration button brings a white screen and the above httpd error log message.

alexandreracine’s picture

In my case (see comment #1) I have drupal 4.6 and gallery.module version 1.8 ($Id: gallery.module,v 1.8 2005/09/12 12:38:28 walkah Exp $)

Like I said Gallery 2.1 itself work pretty well in standalone.

alexandreracine’s picture

I downloaded the latest 4.6.x version and that does not work too.

alexandreracine’s picture

I meant the latest 4.6.x version of gallery.module

Sorry for that possible confusion.

alexandreracine’s picture

Title: Fatal error with Gallery version 2.1 » Fatal error with Gallery version 2.1, Drupal 4.6.x and watever version of gallery.module

Changed the title :)

kiz_0987’s picture

Title: Fatal error with Gallery version 2.1, Drupal 4.6.x and watever version of gallery.module » Fatal error with Gallery version 2.1

Changed the title back. These are very different issues -- the original one is an issue with the CVS version of gallery.module (designed for Drupal 4.7, Gallery 2.1). I am looking into this. The second issue relates to the 4.6 version of gallery.module which is designed only for Gallery 2.0. alexandreracin : the version you have is not designed for Gallery 2.1 and will not work.

There is currently no version of gallery.module which works with Drupal 4.6 and Gallery 2.1.

kiz_0987’s picture

Assigned: Unassigned » kiz_0987
FileSize
15.1 KB

drupaldan, mckyja,

Can you please replace your G2EmbedTestUtilities.class with with attached and let me know if it works.

Thanks.

reuben’s picture

I was seeing the problem before too, but with this newer version it has gone.

However I am still seeing this error in both -cvs and the update just posted:

Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /var/www/html/drupal/sites/www.reub.net/modules/gallery/gallery_settings.inc on line 752

Yet to test it properly but so far it looks like things are (almost if not entirely) working.

drupaldan-1’s picture

Thanks for posting the revised file. This time it got farther, but I received the following error message:

* Embedded Gallery2 Status:
o 'URI of Gallery2' variable: Error
+ Error 111: 'Connection refused' retrieving
o PHP Memory Limit: Success
o Overall Status: Error
+ You need to fix the above errors before Gallery2 will be embedded in Drupal.
* The configuration options have been saved.

In checking the log files I found the following:

fsockopen(): unable to connect to x.x.x:80 in /var/www/html/drupal_directory/modules/gallery/G2EmbedDiscoveryUtilities.class on line 164.

I am able to connect to the gallery2 site using http. The site is using rewritebase and clean urls if that is a possible problem. It could also have been related to denying access to .inc, .class and MANIFEST files in that directory. However, even when they were opened up in Apache, the gallery.module could still not connect to the gallery2 web. It looks like the G2EmbedDiscoveryUtilities.class file might need to be changed as well as the G2EmbedTestUtilities.class file. Does that seem reasonable?

Thanks again for your work.

mckyja’s picture

Downloaded drupal-cvs, gallery-cvs, and gallery2.1 FULL, and your attached G2EmbedTestUtilities.class

installed drupal, configure.
installed gallery2, configure.
upload gallery, replace .class file, activate module, do the config

hit the gallery link. gallery appears.

kiz_0987’s picture

New G2EmbedTestUtilities.class committed to HEAD. Thanks for your help.

drupaldan. G2EmbedDiscoveryUtilities was written by valiant (a Gallery2 developer), so I have very limited knowledge of it. Can you please post on the G2 forum for assistance.

kiz_0987’s picture

drupaldan. Sorry, I should have asked you to try a manual config first (there is info in the drupal gallery help on how to do this). This was designed to work for those cases where the auto-config failed.

drupaldan-1’s picture

That was it! Using manual config solved all problems. I have been able to create a user, allocate gallery permissions, upload images and set up a slide show - all off the main drupal home page. A guest does not need to login to see the images, but the registered users can control their own galleries. This is "really slick!" Thanks again for your help. I'm sure that many, many people will use this combination of drupal and gallery.

kiz_0987’s picture

reuben : Latest CVS should have the 'Call-time pass-by-reference has been deprecated' warning removed. Could you please test and confirm. Thanks.

boelkstoff’s picture

Hello.

Can somebody tell me what version of this module I need to install now, I am very confused!!!

I have installed gallery 2.1 latest stable.

drupal 4.6.6.

I have installed the latest version of this module, but this is telling me:

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

Thank you very much for your help and your work

kiz_0987’s picture

Sorry, but there is no released version of gallery.module that works with Drupal 4.6 and Gallery2.1. Your choices are:
- Drupal 4.6 & Gallery 2.0 (use the 4.6 released version)
- Drupal 4.7 & gallery 2.1 (use the cvs version)

boelkstoff’s picture

isnt that a bad choise?

I mean there are two stable versions out and they are not working together??
Thsi sounds for me like a bad decision of your project lead.

Now I can choise between on old gallery version or a drupal version that is still constantly in development.

I think I will install nether one because I like stable versions.

This now sucks for me and maybe for a lot of other users, which just wanted to download and use your nice plugin.

Michelle’s picture

"Project Lead"? This isn't a big software company with paid employees. Just volunteers working on what they're interested in. With 4.7 nearly done by the time Gallery 2.1 came out, likely none of them had any need to make the 4.6 module work with 2.1. The 4.6 module works just fine with Gallery 2.0, which makes two stable versions working together. If you don't want to be on the cutting edge with Drupal, there's an option. That's the option I've had to take as I have neither the skills nor the money to get a 4.6/2.1 combo.

Michelle

boelkstoff’s picture

Hello.

Well since drupal 4.7 is now a release candidate, I think I have to apologise and hope that 4.7 final will soon be released.

Thanks for all your work.

silurius’s picture

Drupal 4.7 RC with Gallery 2.1 no worky

OK so have installed 4.7 RC, added gallery module and get a similar crash when I go to administer -> settings -> gallery.

Gallery2.1 (CVS)
- install (www.mysite.com/gallery/) - no problems
- Image Block module installed and activated in Gallery2 - ok
- Image Frame module installed and activated in Gallery2 - ok
- Configured Gallery2 - ok
- added albums images - no problems
Drupal 4.7 RC (CVS)
- installed at (www.mysite.com) - no problems
- configure drupal - ok

gallery.module
- upload module - ok
- activate module - ok
- configure module - generates following error: (* are server path info)
Fatal error: Call to undefined function: iserror() in /*/*/*/*/modules/gallery/gallery.module on line 327

kiz_0987’s picture

What version of gallery.module are you using? Is it the latest CVS version?

silurius’s picture

> What version of gallery.module are you using? Is it the latest CVS version?

Most recent I believe, (4.6.0 in the zip download).

kiz_0987’s picture

You have downloaded the 4.6 version which will not work. You need the CVS version for 4.7 -- see either the Drupal CVS or http://drupal.org/project/Modules (go to the CVS versions).

silurius’s picture

> You have downloaded the 4.6 version which will not work. You need the CVS version for
> 4.7 -- see either the Drupal CVS or http://drupal.org/project/Modules (go to the CVS
> versions).

Gah, you are correct. My bad. I'd been looking only at 4.7 & 4.6 modules and just assumed there was a version number problem. Seems to be working so far.

patchak’s picture

hummm,

Sorry if this is a dumb question, but where can I find the 2.0 version of gallery, I tried to install the 2.1 but does not work... ( I just realised it was normal it did not work by coming here...)

Please help as I can't seem to find the link to get the 2.0 gallery version,

BTW, is the gallery2.0 any good? Or I should wait to have the final release of drupal 4.7 ?

Thanks

alexandreracine’s picture

Status: Active » Fixed

This has been fixed. See the files in cvs for this release.

kiz_0987’s picture

Status: Fixed » Closed (fixed)