walkah: drupal + gallery 2

30 Jan 2005

drupal + gallery 2

so, here's a public announcement to all those of you who have been emailing me and waiting patiently: the drupal module for integrating gallery2 is out in the wild. you can get it from either the drupal cvs repository or the gallery cvs repository. one thing to note:

this is beta software

:) it may or may not work in your setup or environment. however, those of you that pay close enough attention will have noticed that i've been using the module for a while to run my gallery here. i must say, i like it.

there are some cool features that you just don't get other places. for example check out my webcam , or check out a video - yep auto generated thumbnails!

so, those of you that are interested, grab the code, give it a whirl. please, direct any bugs, features, etc to the drupal project page.

Anonymous's picture

Saw your site, and was

January 31, 2005 - 11:57am

Saw your site, and was hoping it would come out soon! Thanks a lot! Will try it out a.s.a.p.
Cheers
Christian :)

Anonymous's picture

Dude, Thanks. I've been waiting for this post!

January 31, 2005 - 1:29pm

James,
Ok, an official thank you! I can't wait to see this in action.
Your BEST beta tester.
Matt

Anonymous's picture

Thank You!

February 2, 2005 - 11:36pm

Thank you. I haven't even tried it yet, but I think I can safely say that you rock!

Thanks again.

Cheers,
someone

Anonymous's picture

Ack! Enabling Gallery2 Blocks in Drupal Broke My Drupal!

February 13, 2005 - 5:37am

I get the following error when I enable the two new Gallery blocks in drupal (This is all I see across my whole drupal site - all broken):

Fatal error: Undefined class name 'galleryembed' in /var/www/html/drupal-4.5.1/modules/gallery.module on line 244

This is pretty bad actually since once I enabled these two blocks my drupal site becomes completely broken. I cannot access any page (including admin to turn off these blocks).

Here is how I recovered:

Using PHPMyAdmin (my favorite MySQL manager) I modified the following records in the table 'blocks'. The key field is status which must be set back to '0' to disable the blocks (which then allows you to visit your drupal site again).

UPDATE blocks SET status = '0' WHERE module = 'gallery' AND delta = '0' AND status = '1' AND weight = '0' AND region = '0' AND path = '' AND custom = '1' AND throttle = '1' LIMIT 1 ;

UPDATE blocks SET status = '0' WHERE module = 'gallery' AND delta = '1' AND status = '1' AND weight = '0' AND region = '0' AND path = '' AND custom = '1' AND throttle = '1' LIMIT 1 ;

Once I made these two DB changes to get back to a working Drupal (with the gallery blocks disabled) I saw the following in the Drupal log:

warning: _gallery_init(): Failed opening 'gallery2//embed.php' for inclusion (include_path='.:/usr/share/pear') in /var/www/html/drupal-4.5.1/modules/gallery.module on line 228.

embed.php lives in the following location:
/var/www/html/gallery2/embed.php with 644 permissions

Any ideas how to resolve this? I am no PHP nor Drupal guru as of yet. :-)

I am using Drupal v. 4.5.1 and CVS HEAD of Gallery2 (as of 02/13/2005).

Thanks!

Glenn

Anonymous's picture

integration

February 28, 2005 - 12:30pm

quick question. is there a setting that i need in either the gallery config.php or in the drupal gallery.module to get full integration.

tyhe effect i'm going for is to get the header and side bar(s) from the rest of my drupal site. however, when i enter the gallery through navigation or direct entry i get the gallery in standalone mode.

i'd love to be able to get my header and side bars to surround the gallery.

any custom settings hat you used here or on your aurora subdomain would be greatly appreciated.

thanks for your great work adn thanks in advance for your time adn assistance.

Anonymous's picture

i figured it out

March 28, 2005 - 1:40pm

i tried reinstalling drupal and then adding gallery as my first module adn that seemed to work without a hitch.

