I have installed the most current versions of both G2 and Drupal and I have read many of the posts about common issues. However, I am getting an error when clicking on the random photo block. It redirects me to an "error 500: Internal Server Error" - www.spartyon.org.

Any ideas?

Thanks!
Ed

Comments

kiz_0987’s picture

Yep. Looks to me that you have not set up your Gallery URL Rewrite correctly. Check INSTALL.txt and/or http://codex.gallery2.org/index.php/Gallery2:How_to_Embed_Gallery2_in_Dr...

You can only have the "Show Item" rule active. All the other ones have to be inactive.

eswiderski’s picture

I only have the "Show Item" rule active and have the correct setting: gallery/%path%

kiz_0987’s picture

Please turn off URL rewrite and see if it works then (deactivate and uninstall). If it does, then try URL rewrite again -- but first let's see if it works without it.

If all that works, when turning on URL Rewrite make sure that you also follow the Embedded Rewrite instructions. If you still get a Server Error, what does your Apache error log display?

I no longer see the gallery block in your drupal page so cannot check its link.

kiz_0987’s picture

Checking your site again I notice that you have turned off clean_URLS in Drupal (so I need to do ?q=gallery to get to your site), but then when I look at the links of your photos they seem to still have short URLs. I think I remember seeing a post about needing to delete the G2 cache when changing URL Rewrite as it caches this data. You can do this via a G2 admin task.

So this link fails: http://www.spartyon.org/gallery/10770429407_0_ALB+_Small_.jpg.html

But manually editing it to:

http://www.spartyon.org/?q=gallery/10770429407_0_ALB+_Small_.jpg.html

works.

jantzen05’s picture

Good thread
I had just this problem and have fixed it now.
/Carsten