Piwigo.org

You are not logged in. (Register / Login)

Announcement

  • Forum Index
  •  » Requests
  •  » Suggestion: Improved error messages on bad evironment (here:php-mysql)

#1 2012-05-02 11:48:02

grau
Member
Registered: 2012-05-02
Posts: 1

Suggestion: Improved error messages on bad evironment (here:php-mysql)

Hi folks,
new to piwigo (just installing right now) but I had an stupid error (me stupid - not app stupid) that took me ~ 1 hour to find which may be removed to save others the time :)

On a fresh box I forgott to install php-mysql. Everything else was ok. The Installatio just stopped without a message or anything. Going through the code I found this one:

$link = @mysql_connect($host, $user, $password);

in "functions_mysql.inc.php". Because there was no "mysql_connect" on my box this failed with exit. Because of the "@" there was no message. Because of both I got a whie screen.

Some sanity checks would have saved me a lot of time ^_^.

Offline

#2 2012-05-04 22:54:08

Tadjio
Member
Location: UK
Registered: 2012-05-02
Posts: 241

Re: Suggestion: Improved error messages on bad evironment (here:php-mysql)

grau wrote:

$link = @mysql_connect($host, $user, $password);

in "functions_mysql.inc.php". Because there was no "mysql_connect" on my box this failed with exit. Because of the "@" there was no message. Because of both I got a whie screen.

Some sanity checks would have saved me a lot of time ^_^.

I would support this request as I had exactly the same problem yesterday!

Offline

#3 2012-05-04 23:01:44

plg
Piwigo Team
Location: Paris, France, Europe
Registered: 2002-04-05
Posts: 11721
Website

Re: Suggestion: Improved error messages on bad evironment (here:php-mysql)

I agree.


Latest blog post on Piwigo.com: Piwigo 2.5 on Piwigo.com (March 7th, 2013)

Offline

  • Forum Index
  •  » Requests
  •  » Suggestion: Improved error messages on bad evironment (here:php-mysql)

Board footer

Powered by FluxBB

About this website · Donate · Contact Piwigo project © 2002-2013