I have Gallery2 working on it's own, but integrating it into Drupal is creating problems. Anytime I click on the gallery link in the Drupal navigator, I get the following error:
Unable to get Gallery image block
Error (ERROR_CONFIGURATION_REQUIRED)
* in modules/core/classes/GalleryEmbed.class at line 764 (gallerystatus::error)
* in /opt/lampp/htdocs/drupal/modules/gallery/gallery.module at line 198 (galleryembed::getimageblock)
* in ??? at line 0
* in /opt/lampp/htdocs/drupal/includes/module.inc at line 182
* in /opt/lampp/htdocs/drupal/modules/block.module at line 502
* in ??? at line 0
* in /opt/lampp/htdocs/drupal/includes/module.inc at line 182
* in /opt/lampp/htdocs/drupal/includes/theme.inc at line 864
* in ??? at line 0
* in /opt/lampp/htdocs/drupal/includes/theme.inc at line 194
* in /opt/lampp/htdocs/drupal/themes/engines/xtemplate/xtemplate.engine at line 190
* in ??? at line 0
* in /opt/lampp/htdocs/drupal/includes/theme.inc at line 190
* in /opt/lampp/htdocs/drupal/modules/gallery/gallery.module at line 287
* in ??? at line 0
* in /opt/lampp/htdocs/drupal/includes/menu.inc at line 354
* in /opt/lampp/htdocs/drupal/index.php at line 18
The user sees "Unable to get Gallery image block"
This is a straight install from the 4.6.x modules section, no patches, and no beta versions.
Any ideas?
Jim A
Comments
Comment #1
paddy_deburca commentedJim,
You need the Image Block module installed and activated in Gallery2. Do you have it installed and activated?
Paddy.
Comment #2
sangamreddi commentedI am using Enhanced gallery module. It's working fine on my local machine.
http://drupal.org/node/32393
Comment #3
jfaberna commentedI do not have the image block installed or activated. I'll start looking into how to do that now. Is it a Gallery module or a Gallery setting or a Drupal thing?
Jim A
Comment #4
sangamreddi commentedIt's a gallery2 block setting in Gallery2 admin section, but not in drupal.
Comment #5
jfaberna commentedOkay, I found the image block in the Gallery install and got it installed. I also have gallery module selected in Drupal. So now when I go to my Drupal site and click on gallery, I get an apache error:
The requested URL /v/family/Octoberfest2005/Oktoberfest+2005+001.jpg.html was not found on this server.
Notice the /v/ in front of my path for the photo. It should be as below:
/opt/lampp/htdocs/drupal/files/g2data/albums/family/Octoberfest2005
Any ideas?
JIm A
Comment #6
sangamreddi commentedU need to fix the URL rewrite rules in Gallery2 admin settings.
Set teh satus to not active all the rules except show item rule and in the url pattern use this "gallery/%path%" without quotes and save.
Comment #7
jfaberna commentedI see how the /v/ go there, I'm just not sure what to put in the "show item" rewrite rules. I have the Drupal located in a subdirectory of htdocs. Gallery is a subdirectory of Drupal. I created a g2data directory under 'files'. So the "Family" album is located in the directory:
/opt/lampp/htdocs/drupal/files/g2data/albums/family
That's what I told Gallery2 installer. When I go directly to Gallery2, I see all the albums and pictures.
Now what?
BTW, thanks for your help and patences.
Jim A.
Comment #8
jfaberna commentedOkay, I now have my problem solved. I had to deactivate and uninstall the URL rewrite module. The I installed it again and activated it. I then made the URL rewrite for "show item = gallery/%path%" per the "How to embed Gallery2 in Drupal" from this site.
Thanks for all the help
Comment #9
kiz_0987 commented