Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#10 | G2EmbedTestUtilities.class | 15.1 KB | kiz_0987 |
Comments
Comment #1
kiz_0987 CreditAttribution: kiz_0987 commentedWhat 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.
Comment #2
mckyja CreditAttribution: mckyja commentedI 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???
Comment #3
mckyja CreditAttribution: mckyja commentedSo 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?
Comment #4
drupaldan-1 CreditAttribution: drupaldan-1 commentedI 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.
Comment #5
alexandreracine CreditAttribution: alexandreracine commentedIn 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.
Comment #6
alexandreracine CreditAttribution: alexandreracine commentedI downloaded the latest 4.6.x version and that does not work too.
Comment #7
alexandreracine CreditAttribution: alexandreracine commentedI meant the latest 4.6.x version of gallery.module
Sorry for that possible confusion.
Comment #8
alexandreracine CreditAttribution: alexandreracine commentedChanged the title :)
Comment #9
kiz_0987 CreditAttribution: kiz_0987 commentedChanged 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.
Comment #10
kiz_0987 CreditAttribution: kiz_0987 commenteddrupaldan, mckyja,
Can you please replace your G2EmbedTestUtilities.class with with attached and let me know if it works.
Thanks.
Comment #11
reuben CreditAttribution: reuben commentedI 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.
Comment #12
drupaldan-1 CreditAttribution: drupaldan-1 commentedThanks 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.
Comment #13
mckyja CreditAttribution: mckyja commentedDownloaded 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.
Comment #14
kiz_0987 CreditAttribution: kiz_0987 commentedNew 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.
Comment #15
kiz_0987 CreditAttribution: kiz_0987 commenteddrupaldan. 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.
Comment #16
drupaldan-1 CreditAttribution: drupaldan-1 commentedThat 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.
Comment #17
kiz_0987 CreditAttribution: kiz_0987 commentedreuben : Latest CVS should have the 'Call-time pass-by-reference has been deprecated' warning removed. Could you please test and confirm. Thanks.
Comment #18
boelkstoff CreditAttribution: boelkstoff commentedHello.
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
Comment #19
kiz_0987 CreditAttribution: kiz_0987 commentedSorry, 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)
Comment #20
boelkstoff CreditAttribution: boelkstoff commentedisnt 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.
Comment #21
Michelle"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
Comment #22
boelkstoff CreditAttribution: boelkstoff commentedHello.
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.
Comment #23
silurius CreditAttribution: silurius commentedDrupal 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
Comment #24
kiz_0987 CreditAttribution: kiz_0987 commentedWhat version of gallery.module are you using? Is it the latest CVS version?
Comment #25
silurius CreditAttribution: silurius commented> 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).
Comment #26
kiz_0987 CreditAttribution: kiz_0987 commentedYou 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).
Comment #27
silurius CreditAttribution: silurius commented> 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.
Comment #28
patchak CreditAttribution: patchak commentedhummm,
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
Comment #29
alexandreracine CreditAttribution: alexandreracine commentedThis has been fixed. See the files in cvs for this release.
Comment #30
kiz_0987 CreditAttribution: kiz_0987 commented