Hi!!!
I have a problem with the gallery module, I copy the module to the modules directory everything is fine but when I try to add in the block the gallery image block seems to be something wrong because after this the site goes down because a php error... and I have to erase the gallery module and copy again... I dont know what seem to be the problem...I was looking in the handbook but didnt found nothing. My second question is that once that I have the gallery I cant find the setting so I can upload the images.... I hope anyone could help me to solve this problems.. thanks a lot.

Big_B@ng

Comments

zach harkey’s picture

1) Did you install the stand alone gallery application first? This may seem silly but rule out the obvious first.

2) If/when you did, did you by any chance change the name of its directory? It must be installed into a directory named "gallery2" because references to it are hard hard coded into the gallery module.

3) Can you access the stand alone version directly, e.g. example.com/gallery2/?

4) Did activate the Gallery Navigation block? Without it you can't access the settings.

5) What happens when you *only* activate the Gallery Navigation block and none of the other gallery image blocks? I read somewhere about people complaining about a buggy block.

: z

big_bang2k’s picture

1)Did you install the stand alone gallery application first? This may seem silly but rule out the obvious first.

Yes I install fist

2) If/when you did, did you by any chance change the name of its directory? It must be installed into a directory named "gallery2" because references to it are hard hard coded into the gallery module.

the first time I remeber that I change the name but when I copy the module again everything is default now.

3) Can you access the stand alone version directly, e.g. example.com/gallery2/?

I cant access I receive the message of page not found

4) Did activate the Gallery Navigation block? Without it you can't access the settings.

Yes I activate the Gallery Navegation block, but when I try to activate Gallery Image block I receive the error and I have to delete the module

5) What happens when you *only* activate the Gallery Navigation block and none of the other gallery image blocks? I read somewhere about people complaining about a buggy block.

I have an error message.

well I dont know what could be wrong.... I wanna make a photo gallery but I dont even know where I have to upload the photos or how... well thanks for the reply and I hope you can still help me..

Big_Bang

zach harkey’s picture

Your problem doesn't sound like it has anything to do with drupal. The first thing you need to do, before you worry about drupal, is to get gallery installed and working on its own. If you are having trouble getting it installed ask around at the g2 forums. The people over there are extremely helpful.

Oh yeah, I forgot to ask, are you sure you are using G2 and not the regular gallery? THe module only works with gallery 2.

: z

big_bang2k’s picture

I reinstall the hole drupal and now is working everything thanks for the help

mimetic’s picture

I have installed Gallery2, it works, it's in the right place, etc.

The module worked the first time...that is, it didn't crash Drupal. Now it does. The problem is around the "relative path to Gallery2", which is set to "gallery2/". Now, from mysite.com/drupal to mysite.com/gallery2 that isn't the right relative path...I didn't install g2 inside Drupal.
First, I deleted the variable in the mysql 'variable' table that contained the gallery path, since I couldn't change anything without doing that.

Then, I checked what the code was doing, and it says:
Base_url = http://localhost/~dgross/drupal
Looking for "embed.php" at gallery2//embed.php

warning: _gallery_init(gallery2//embed.php): failed to open stream: No such file or directory in /Volumes/Documents/Users/dgross/Sites/drupal/modules/gallery.module on line 241.
warning: _gallery_init(): Failed opening 'gallery2//embed.php' for inclusion (include_path='.:/usr/local/php/lib/php') in /Volumes/Documents/Users/dgross/Sites/drupal/modules/gallery.module on line 241.

Fatal error: Undefined class name 'galleryembed' in /Volumes/Documents/Users/dgross/Sites/drupal/modules/gallery.module on line 258

**
Well, I'm able to get rid of the above errors by hard-coding in the actual path to embed.php, but then $galleryDir isn't set right, and it still fails:
Not Found

The requested URL /~dgross/drupal/install/ was not found on this server.

I'm sure there's a quick fix to this path problem.

----
David I. Gross, photographer
www.mimetic.com
www.frontline-photos.com
email: dgross@mimetic.com

raverX’s picture

If you read through the Gallery module "issues" threads, there are 2 fixes that need to be made to the module to make it work...

Additionally, with regard to the problem you are having, there is no error checking on the settings for gallery when you enter the invalid path of the gallery... instead of telling you it can't find the directory, it borks with the error message you have received..

I've modified gallery.module with the help from the forums plus added file_exists() checking on the settings.. A copy of my changes are available here: http://www.raverx.org/modules/gallery/gallery.txt

Try this and replace your existing gallery.module with this one (rename gallery.txt to gallery.module) - it should fix most the problems

If gallery still doesn't work, you either have relative path incorrect, permissions wrong or something else.. You are using latest CVS of Gallery2 yes?

the relative path should be for example

drupal runs out of /home/httpd/vhosts/domain.com/httpdocs/
and gallery out of /home/httpd/vhosts/domain.com/httpdocs/gallery2

then relative path is gallery2/

if drupal runs out of /home/httpd/vhosts/domain.com/httpdocs/drupal
and gallery as above

then relative path would be ../gallery2/

it is the file system path, not the web site path - as the function uses an include to include the embed.php file, and this is done on a filesystem level..

oh.. another comment from the gallery forum, your admin account in gallery and drupal must be different name, or it stuffs up..

hope this helps..

..:: phpqld.org | ravesafe.com | raverx.org ::..

deathguppie’s picture

Man, thanks it no longer poops out on me. But I still don't see nothin.

I thought I would see a block but I don't.

I will try messing with block settings...

Edit:

Nope. I can't see anything. It doesn't crap out but it doesn't do anything. Kind of a lame excersise if it doesn't do anything.

http://seaburn.org/drupal-4.6.2/

I read the docs.. go figure..

grantiago’s picture

I had this same problem. thanks all for the help. put in the hack (thanks raverX) then I changed my admin name in the g2 db to something different than my drupal admin name. this cured the problem.

works fine now!!!