drupal - gallery.module

ichiro
ichiro's picture

Joined: 2005-09-15
Posts: 50
Posted: Mon, 2005-11-28 18:30

what could be possible causes of the image not showing on drupal main page? as you can see the image's name and date are there. (g2 standalone works fine. this problem occurred after something was either checked or unchecked in one of the adminstration pages (g2 or drupal).)
like this:

[img]http://www.math.fsu.edu/~trogers/images/random_no.png[/img]

thanks.

the only way i have to trouble shoot and to fix is to constantly do complete new installs and start ticking stuff in the admins. the problem seems to be when THIS happens i cannot get it back... weird.

ichiro

Gallery version = 2.0.1
Drupal 4.6.3
PHP version = 5.0.4 apache
Webserver = Apache/1.3.33 (Darwin) PHP/5.0.4
Database = mysql 4.1.13a
Toolkits = ArchiveUpload, Exif, ImageMagick, Thumbnail, Ffmpeg, Gd, Dcraw

 
kiz_0987

Joined: 2005-02-27
Posts: 189
Posted: Mon, 2005-11-28 20:07

What are the links being set for the image? Please post an example (view the html source).

 
ichiro
ichiro's picture

Joined: 2005-09-15
Posts: 50
Posted: Mon, 2005-11-28 22:16

well, i REALLY appreciate hearing from you! :)

i'm doing a new install as i type. :( if i get that again, and i have seen it many times, i will post the links from the page source. i can add about that, that when i clicked on the image (random block in drupal) i am taken to what should be the embedded g2 but where it would normally show up it says[ in the drupal page] --Page Not Found. but please nevermind this for now? and read on...

i have dropped your gallery.module and the css file into the modules folder.

do i need to add the lines to main.php of gallery2? and do they go AFTER the lines you reference (approx. line 315)? that is they do not replace?

can you tell me please (or point me, please) about the users and their relations from drupal to g2? for example, do i need to make my first accounts in each program the same username and passwd? ( i believe from my previous efforts you don't, but i'm not sure.)

i have also been unsure as to whether the g2data folder can be outside the site root in an embedded effort, i.e. drupal.

THANKS THANKS THANKS

ichiro

Gallery version = 2.0.1
Drupal 4.6.3
PHP version = 5.0.4 apache
Webserver = Apache/1.3.33 (Darwin) PHP/5.0.4
Database = mysql 4.1.10a
Toolkits = ArchiveUpload, Exif, ImageMagick, Thumbnail, Ffmpeg, Gd, Dcraw

 
ichiro
ichiro's picture

Joined: 2005-09-15
Posts: 50
Posted: Tue, 2005-11-29 00:13

i'm back.

strangeness. i installed g2 create username admin with passwd.
(g2data dir is outside site.)

turned ON image block, removed image block from sidebar [default].
created the first album and loaded up 4 sample images.

g2 works fine.
===
installed drupal with kiz's updated gallery.module at install.

created first account with username admin with different passwd than g2's admin.
logged in, all seems well...

turned on Gallery module and Gallery navigation.
went to settings > gallery and set path the gallery2 dir: gallery2/ [default].

block appears on reload with no image --as pictured in the original post in this thread.

went back to gallery2 to make sure image block was on, no images are showing up in gallery now... just like in drupal.

trying to login to gallery2 takes me to a drupal page with Page Not Found in the page.

reinstalling. (when i say "reinstalling" i mean everything from scratch, dbs and all.)

ichiro

Gallery version = 2.0.1
Drupal 4.6.3
PHP version = 5.0.4 apache
Webserver = Apache/1.3.33 (Darwin) PHP/5.0.4
Database = mysql 4.1.10a
Toolkits = ArchiveUpload, Exif, ImageMagick, Thumbnail, Ffmpeg, Gd, Dcraw

 
kiz_0987

Joined: 2005-02-27
Posts: 189
Posted: Tue, 2005-11-29 00:16

Please send an example link.

 
ichiro
ichiro's picture

Joined: 2005-09-15
Posts: 50
Posted: Tue, 2005-11-29 04:00

i reinstalled and it's working.

i logged in to drupal once or twice, eventually i logged into drupal and it said i needed to configure my embedded gallery --i did nothing before that, it WAS configured
after that, i cannot see an embedded gallery from the admin pages, but i can when logged out.
what could cause that? here is what the error log said:
[img]http://www.math.fsu.edu/~trogers/images/errors.jpg[/img]

also, i'd like to know how to get rid of the file name being used like here:
[img]http://www.math.fsu.edu/~trogers/images/imagename.jpg[/img]
this "name" is also put in the html "title" area, which is undesirable also.

whatever ways there are to modulate, i.er. stop all that that, from any of the admins --i haven't found it or i'd like to know.

p.s. anyone know where there are any docs that talk about the registration processes when g2 is embedded into drupal 4.6.3x?

ichiro

Gallery version = 2.0.1
Drupal 4.6.3
PHP version = 5.0.4 apache
Webserver = Apache/1.3.33 (Darwin) PHP/5.0.4
Database = mysql 4.1.10a
Toolkits = ArchiveUpload, Exif, ImageMagick, Thumbnail, Ffmpeg, Gd, Dcraw

 
ichiro
ichiro's picture

Joined: 2005-09-15
Posts: 50
Posted: Tue, 2005-11-29 05:21

more questions, perhaps repeating myself:

when i login to drupal i get this error:

[img]http://www.math.fsu.edu/~trogers/images/login1.jpg[/img]
[img]http://www.math.fsu.edu/~trogers/images/login_error.jpg[/img]

