Opened 7 years ago

Closed 7 years ago

#1404 closed defect (fixed)

Keine Fehlermeldung wenn die Datenbank nicht verfügbar ist

Reported by: thomas.daeppen Owned by: michael.ritter
Priority: normal Milestone: Contrexx 3.1
Component: Core Version: 3.0.3
Severity: normal Keywords:
Cc:

Description

Es wird keine Fehlermeldung ausgeben, wenn Doctrine keine Verbindung zur Datenbank aufbauen kann.

Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42000] [1049] Unknown database 'contrex'' in config/doctrine.php:63
Stack trace:
#0 config/doctrine.php(63): PDO->__construct('mysql:dbname=co...', 'user', 'password', Array)
#1 core/initFrontend.php(72): include_once('config/doctrine.php')
#2 index.php(74): require_once('core/initFrontend.php')
#3 {main} thrown in doctrine.php on line 63

Siehe auch #1375
Siehe Fehlermeldungen von ADOdb (core/database.php)

Change History (2)

comment:1 Changed 7 years ago by michael.ritter

  • Milestone changed from Contrexx 3.0 SP5 to Contrexx 3.1
  • Owner changed from comvation to michael.ritter
  • Status changed from new to assigned

Since PDO throws an Exception when the connection cannot be established, this is fixed in 3.1. From 3.1 on, Contrexx shows offline.html if an uncaught Exception is detected...

comment:2 Changed 7 years ago by michael.ritter

  • Resolution set to fixed
  • Status changed from assigned to closed
Note: See TracTickets for help on using tickets.