Drupal + Gallery Not Talking

swiders2

Joined: 2005-10-26
Posts: 7
Posted: Sat, 2005-11-05 19:58

Anybody have an idea as to why Gallery doesn't appear to be connecting to my Drupal installation? I see the following error in my Drupal log:

details
Type gallery
Date Saturday, November 5, 2005 - 14:49
Location /?q=admin/block
Message Unable to initialize embedded Gallery
Error (ERROR_MISSING_OBJECT)
in modules/core/classes/helpers/GalleryUserHelper_medium.class at line 179 (gallerystatus::error)
in modules/core/classes/GalleryCoreApi.class at line 506 (galleryuserhelper_medium::fetchuserbyusername)
in /homepages/3/d141546378/htdocs/modules/gallery.module at line 345 (gallerycoreapi::fetchuserbyusername)
in /homepages/3/d141546378/htdocs/modules/gallery.module at line 183
in ??? at line 0
in /homepages/3/d141546378/htdocs/includes/module.inc at line 182
in /homepages/3/d141546378/htdocs/modules/block.module at line 502
in ??? at line 0
in /homepages/3/d141546378/htdocs/includes/module.inc at line 182
in /homepages/3/d141546378/htdocs/includes/theme.inc at line 864
in /homepages/3/d141546378/htdocs/themes/chameleon/chameleon.theme at line 93
in ??? at line 0
in /homepages/3/d141546378/htdocs/includes/theme.inc at line 186
in /homepages/3/d141546378/htdocs/modules/block.module at line 387
in ??? at line 0
in /homepages/3/d141546378/htdocs/includes/menu.inc at line 354
in /homepages/3/d141546378/htdocs/index.php at line 18

Thanks!

 
kiz_0987

Joined: 2005-02-27
Posts: 189
Posted: Sat, 2005-11-05 20:06

Upgrade to the cvs version of gallery.module from http://drupal.org/project/Modules/cvs (or the enhanced module at http://drupal.org/node/32393 ). Then apply this patch: http://drupal.org/node/35126 . Does it help?

 
swiders2

Joined: 2005-10-26
Posts: 7
Posted: Sun, 2005-11-06 00:17

dumb question :) -How do I apply the patch?

 
swiders2

Joined: 2005-10-26
Posts: 7
Posted: Sun, 2005-11-06 00:27

Wll, I applied the patch. Thanks! Is there any other way to apply a patch other than editing a file manually?

Now I have another issue. The random photo block seems to work ok, but now when I click on the image, it gives me a page not found error. ANy ideas? Thanks for your help!

 
kiz_0987

Joined: 2005-02-27
Posts: 189
Posted: Sun, 2005-11-06 00:54

Please post an example link for the image. Also, check to see if any of the troubleshooting sections in http://codex.gallery2.org/index.php/Gallery2:How_to_Embed_Gallery2_in_Drupal apply.

You can apply patches without manual editing. Often you would use:

patch -p0 < /path/to/thepatch

 
swiders2

Joined: 2005-10-26
Posts: 7
Posted: Sun, 2005-11-06 00:59
 
kiz_0987

Joined: 2005-02-27
Posts: 189
Posted: Sun, 2005-11-06 01:05

Check my previous reply to you at http://drupal.org/node/35392 . Looks like a URL rewrite issue.

 
swiders2

Joined: 2005-10-26
Posts: 7
Posted: Sun, 2005-11-06 22:21

Thanks for your help. I actually just changed the URL rewrite to add the ?q= and it seems to be working.

Thanks again!

 
kiz_0987

Joined: 2005-02-27
Posts: 189
Posted: Sun, 2005-11-06 23:31

Ah, I get it now. You have URL Rewrite in Gallery2 but have not turned on clean URLs in Drupal. I will change the install instructions to clarify this. Normally people would use both (since if mod_rewrite works, why not). Glad to hear that it's working.