Drupal 4.6 + G2

R1Power

Joined: 2003-07-30
Posts: 6
Posted: Wed, 2005-09-28 15:51

Hi,
I got gallery2 installed standalone and worked (http://mydomain.com/gallery). Also installed drupal 4.6 (root of mydomain.com) and worked. Installed gallery.module and with bit of help from google got the images to display in the ramdom image block and http://mydomain.com/?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.mydomain.com in the browser the image block and embeded gallery can't display any images.

Gallery and gallery.module have been updated from cvs

What have I missed in my config?

Many thanks in advance.

 
MichelleC

Joined: 2005-04-16
Posts: 42
Posted: Wed, 2005-09-28 16:13

It looks as though you have clean URLs on in your Gallery and not in Drupal. This may be confusing it. Your thumbnails point to, for example, http://tchia.com/gallery/Winter.jpg.html but your photo is actually at http://tchia.com/?q=gallery/Winter.jpg.html from Drupal's perspective.

As for the www problem, I've noticed that as well but haven't had a chance to look into it.

Michelle

 
kiz_0987

Joined: 2005-02-27
Posts: 189
Posted: Wed, 2005-09-28 17:52

You may want to try this: http://drupal.org/node/32389

Another option (untested) is to use symbolic links in your sites subdir for www.example.com and example.com (see multi-site drupal setup -- eve if you do not use multi-site this may work).

 
R1Power

Joined: 2003-07-30
Posts: 6
Posted: Sat, 2005-10-01 16:22

Thanks Michelle,

I fixed the clean URL issue by removing the module from drupal and G2. Somehow I can't get the image to display with ModRewrite, anyhow am not too fuss it is working now.

Still trying to solve why I can't use www.domain. However both drupal and G2 does work with www.domain standalone.

Cheers

 
R1Power

Joined: 2003-07-30
Posts: 6
Posted: Sat, 2005-10-01 16:25

Hi Kiz
Thanks for your reply. However, I think the problems is with gallery.module because www does work for both apps standalone.

Cheers

 
Shiva Thomas
Shiva Thomas's picture

Joined: 2005-10-03
Posts: 1
Posted: Mon, 2005-10-03 21:03

Gallery 2.0 and Drupal 4.6.3 work quite nicely for me. Thanks for the integration. :-)

 
schultmc
schultmc's picture

Joined: 2003-05-21
Posts: 108
Posted: Mon, 2005-11-14 00:56
I just migrated one of my PostNuke sites to Drupal 4.6.3 and have successfully integrated Gallery 2.0.1 into my Drupal site but I'd like to turn off some of the Gallery UI so it looks more like the gallery intergrated here on GMC. I'm fine w/ a RTFM answer, but I followed the integration docs on Codex and my result is what's currently on the VandyLand site, not GMC. What do I need to do?

--
Debian gallery package maintainer
 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Mon, 2005-11-14 01:19

better ask bharat / mindless about the changes applied to GMC...

 
michellex

Joined: 2005-12-03
Posts: 13
Posted: Sun, 2006-02-05 04:43

Has anyone tried to embed a G2 multisite with one Dupal?
Essentially, I have two major albums (portfolio and design) that I want completely separate (hence the multisite installation w/ G2). The primary installation is embedded just fine. The secondary one wants to open in a whole new page.
Any idea how to get the second to embed like the first?

Thanks,
~M

 
lvthunder

Joined: 2003-09-12
Posts: 808
Posted: Sun, 2006-02-05 06:33

I don't know if this will work or not but you can try copying the g2 module to a file with a different name and point the second one to the other gallery, or just make the gallery theme look like your drupal theme so it looks embeded but it really isn't. The second option isn't very good if you are actually allowing other people to upload to G2.

 
michellex

Joined: 2005-12-03
Posts: 13
Posted: Sun, 2006-02-05 18:58

I got it to work. Just for future reference for anyone else who wants to do this, here's what I did:

Rename the gallery module folder to whatever your module name is gonna be.
Rename gallery.module to modulename.module (I changed mine to design.module)
Change gallery-module.pot to modulename-module.pot
Rename every instance of "gallery" inside the .pot file to your module name.
Open up design.module and rename every instance of "gallery" to your module name - Except "GalleryEmbed" and "GalleryStatus".

Upload the new folder to the gallery modules directory.

Do the multisite install.
Activate the new module in the admin settings in Drupal.

It's embedded now!

 
michellex

Joined: 2005-12-03
Posts: 13
Posted: Sun, 2006-02-05 23:24

No. Scratch that. The link works from the front_page, but not from anywhere else. I get the following error:

