Blank main.php after installation

Oliver Cruzcampo

Joined: 2008-03-15
Posts: 15
Posted: Tue, 2011-04-12 12:33

Hi guys,

I used to use Gallery2 for a couple of years before my website broke and I stopped using it. I then installed Gallery3 until I realized that version cannot be embedded in Drupal. :(

I now tried to reinstall Gallery2(same hoster and everything) and I get a blank main.php after the end of the installation. It only says "Error". I tried two ways: Direct FTP upload and also via the preinstaller. Both ways returned the same error. During the installation process everything worked fine, no warnings, errors - nothing.

Thanks in advance.


Gallery version (not just "2"): 2.3.1
PHP version (e.g. 5.1.6): 5.2.12
PHPInfo Link (see FAQ):
Webserver (e.g. Apache 1.3.33): Apache/2.2.14 (Ubuntu)
Database (e.g. MySql 5.0.32): 5.1
Activated toolkits (e.g. NetPbm, GD):
Operating system (e.g. Linux): Windows 7
Browser (e.g. Firefox 2.0): Firefox 4.0 /Opera 11.01

AttachmentSize
phpinfo.pdf156.45 KB
 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Tue, 2011-04-12 12:47

Although in my experience just plain error usually means DB connection error you won't know for sure until you put gallery into debug mode.
FAQ: How to set/use Gallery in debug mode?

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
Oliver Cruzcampo

Joined: 2008-03-15
Posts: 15
Posted: Tue, 2011-04-12 13:04

@suprsidr

I attached the error messages.

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Tue, 2011-04-12 13:19

gallery is trying to create directories in your g2data for cache, albums, module info...
chmod -R 0777 /path/to/g2data

FAQ: How can I fix the filesystem permissions of the Gallery storage folder?

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
Oliver Cruzcampo

Joined: 2008-03-15
Posts: 15
Posted: Tue, 2011-04-12 13:38

Thanks for the fast answer but the folder is set to 777.

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Tue, 2011-04-12 17:21