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.
Saw your site, and was
Saw your site, and was hoping it would come out soon! Thanks a lot! Will try it out a.s.a.p.
Cheers
Christian :)
Dude, Thanks. I've been waiting for this post!
James,
Ok, an official thank you! I can't wait to see this in action.
Your BEST beta tester.
Matt
Thank You!
Thank you. I haven't even tried it yet, but I think I can safely say that you rock!
Thanks again.
Cheers,
someone
Ack! Enabling Gallery2 Blocks in Drupal Broke My Drupal!
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
blocksSETstatus= '0' WHEREmodule= 'gallery' ANDdelta= '0' ANDstatus= '1' ANDweight= '0' ANDregion= '0' ANDpath= '' ANDcustom= '1' ANDthrottle= '1' LIMIT 1 ;UPDATE
blocksSETstatus= '0' WHEREmodule= 'gallery' ANDdelta= '1' ANDstatus= '1' ANDweight= '0' ANDregion= '0' ANDpath= '' ANDcustom= '1' ANDthrottle= '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
integration
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.
i figured it out
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.
good job - sometimes it
good job - sometimes it takes a while to figure things out
drupal + g2. which repository ?
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.
drupal cvs
Drupal's repository will usually have the latest code. I will, however, be doing my best to keep the two in sync.
code
lets work on this, i cant get it!
gallery
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
Integration Help
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?
I installed Drupal,
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
that was me...
furthermore I can't disable the module because I can't log in. :(
I get the same error as the
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 :(
Session Problems
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.
I have same problem with
I have same problem with Drupal 4.6.0 and gallery 2 beta 4.
I'm glad I'm not the only one.
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.
I hope the same...
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!
Well, guess what...
It's working now. Though I get logged out from both Gallery and Drupal each time I try to access it.
Session Problem
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
I had the same problem, but I fixed it
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!!
Problem
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
problem could be caused by PHP memory limit
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
Yes the problem is almost
Yes the problem is almost certainly PHP memory limitation in this instance
does anyone have a resolution for this problem yet?
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
hi jacauc
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 :)
excellent
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
still no luck
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
Fixed?
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
please help!
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
Activating the Gallery block in Drupal kills website
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
great!
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
resolution
any luck with this problem, i need the help!
same error
yep, im getting the same thing, and one got a fix on this?
It has been awhile. I have
It has been awhile.
I have the same problem too.
Aston
Affiliate Marketing Shop
What is the
What is the problem?
Charlie
Site monitor
Dude, this blog is 1 year+
Dude, this blog is 1 year+ old.
Check out the lastest update at drupal.
Music
1 year blog
I installed Drupal 4.6, Gallery 2.0 and the Gallery integration module. works for me, thanks
All these issues were fixed
All these issues were fixed with Drupal 4.6 as far as I know - even my dog can use it now...
thanks
thanks for all fixing.
this drupal is amazing..
this drupal is amazing.. cool
Yes Drupal 6 is very clean
Yes Drupal 6 is very clean compared to these old versions, and a lot more versatile.