Drupal 4.6 + G2
R1Power
Joined: 2003-07-30
Posts: 6 |
Posted: Wed, 2005-09-28 15:51 |
Hi, 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. |
|
Posts: 42
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
Posts: 189
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).
Posts: 6
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
Posts: 6
Hi Kiz
Thanks for your reply. However, I think the problems is with gallery.module because www does work for both apps standalone.
Cheers
Posts: 1
Gallery 2.0 and Drupal 4.6.3 work quite nicely for me. Thanks for the integration.
Posts: 108
--
Debian gallery package maintainer
Posts: 32509
better ask bharat / mindless about the changes applied to GMC...
Posts: 13
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
Posts: 808
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.
Posts: 13
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!
Posts: 13
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 '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::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.
Posts: 13
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
Posts: 3
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.
Posts: 4
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í
Posts: 189
You have not set up URL rewrite properly. Check the install guide.
Posts: 4
What ought I touch? Where? (in drupal or in the gallery?).
Thanks, Fermí
Posts: 189
See http://codex.gallery2.org/index.php/Gallery2:How_to_Embed_Gallery2_in_Drupal#URL_Rewrite
Posts: 4
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í.