user error: Duplicate entry '1-DesignUser' for key 1
query: INSERT INTO watchdog (uid, type, message, severity, link, location, hostname, timestamp) VALUES (1, 'design', 'Unable to initialize embedded Design<br/>Error (ERROR_STORAGE_FAILURE)<ul><li><b>in</b> modules/core/classes/GalleryStorage/DatabaseStorage.class <b>at line</b> 1238 (gallerystatus::error) <li><b>in</b> modules/core/classes/GalleryStorage.class <b>at line</b> 294 (mysqldatabasestorage::addmapentry) <li><b>in</b> modules/core/classes/interfaces/ExternalIdMap.inc <b>at line</b> 96 (gallerystorage::addmapentry) <li><b>in</b> modules/core/classes/GalleryEmbed.class <b>at line</b> 784 (externalidmap::addmapentry) <li><b>in</b> /home/steelvei/public_html/drupal/modules/design/design.module <b>at line</b> 356 (galleryembed::addexternalidmapentry) <li><b>in</b& in /home/steelvei/public_html/drupal/includes/database.mysql.inc on line 66.

Fatal error: Duplicate entry '1-DesignUser' for key 1 query: INSERT INTO watchdog (uid, type, message, severity, link, location, hostname, timestamp) VALUES (1, 'php', 'Duplicate entry &#039;1-DesignUser&#039; for key 1 query: INSERT INTO watchdog (uid, type, message, severity, link, location, hostname, timestamp) VALUES (1, &#039;design&#039;, &#039;Unable to initialize embedded Design&lt;br/&gt;Error (ERROR_STORAGE_FAILURE)&lt;ul&gt;&lt;li&gt;&lt;b&gt;in&lt;/b&gt; modules/core/classes/GalleryStorage/DatabaseStorage.class &lt;b&gt;at line&lt;/b&gt; 1238 (gallerystatus::error) &lt;li&gt;&lt;b&gt;in&lt;/b&gt; modules/core/classes/GalleryStorage.class &lt;b&gt;at line&lt;/b&gt; 294 (mysqldatabasestorage::addmapentry) &lt;li&gt;&lt;b&gt;in&lt;/b&gt; modules/core/classes/interfaces/ExternalIdMap.inc &lt;b&gt;at line&lt;/b&gt; 96 (gallerystorage::a in /home/steelvei/public_html/drupal/includes/database.mysql.inc on line 66

Fatal error: Duplicate entry '1-DesignUser' for key 1 query: UPDATE sessions SET uid = 1, hostname = '68.184.236.163', session = 'messages|a:0:{}watchdog_overview_filter|s:3:\"all\";file_uploads|a:0:{}', timestamp = 1139153610 WHERE sid = 'c5abefdafd729c0a432f1c6e06d3042b' in /home/steelvei/public_html/drupal/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

[edit]
If I'm logged out of Drupal, everything runs just fine.
wierd.

 
michellex

Joined: 2005-12-03
Posts: 13
Posted: Tue, 2006-02-07 15:49

New problem.
I just moved my G2 multisite installation and single Drupal from the test directory to the primary. On the main g2 gallery it won't show larger images when ya click on a thumbnail. It works just fine outside of Drupal though.
Any ideas what this could be?
http://www.steelveils.com/?q=gallery

I should note too that this only happens in guest mode. When I'm logged in all is well.

Thanks again!
~M

 
rtconner

Joined: 2006-02-16
Posts: 3
Posted: Thu, 2006-02-16 19:51

Anyone know if there is a roles hook in drupal? I can't find one. Some way of the g2 mod knowing if roles are added or removed. That way a g2 mod can add or remove g2 groups. Its very buggy and this really can't be done right if there is no such hook.

 
fermi

Joined: 2006-11-16
Posts: 4
Posted: Thu, 2006-11-16 22:14

Hi,

I have this configuration:

Gallery version = 2.0.4 core 1.0.0.4
PHP version = 4.4.1 apache
Webserver = Apache
Database = mysql 4.0.23-standard
Toolkits = ArchiveUpload, Exif, ImageMagick, NetPBM, SquareThumb, Gd

I have a gallery that I wish embed with drupal 4.6.3. The problem is that to get into the drupal portal I do it throught http://subdomain.domain.com, and this is an alias of http://www.domain.com/subdomain. The gallery is installed in http://www.domain.com/subdomain/photogallery. When I upload the gallery module, it doesn't recognize the gallery. In fact when I switch on the gallery bloc, the link that shows (doesn't show any thumbmail) it's http://subdomain.domain.com/v/fotos/album/subalbum/photopage.html and if I click on the link, appears the not found page.
What should I do?

Thanks in advance, Fermí

 
kiz_0987

Joined: 2005-02-27
Posts: 189
Posted: Fri, 2006-11-17 00:49

You have not set up URL rewrite properly. Check the install guide.

 
fermi

Joined: 2006-11-16
Posts: 4
Posted: Fri, 2006-11-17 15:30
kiz_0987 wrote:
You have not set up URL rewrite properly. Check the install guide.

What ought I touch? Where? (in drupal or in the gallery?).

Thanks, Fermí

 
kiz_0987

Joined: 2005-02-27
Posts: 189
Posted: Sat, 2006-11-18 14:35
 
fermi

Joined: 2006-11-16
Posts: 4
Posted: Sun, 2006-11-26 20:32

Hi kiz,

Thanks for your support. I haver read it, and my htaccess. Now I have to tell you that I didn't explains so well the problem so I'll do it now.

As it seems, the RewriteEngine is On, and the RewriteBase is /dir/photogallery. The problem that I have (I think) is that the drupal site is called by http://subdomain.domain.com/ and that this is a permanent redirection to http://www.domain.com/dir/ . But when I activate the gallery2 module at drupal, it doesn't get the pictures (appears a link), and the link to se site is http://subdomain.domain.com/picture.jpg.html , and as you can see , the fact is that it should appear http://subdomain.domain.com/photogallery/picture.jpg.html.

So , what should I change on the htaccess?

Thanks for your help, Fermí.