Gallery 2 + Drupal + gallery.module v.1.21

Continental

Joined: 2004-06-14
Posts: 243
Posted: Mon, 2005-11-28 19:35

I will ask that many times have been asked as I found, but I have no solution:

1. I installed gallery.module v.1.21 and it doesn't show images.

Quote:
in log I can see many "missing.html not found" with some kind of error:
/cgi-system/content/main.php?g2_view=core.DownloadItem&g2_itemId=90&g2_serialNumber=2&g2_GALLERYSID=be540f677ad3197b88da0c979fe4

What I made beside reading forum topics here and there and readme(2) and codex: -)
1. disabled all url rewrite except Show Element gallery/%path%
2. modifiend main.php with additional line
3. enabled clean urls in Drupal (I thought it will help, but didn't)
and other things step by step about image blocks, setting e.t.c.

2. I tried standart gallery.module from walkah but can't understand about moving the sidebar e.t.c.

3. I ran my gallery+drupal now on gallery.module v1.1 from kiz and it works.
The only problem I saw from yesterday after I activated many new modules an web-error in script line 276 char 3 in the /site/gallery dir. I even don't know where to look it for?

p.s. The problem could be in the sequency, because when I have fresh gallery and drupal, I made url rewrite and block activation, then installed standart module, then didn't like it, then installed v.1.21, it didn't work, then installed v.1.1, it worked, then enabled clean url, then agagin tried 1.21, doesn't work, then... ;-) I just can't repeat everything again with less steps in the nearest time, but I want to get v.1.21 working, because it is working with outher...

p.s.s. when any stable version will be ready? wich gallery.module can be recommended to use with no risk but functionality?

thx. awating kiz answer or others if possible.

 
Continental

Joined: 2004-06-14
Posts: 243
Posted: Tue, 2005-11-29 17:22

Second part of my questons:

if is it possible to move some image blocks from gallery (External) to the main page of Drupal? What I want to do: move last album/photo image to the top of Drupal content on the main page. I tried to create content with the code with external image block but had the error:

Quote:
readfile(): URL file-access is disabled in the server configurat...

because DreamHost doesn't allowed allow_url_fopen (see here)
http://wiki.dreamhost.com/index.php/Allow_url_fopen

I tried to rewrite the code to:

Quote:
<?php
$g2_view = "imageblock.External";
$g2_blocks = "randomImage";
@readfile($_SERVER['DOCUMENT_ROOT']."/my_gallery_path/main.php");
?>

but it doesn't work (it accessfible, but shows only code as it is but not image), because in the file was spoken about include, but in the image block readfile is used. I also tried to change url to make it local, but doesn't help at all.

Any ideas how to show one or many blocks on the main page on the top?

 
kiz_0987

Joined: 2005-02-27
Posts: 189
Posted: Tue, 2005-11-29 17:35

You are having some strange error messages, that nobody else seems to have seen before. What did not work about v1.21?

If you want low risk I would use the enhanced version from http://drupal.org/node/32393 (kiz v1.1)

I am not sure how you can add a G2 photo to the top (header?) of the Drupal page. If you can put it in a node (eg a sticky node) that MichelleC's g2filter.module can help you here. She posted it here: http://gallery.menalto.com/forum/g2_integration?from=100&comments_per_page=50

 
Continental

Joined: 2004-06-14
Posts: 243
Posted: Tue, 2005-11-29 18:25

1/

Quote:
What did not work about v1.21?

None of images were shown in the everywhere from the gallery content. I can install this module again for some minutes and pm you a link.

2/
Currently I am using v1.1, it ok, but after some manulupation has script-error:
line 279
Char 3
Error: object required

Quote:
3. I ran my gallery+drupal now on gallery.module v1.1 from kiz and it works.
The only problem I saw from yesterday after I activated many new modules an web-error in script line 276 char 3 in the /site/gallery dir. I even don't know where to look it for?


Gallery version = 2.0.2 core 1.0.0.2
Drupal: 4.6.3
PHP version = 4.3.10 cgi
Webserver = Apache/1.3.33 (Unix) DAV/1.0.3 mod_fastcgi/2.4.2 mod_gzip/1.3.26.1a PHP/4.3.10 mod_ssl/2.8.22 OpenSSL/0.9.7e
Database = mysql 4.1.14-Debian_5-log
Toolkits = Exif, ImageMagick, NetPBM, Gd, Thumbnail, ArchiveUpload, SquareThumb
Operating system = Linux flower 2.4.29-grsec+w+fhs6b+gr0501+nfs+a32+++p4+sata+c4+gr2b-v6.189 #1 SMP Mon Feb 7 13:23:30 PST 2005 i686
Browser = Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Mailinfo [103985]; SV1; .NET CLR 1.1.4322)