blank modules page after adding gallery.module

mswnt

Joined: 2006-08-19
Posts: 3
Posted: Sat, 2006-08-19 08:52

Hello.

I have setup the following enviroment:

OpenSuSe Linux 10.0
Apache 2.0.54-10.5
PHP 5.0.4-9.13
mysql 4.1.13-3.6
Drupal 4.7.3
Gallery 2.1.2
Module Gallery 4.7.0

Drupal and Gallery are working fine separately.

I followed the instructions in "install.txt" from gallery.module. When I try to open the modules page in Drupal to configure/activate the gallery.module I get a blank page. When I look in the logs from Drupal I see the following error:

_________________________________________________________________________________________
details
Type php
Date Saturday, August 19, 2006 - 10:55
User WebAdmin
Location http://10.0.0.40/?q=admin/modules
Referrer
Message main(modules/gallery/gallery_base.inc) [function.main]: failed to open stream: No such file or directory in /srv/www/htdocs/modules/gallery/gallery.module on line 6.
Severity error
Hostname 10.0.0.23
_________________________________________________________________________________________

The following error is logged in the apache-logfile:

_________________________________________________________________________________________

[client 10.0.0.23] PHP Fatal error: main() [<a href='function.require'>function.require</a>]: Failed opening required 'modules/gallery/gallery_base.inc' (include_path='/usr/share/php5') in /srv/www/htdocs/modules/gallery/gallery.module on line 6
_________________________________________________________________________________________

I have already increased the memory limit for PHP. So this is not the cause for the problem. The folder for Gallery2 is named "Gallery2". So this is not the cause too.

I have not setup a custom Drupal-site. I use the default site. Could this be the cause for the error?

If someone could give me a solution or lead me to the correct trail, I would be realy happy!
I am beginner in Linux, apache and so on. So it might be also a misconfiguration somewhere outside Drupal/Gallery2.

Thanks in advance.

Andreas

 
kiz_0987

Joined: 2005-02-27
Posts: 189
Posted: Sat, 2006-08-19 13:01

It is looking for gallery_base.inc and not finding it. This is a required file for gallery.module. Is it present? Check to make sure that the permissions are correct (it must be readable).

 
mswnt

Joined: 2006-08-19
Posts: 3
Posted: Sat, 2006-08-19 15:29

Hello.

This is my understanding too. But the file is present. I also tried granting 777-rights - same error. Also I can open the file in the browser.

Andreas

 
mswnt

Joined: 2006-08-19
Posts: 3
Posted: Sun, 2006-08-20 11:56

Hello.

Got the solution from Antony in Drupals-Forum.

After adding the current directory into php.ini I can load the modules page and activate the gallery.module.

include_path='.:/usr/share/php5'

Andreas