Gallery 3 - Fatal Error After Installation

zarya

Joined: 2009-11-06
Posts: 2
Posted: Sat, 2009-11-07 17:02

This is a fresh install of Gallery 3, not an upgrade from the previous version.

Intially I loaded Beta-3, then tried the "latest version" as suggested in other posts and then tried Beta-2. All produced the same symptom.

In all cases, Gallery 3 connected to my database, populated it with fields and then produced a blank screen with "Fatal Error" in the title bar. The Gallery 3 log indicated an inability to execute the PHP "Show" command on the database.

After much head-scratching, perseverance, and some lateral thinking, I came up with this:

1 - To populate the database with fields requires my host to be identified to the setup program as "localhost:/tmp/mysql5.sock" in accordance with instructions from my provider.

2 - The setup program then provides the admin user name and password but, at the next stage, produces the Fatal Error blank screen.

3 - The setup process creates a file called "database.php" in the "var" subdirectory of Gallery 3. The file has an entry for the host name - "localhost:/tmp/mysql5.sock" as in 1 (above).

4 - When the entry is edited to read simply "localhost", Gallery 3 runs as expected.

Is this an issue with my host or something within Gallery 3?

Login or register to post comments
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 9266
Posted: Sat, 2009-11-07 18:31

Are you entering "localhost:/tmp/mysql5.sock" as the host name? If so, that's not going to work. Just use localhost

Ah, read further :)

It's not an issue with either your host or Gallery. Host name requires a valid, legal host name, localhost:/tmp/mysql5.sock is not a valid, legal host name. http://en.wikipedia.org/wiki/Hostname

That is, however, the host name (localhost) and the socket mysql is using on the server. Your host just gave you more information than you'd ever need for most (all?) web applications.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

Login or register to post comments