This is simply a minor check missing in the code and will affect only a minimal of users.

This scenario happens on my test machine, and you'll see why. I take my production server and copy all files and the database, but NOT the gallery files. Everything is fine. For example, the block "image block" is not there, since the gallery is in an error state. Going on the gallery page give an embedded white page, witch is ok too I guess. But when I click on logout, I get this.

"Fatal error: require_once() [function.require]: Failed opening required '/path production server/gallery2/embed.php' (include_path='.:/usr/share/php:/usr/share/pear') in /path test server/sites/all/modules/gallery/gallery_base.inc on line 48"

Of course, deactivating the gallery module remove this error.

Comments

profix898’s picture

Status: Active » Fixed

OK, I have added a 'is_readable' check for embed.php on logout. However, the clean way is to simply set the 'gallery_valid' variable to FALSE.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.