the only thing that i think i may have done incorrectly the first time is to call the gallery2 root directory 'gallery' (i've never used any gallery 1.x version). i also correctly refered to it in the drupal admin/settings area however i just couldn't get it to embed. in my cirrent efforts i kept the gallery 2 directory as 'gallery2'. perhaps 'gallery2' is still hardcoded in one or two places currently (which is understandable since it is still in beta). i could be wrong about this assertion of course but i figured i would share the insight just in case.

anyway, thaks again for your great work on this. it's very much appreciated.

Anonymous's picture

good job - sometimes it

September 9, 2007 - 11:36pm

good job - sometimes it takes a while to figure things out

Anonymous's picture

drupal + g2. which repository ?

April 6, 2005 - 1:02am

Hi there,

I'm trying to install your g2 module, but the repositories (drupal cvs repository and gallery cvs repository) contains 2 different sets of files. Which one is the right one.

walkah's picture

drupal cvs

April 6, 2005 - 9:36am

Drupal's repository will usually have the latest code. I will, however, be doing my best to keep the two in sync.

Anonymous's picture

code

November 21, 2007 - 7:12pm

lets work on this, i cant get it!

Anonymous's picture

gallery

June 26, 2005 - 7:52pm

I tried hard to use gallery with drupal 4.6.1 by searching all the mails but it doesnot work. I donot know how did u managed that

Anonymous's picture

Integration Help

July 12, 2005 - 12:48pm

When I installed the gallery module after setting up gallery2 in my root directory, I got the following error:

warning: implode(): Bad arguments. in /home/www/xxxxxx/modules/gallery.module on line 138.

warning: implode(): Bad arguments. in /home/www/xxxxxx/modules/gallery.module on line 139.

I was trying to use it with drupal 4.6.2 Can any changes be made to make it work?

Anonymous's picture

I installed Drupal,

July 20, 2005 - 12:56am

I installed Drupal, installed gallery2 and then copied the module, enabled it, and went to settings->gallery
Changed some random image block setting and now I can't even log in. I get this message:

Input Array does not match ?: SELECT DISTINCT g2_AccessMap.g_accessListId FROM g2_AccessMap WHERE (g2_AccessMap.g_userId = NULL OR g2_AccessMap.g_groupId IN (1)) AND g2_AccessMap.g_permission & 1 =

user error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 10
query: SELECT DISTINCT(p.perm) FROM role r INNER JOIN permission p ON p.rid = r.rid INNER JOIN users_roles ur ON ur.rid = r.rid WHERE ur.uid = 0 in /var/www/localhost/htdocs/includes/database.mysql.inc on line 66.

Fatal error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 10 query: INSERT INTO watchdog (uid, type, message, severity, link, location, hostname, timestamp) VALUES (0, 'php', 'You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near \'\' at line 10 query: SELECT DISTINCT(p.perm) FROM role r INNER JOIN permission p ON p.rid = r.rid INNER JOIN users_roles ur ON ur.rid = r.rid WHERE ur.uid = 0 in /var/www/localhost/htdocs/includes/database.mysql.inc on line 66.', 2, '', '/admin/settings', '127.0.0.1', 1116954553) in /var/www/localhost/htdocs/includes/database.mysql.inc on line 66

Fatal error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 10 query: UPDATE sessions SET uid = 0, hostname = '127.0.0.1', session = 'smessages|a:0:{}messages|a:0:{}watchdog_overview_filter|s:3:\"all\";', timestamp = 1116954553 WHERE sid = '5596b16e916112a41eb4c57aca7b613e' in /var/www/localhost/htdocs/includes/database.mysql.inc on line 66

Warning: Unknown(): A session is active. You cannot change the session module's ini settings at this time. in Unknown on line 0

Anonymous's picture

that was me...

July 20, 2005 - 12:57am

furthermore I can't disable the module because I can't log in. :(

Anonymous's picture

I get the same error as the

July 23, 2005 - 2:42pm

I get the same error as the person right before me after upgrading gallery2 from beta 3 to the newly released beta 4. I guess they changed something in the code of gallery2 that broke the drupal-gallery module :(

drazzig's picture

Session Problems

July 25, 2005 - 3:33pm

I've been e-mailing you and loads of people to sort this one out for ages!! Everytime I use gallery inside Drupal I get logged out of Drupal. What can I do to sort it out? I am using Drupal 4.6.2 and Gallery Beta 4.

Anonymous's picture

I have same problem with

July 26, 2005 - 9:17am

I have same problem with Drupal 4.6.0 and gallery 2 beta 4.

Anonymous's picture

I'm glad I'm not the only one.

July 30, 2005 - 4:15pm

Yeah, after installing the gallery module, Drupal is screwed up completely.

I can get logged in, but as soon as I visit a page that is Gallery-related (either an actual Gallery page or one of the admin pages to configure a Gallery block), I get logged out.

That's with $full set to true (i.e. fullInit set to true). If it's set to false, I just get a crash as mentioned above on 7/20/2005

I also can't get it to embed with clean URLs on. I think it's because there's some conflict. I have gallery2B4 in a dir called /gallery (drupal is in site root). This seems to mess things up b/c the clean URL for gallery is also /gallery which is rewritten to /?q=gallery

If I turn of Clean URLs and use /?q=gallery, it does embed.

I guess that's why they call it BETA! Actually, Gallery and Drupal both work fine on their own, it's trying to bridge them that causes me problems. I wonder if changes int eh Gallery Beta, which has had a lot of changes since the integration module was released, have messed things up.

Now that Gallery is pretyt much stable in terms of architecture, hopefully the gallery module for Drupal will catch up. It will be a great combo if I can ever get it to run.

Anonymous's picture

I hope the same...

July 31, 2005 - 8:55am

Now I have Drupal 4.6.2 and Gallery 2 Beta 4. Gallery doesn't embed at all. I'd be great if the module was updated!

Anonymous's picture

Well, guess what...

August 5, 2005 - 1:43pm

It's working now. Though I get logged out from both Gallery and Drupal each time I try to access it.

Anonymous's picture

Session Problem

August 8, 2005 - 7:24am

Hi,

So after several weeks of posting this problem on message boards and e-mailing people, I still haven't figured it out and got an answer!

If anyone knows why Drupal gets logged out everytime I access the Gallery module please can you help me (and the other people with this problem). Once its fixed, I'll finally be able to have a photo gallery on my website!!

Thanks,

Drazzig

Anonymous's picture

I had the same problem, but I fixed it

August 10, 2005 - 9:33am

To fix it do the following:
1- Get into the "modules" directory on your drupal path
2- Delete the file "gallery.module"
3- Change to the "po" directoy and delete "gallery-module.pot"
4- You may have phpmyadmin or something simiar to manage your databases. Log it.
5- Chosse the database you are using to run drupal among your databases
6- Find a table called "blocks"
7- There may be an attribute of "image block". You have to delete it
8- Get into your page and log again, and enjoy again!!

Anonymous's picture

Problem

August 8, 2005 - 9:10am

Hi,
I don't know if you all have the same Problems...
but my problem is:
after installing drupal - works fine
and installing gallery2 - works fine
i installed the gallery2 module

when i activate the module there is no error... but nothing is shown (navigation block is active - thats not the point)

when i try to change the path to gallery2 there is always an error
"
warning: _gallery_init(/embed.php) [function.-gallery-init]: failed to open stream: No such file or directory in C:\AppServ\www\drupal-webseite\modules\gallery.module on line 237.

warning: _gallery_init() [function.include]: Failed opening '/embed.php' for inclusion (include_path='.;C:\php5\pear') in C:\AppServ\www\drupal-webseite\modules\gallery.module on line 237.
"
it is the same in windows and on linux

my path is drupal/ and drupal/gallery2

does someone has an idea?

greetings
dave

Anonymous's picture

problem could be caused by PHP memory limit

September 1, 2005 - 12:35pm

Some of these problems could be caused by PHP running out of memory when trying to load both Gallery2 and Drupal.

Depending on your server setup, you can often change this using the .htaccess file.

Add this to you .htaccess file in the root of your drupal installation:

php_value memory_limit 16M

Cheers,
William

Anonymous's picture

Yes the problem is almost

March 10, 2007 - 1:18am

Yes the problem is almost certainly PHP memory limitation in this instance

Anonymous's picture

does anyone have a resolution for this problem yet?

August 19, 2005 - 10:49am

Hi,

I am still having issues with Gallery 2 Beta 5 (RC1) and drupal on my site http://www.dieinter.net

I used the Gallery module before i upgraded from G2B3 and it worded like a charm.

Please let me know how i can get the module to work properly.
Walkah, do you still develop on this module, or has it been set aside?

Thanks!!!
jacauc

walkah's picture

hi jacauc

August 19, 2005 - 12:03pm

I do still work on this module, occasionally. however, my time lately has been pretty consumed by work so I haven't been able to fix the issues that RC1 seems to have cause for so many folks.

As you can see my gallery still seems to be working, making it that much harder to debug.

i will blog here though as soon as i get a chance to release new integration code. promise :)

jacauc's picture

excellent

August 21, 2005 - 3:26am

Thanks for the reply,

I want to note however, that one of the main issues is the Gallery Navigation block not working correctly, and i noted you do not use that block in drupal.

Also, it seems like you have a different version of RC1... not sure how that works though, but I have "RC1 +5 Insightful"

If you need help in debugging, and need me to test some versions of the module, you're welcome to contact me. I could even just consider giving you access to my site, so that you can upload the files yourself, and see what it does.

Let me know what you think about this.

Thanks!
jacauc

Anonymous's picture

still no luck

September 6, 2005 - 1:08am

William, I tried doing the steps above, and then i got an "out of memory" error... I have now increased the PHP memory limit to 32Mb, but it didn't seem to work though. :(

Thanks for the help!
jacauc

Anonymous's picture

Fixed?

September 17, 2005 - 8:41am

Hi,

I installed Drupal 4.6, Gallery 2.0 and the Gallery integration module. I was facing the same problem some of you have explained: being logged out of drupal when trying to enter any gallery-related page.

After looking into the module code for a while, I've found a fix that works for me. Edit the module and search for the lines below:

// make sure that the super users are appropriately mapped
list ($ret, $user) = GalleryCoreApi::fetchUserByUsername('admin');

Substitute 'admin' by $user->name. Problem is that Gallery administrator username needn't be 'admin'.

Best regards,

Guiu

Anonymous's picture

please help!

September 28, 2005 - 9:01am

Hi,
I got gallery installed standalone and worked (tchia.com/gallery). Also installed drupal (root of tchia.com) and worked. Installed gallery.module and with bit of help from google got the images to display in the ramdom image block and /?q=gallery. However when I clicked on the thumbnails in the image block or embeded gallery I keep getting redirected to the home page.

Also if I use www.tchia.com in the browser the image block and embeded gallery can't display any images.

What have I missed in my config?

Many thanks in advance.
Cheach

Anonymous's picture

Activating the Gallery block in Drupal kills website

October 29, 2005 - 1:26am

Hi -

Both installs work great (Drupal v4.6.3 & Gallery v2.0.1) but not together.

If I enable the Gallery block, I immediately get a "Page not found" error and all pages (in Drupal) are completely inaccessible. But the Gallery still works at "www.example.com/gallery2". If I rename the Gallery2 dir to something else, everything works again (although the gallery is now at "www.example.com/temp").

The error log gets this entry everytime that happens, "Unable to initialize embedded Gallery". I've checked everything 30 or 40 times and all the settings are correct.

I did initially install Gallery2 directly to the "gallery" dir rather than the default "gallery2" dir. Is there a setting that was set when I started the gallery.module and is now interferring??

Thanks in advance for any help.

Peace,
Bob

Anonymous's picture

great!

March 5, 2007 - 10:55pm

Hi, I've been experimenting with the gallery and I must say it is pretty cool. I did get an "out of memory" error... But I increased the PHP memory limit to 50Mb and now it works well on my site. Thanks a lot for sharing!
Hot Penny Stock

Anonymous's picture

resolution

July 24, 2007 - 8:49pm

any luck with this problem, i need the help!

Anonymous's picture

same error

November 6, 2007 - 8:11pm

yep, im getting the same thing, and one got a fix on this?

Anonymous's picture

It has been awhile. I have

August 4, 2007 - 9:41am

It has been awhile.
I have the same problem too.

Aston
Affiliate Marketing Shop

Anonymous's picture

What is the

August 4, 2007 - 9:45am

What is the problem?

Charlie
Site monitor

Anonymous's picture

Dude, this blog is 1 year+

August 4, 2007 - 3:19pm

Dude, this blog is 1 year+ old.
Check out the lastest update at drupal.

Music

Anonymous's picture

1 year blog

October 31, 2007 - 7:05pm

I installed Drupal 4.6, Gallery 2.0 and the Gallery integration module. works for me, thanks

Anonymous's picture

All these issues were fixed

December 11, 2007 - 1:37am

All these issues were fixed with Drupal 4.6 as far as I know - even my dog can use it now...

Anonymous's picture

thanks

January 3, 2008 - 2:31pm

thanks for all fixing.

Anonymous's picture

this drupal is amazing..

January 4, 2008 - 6:39am

this drupal is amazing.. cool

Anonymous's picture

Yes Drupal 6 is very clean

December 7, 2008 - 1:05am

Yes Drupal 6 is very clean compared to these old versions, and a lot more versatile.

James Walker

twitter Facebook Profile Flickr del.icio.us last.fm 43 People brightkite Jaiku Pownce Plurk Linked In Dopplr Digg upcoming

twitter

*phew* StatusNet public beta signup is open and #ostatus is in the wild. Come see what I've been working on http://status.net/signup
18 hours 53 min ago

comments

Syndicate content
powered by drupal Get Firefox! ecto powered Creative Commons License James Walker