Gallery 1.4.3-pl1 and phpBB 2.0.8 - Blank page problem

krow40

Joined: 2004-05-11
Posts: 2
Posted: Tue, 2004-05-11 12:44

Hi

I've taken the following steps to install Gallery with phpBB:

  • Existing phpBB 2.0.8 in public_html/php/BB2/ works fine.
  • Installed Gallery 1.4.3-pl1 in public_html/php/gallery/, selecting the phpBB2 integration option
  • I can go to php/gallery/albums.php, log in as admin using the password I made while installing Gallery, and everything works. I can upload photos, etc.
  • I uploaded modules.php into public_html/php/BB2/, created the directory public_html/php/BB2/modules/, and made a symlink from the modules directory to my gallery directory.
  • I carefully modified my phpBB2 files as it says in phpBB2-manual-changes.txt

The problems I have are:

  • When I go to php/gallery/index.php, I get a completely blank page.
  • When I click on the Gallery icon in my phpBB2 forum, it takes me to the url:
    php/BB2/modules.php?op=modload&name=gallery&file=index
    and the page is completely blank (if I do view source, it's just an empty file).

I'd really appreciate any help you can give, I've seen gallery and phpBB2 integration working on other sites and it looks brilliant!

Thanks in advance

Eric[/]

[/]

 
krow40

Joined: 2004-05-11
Posts: 2
Posted: Tue, 2004-05-11 22:59

Further to my original post, I think I've found the cause of this problem.

Gallery relies heavily on the __FILE__ constant. I added lots of print statements, and found that __FILE__ is often wrong, making Gallery fail to include files (init.php for example). On Google, I found bug #13936 in PHP:

http://bugs.php.net/bug.php?id=13936

Although the bug is closed, there's a comment saying it still affects PHP 4.3.5 on Solaris 7. My host has PHP 4.2.3 and Solaris 5.8. I'm going to try and fix this by modifying my copy of Gallery to use a value in config.php instead of __FILE__.

Hopefully this info will be helpful to other people using phpBB2 integration on Solaris...

Eric