[Drupal] Call to a member function on a non-object

CyberKate

Joined: 2006-02-28
Posts: 8
Posted: Tue, 2006-02-28 14:31

Hi !

I've installed Gallery 2 successfully and I'd like to include it in Drupal 4.6.5.
I've activated the module "gallery" and, when I click on the section "Gallery", it says : Call to a member function on a non-object in <my_directory>/drupal-4.6.5/modules/gallery/gallery.module on line 327.

Do you know how to fix the problem ?

Thanks in advance.

 
CyberKate

Joined: 2006-02-28
Posts: 8
Posted: Wed, 2006-03-01 11:01

I've checked a little into the code, and $ret (at line 320 in gallery.module) is null.
In fact, it calls GalleryEmbed::init which calls GalleryInitFirstPass (line 109). And I don't find the declaration of this last function.

Can someone help me please ?

 
globo
globo's picture

Joined: 2005-02-07
Posts: 37
Posted: Wed, 2006-03-01 12:14

Are you using gallery 2.1? The module works with 2.0 only right now. An update is in the making but not yet out.

globo

 
kiz_0987

Joined: 2005-02-27
Posts: 189
Posted: Wed, 2006-03-01 12:15

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

 
CyberKate

Joined: 2006-02-28
Posts: 8
Posted: Wed, 2006-03-01 12:25

I use Gallery 2.1 and gallery.module 4.6.0.
Should it work ?

By the way, I uploaded the directories with classes from Gallery 1 because they weren't in the Gallery 2 version.

 
kiz_0987

Joined: 2005-02-27
Posts: 189
Posted: Wed, 2006-03-01 12:43

Nothing from Gallery1 is needed. Can you please explain exactly what you did in your last comment.

Gallery 2.1 and gallery.module 4.6.0 do not work together yet.

 
CyberKate

Joined: 2006-02-28
Posts: 8
Posted: Wed, 2006-03-01 12:50

When I installed Gallery2, some directories and files were needed :
- upgrade/po/sv.po
- upgrade/po/tr.po
- upgrade/po/vi.po
- upgrade/po/zh_TW.po
- upgrade/steps/
- upgrade/templates/

Since they were missing, I took them from the Gallery1 version.

By the way, can you tell me if Gallery 2.0 works well with gallery.module 4.6.0 ?

Thanks a lot.

 
kiz_0987

Joined: 2005-02-27
Posts: 189
Posted: Wed, 2006-03-01 13:46

Yes, Gallery 2.0 works with gallery.module 4.6.0. Check out http://codex.gallery2.org/index.php/Gallery2:How_to_Embed_Gallery2_in_Drupal if you have problems.

I still think you should not need any G1 stuff, but it's probably unrelated to any gallery.module issues.

 
CyberKate

Joined: 2006-02-28
Posts: 8
Posted: Wed, 2006-03-01 14:15

I've started again everything from the beginning, with Gallery 2.0 and it works really well. Thanks a lot for your help. :D

 
igrcic
igrcic's picture

Joined: 2005-04-19
Posts: 78
Posted: Tue, 2006-04-04 11:48

gallery.module for drupal works with G2.1 but only with drupal 4.7. check it out:
http://drupal.org/node/45159#comment-83889
------------------------------------------------------------------------------
...you can help, too! :)

 
igrcic
igrcic's picture

Joined: 2005-04-19
Posts: 78
Posted: Tue, 2006-04-04 12:10

actually there is one working version, take a look at the begining of
http://drupal.org/node/45159#comment-83889:

http://drupal.org/files/issues/gallery_0.module

------------------------------------------------------------------------------
...you can help, too! :)

 
andrewspringman
andrewspringman's picture

Joined: 2006-12-19
Posts: 2
Posted: Tue, 2006-12-19 23:27

I've got Drupal 4.7.4, Gallery 2.1 and the 4.7 version of the gallery module, yet I'm getting:

PHP Fatal error: Call to a member function on a non-object in /home/kbchomeo/public_html/gallery2/modules/rewrite/classes/RewriteApi.class on line 67

Any help would be appreciated.

 
andrewspringman
andrewspringman's picture

Joined: 2006-12-19
Posts: 2
Posted: Thu, 2006-12-21 01:08

Nevermind. What a noob am I! The Rewrite module wasn't installed!

[img]http://media.urbandictionary.com/image/page/noob-56631.jpg[/img]