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!
Posts: 189
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?
Posts: 7
dumb question -How do I apply the patch?
Posts: 7
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!
Posts: 189
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
Posts: 7
http://www.spartyon.org/gallery/IMG_0081.jpg.html
Posts: 189
Check my previous reply to you at http://drupal.org/node/35392 . Looks like a URL rewrite issue.
Posts: 7
Thanks for your help. I actually just changed the URL rewrite to add the ?q= and it seems to be working.
Thanks again!
Posts: 189
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.