ichiro

Gallery version = 2.0.1
Drupal 4.6.3
PHP version = 5.0.4 apache
Webserver = Apache/1.3.33 (Darwin) PHP/5.0.4
Database = mysql 4.1.10a
Toolkits = ArchiveUpload, Exif, ImageMagick, Thumbnail, Ffmpeg, Gd, Dcraw

 
kiz_0987

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

Which version of gallery.module are you using?

Are the admin user names in Drupal and G2 different?

I do not recommend reinstalling again. This should work without needing to do that. I am surprised that each time you reinstall something else seems to break. Presumably each time you do it you are changing the steps or the versions that you use.

 
ichiro
ichiro's picture

Joined: 2005-09-15
Posts: 50
Posted: Tue, 2005-11-29 18:49

i have two different usernames and passwds for each --the g2 has "admin" as its username, drupal uses my real first name.
both have my personal mysql user as their logins to their respective dbs.

i'm using the same version each time of the available stable g2 (2.0.1) and drupal 4.6.3 --i use the same tarballs each time.
i'm using your gallery.module "kiz0987.tar". i drop those 2 files in from the start so there is never the other ".old" one present at all.
(i add the line after the lines you mention in your instructions to g2's main.php.)

also, i always turn on both blocks i see available through your gallery.module (the old one has only one) --Gallery and Gallery Navigation... i see the configs of each but i only ever see one rendering of anything in my drupal and that's random image, so i'm not sure what the "Navigation" part is or if it's should "show" anything. perhaps it is just a splitting up of config info for module?

each time i install i do less, actually. yes i believe that there should be nothing i can "tick on or off" in either admin that i couldn't "tick back" and regain whatever breaks, but it seems not to work out that way. :(

for example, i haven't yet been able to figure out if the g2 registration module needs to be on, that is, i always have it on at first but i tried to turn it off once --that's just an example. plus, i still don't know how the 2 work together (or not) for registration purposes. continuing....

the above error messages are in order, i.e., first the login error (immediately above) then the initialize error --i believe there's one more after that, but i believe both the 2nd and 3rd are because of the login failure.

another thing i have had no success with except in a g2 only install is having my g2data dir outside of the gallery2 dir. for all my installs with drupal i always have it inside the gallery2 dir. should it work outside as it does with g2 alone? (nowhere in drupal does it ask for the location of the g2data dir (just checking ;).) only g2 ask for that location info and as i said it works for g2 alone.

thanks!!!

p.s. i'm not installing again at this point. if i can make g2 embed come back into the (admin) logged in area, plus i;d lime to get some understanding of how the two handle registrations together before i go poking at it! i've seen threads on it but have never really gleaned what's up for sure, so i'm left to experiment and wind-up... where i am. :) in the end i hope to know what causes things so i can fix it if it breaks... and again that is all GUI user/admin stuff, afaik.

ichiro

Gallery version = 2.0.1
Drupal 4.6.3
PHP version = 5.0.4 apache
Webserver = Apache/1.3.33 (Darwin) PHP/5.0.4
Database = mysql 4.1.10a
Toolkits = ArchiveUpload, Exif, ImageMagick, Thumbnail, Ffmpeg, Gd, Dcraw

 
kiz_0987

Joined: 2005-02-27
Posts: 189
Posted: Tue, 2005-11-29 22:52

Having 2 different usernames for your G2 and Drupal admins will cause an issue in both the CVS version and kiz0987_v1.1. There is a patch (for the CVS version) at http://drupal.org/node/35126 . This may need to be manually applied for kiz0987_v1.1 (which is the version I suggest you use). If you open the patch you'll see it is a single change.

The G2 registration module does not need to be on, and you definitely should not use it. Once G2 is embedded in Drupal, all the user changes and all admin tasks should be done through Drupal. When a Drupal user is created, a G2 user is automatically created -- job done.

G2 can be embedded and still have its files outside of your web directory. I have done this and needed to do nothing special whatsoever.

 
ichiro
ichiro's picture

Joined: 2005-09-15
Posts: 50
Posted: Wed, 2005-11-30 01:23

GREAT! now i some solid info!!! thanks so much!

should the passwds be identical as well... i would think so, but i'd like confirmation... so i can mark it up as "fact."
i remember going through the issues of different usernames before, guess i had forgotten... easy to do when get mixed results! so my bad there.

and my bad again i missed (this time) using the updated 1.1 of your module!

great info on the reg process, thanks... marked OFF!!!

ok, i'm going in [again]! ;) well armed this time!

THANKS

ichiro

Gallery version = 2.0.1
Drupal 4.6.3
PHP version = 5.0.4 apache
Webserver = Apache/1.3.33 (Darwin) PHP/5.0.4
Database = mysql 4.1.10a
Toolkits = ArchiveUpload, Exif, ImageMagick, Thumbnail, Ffmpeg, Gd, Dcraw

 
ichiro
ichiro's picture

Joined: 2005-09-15
Posts: 50
Posted: Wed, 2005-11-30 06:50

where is the most recent gallery.module --1.1, that doesn't need patching? or where is the one i should use if both admin users are named identically. D'OH!

NEVERMIND, found it here: http://drupal.org/node/32393 at post #29.

ichiro

Gallery version = 2.0.1
Drupal 4.6.3
PHP version = 5.0.4 apache
Webserver = Apache/1.3.33 (Darwin) PHP/5.0.4
Database = mysql 4.1.10a
Toolkits = ArchiveUpload, Exif, ImageMagick, Thumbnail, Ffmpeg, Gd, Dcraw