Girl Meets Geekdom

Alive and Kicking!

The Pains of Gallery2-WordPress Integration

Thursday, December 8th, 2005 at 5:05 am

In my latest insomnious binge, I switched the management system of my entire website from Drupal to WordPress. I was impressed with Drupal early on…but it was too heavy. Too many features, too difficult to customize. It was too much to learn and I just didn’t feel like I had control of it. There were chunks of code that did who knows what but I was afraid to delete it. So I gave WordPress a test run, and was impressed. It was light, simple, and it was something I felt like I could not only easily customize, but I felt pretty comfortable working with it technically….maybe even write a module.

After trying it out extensively on one of my subdomains, I made the big switch. It was smooth. It so smooth I actually felt confident enough to dump my entire Drupal database. Then I came to the startling realization that Gallery2 and WordPress integrate horribly. The access point is this wp-gallery2.php files which drives everything. They don’t support URL rewrites and I had to install two extra modules just to stop getting error messages. When it finally displayed something, it makes my sidebar go crazy. I fixed it with a rather hacky solution. Then comes the motherload of the troubles, I get an error if I have to click any of the links. This is beyond me. I’m baffled. So baffled, I think I’m going to sleep.

9 Responses to “The Pains of Gallery2-WordPress Integration”

Woohoo, fixed! Now I just have to redo the theme.

*Gasp* did I just get filtered out by my OWN spam filter?

As requested posting a comment to test your spam filter.

Hey,

Firstly nice site! As for the gallery 2 integration with WordPress it sounds like you are having the identical problem to me - see http://www.acapitalmystery.com. I can’t say I have that much experience with php but the thing is driving me crazy! It is slowly begining to take over my entire life…6 o’clock in the morning and my social life is dimininshing rapidly! If you manage to work out the problem I would love to hear how!

James

I’m going through the same prob at my sie :( I cam across this in google, and was wondering if you could enlighten me as to how u fixed it?

Sally,

I must ask, how *did* you get your sidebar to load? every time I get mine to load I get some lame function errors at the bottom right above my footer.

-gehidore

The solutions I recall going through were as follows:

1. Install Imageblock and Imageframe modules for gallery. Those are absolutely neccessary.

2. Make sure the directory for your images have full read, write, and execute access — set it to 777.

2.5 (Since I can’t remember if this actually solved anything) Edit the paths under Optins>Gallery2 in wp-admin.
I forget what the defaults are but here’s what I have:

Relative Gallery2 Path:
./Name of Gallery2 Directory/

Embed Gallery2 Page Name:
wp-gallery2.php

Path from web document root:
/

Let me know if that works! And also let me know whether or not the settings I listed are default.

actually I gave up on the sidebar being as it would take away space from my images. I do wonder though, in which file did you find the annoying links that gallery2 insists on adding at the bottom of the page?

Hmmm… I cannot even figure out where or how to install ImageBlock? I got some ImageBlock widget from http://moho.otpera.net(Is this the right thing?) and installed it in my wp plugins and activated it, but it still isn’t recognized by WPG2? Gallery2 is very vague about what ImageBlock is or even where to get it.


Got something to say?