Bug #54222

No user readable error message for missing database

Added by Christopher Hlubek over 1 year ago. Updated 10 months ago.

Status:Closed Start date:2013-12-06
Priority:Should have Due date:
Assigned To:- % Done:

0%

Category:-
Target version:-

Description

If a database is configured but not existing a request to the frontend causes a cryptic stacktrace:

Uncaught Exception in Flow
#1297759968: Exception while property mapping for target type "TYPO3\TYPO3CR\Domain\Model\Node", at property path "": The database which was specified in the configuration does not exist.
More information

TYPO3\Flow\Property\Exception thrown in file
/Users/hlubek/Dev/Neos/TYPO3-Neos-master/Data/Temporary/Development/Cache/Code/Flow_Object_Classes/TYPO3_Flow_Property_PropertyMapper.php in line 119.
Reference code: 20131206112950f5b241

Nested Exception
#1049: The database which was specified in the configuration does not exist.
More information

TYPO3\Flow\Persistence\Doctrine\Exception\DatabaseConnectionException thrown in file
/Users/hlubek/Dev/Neos/TYPO3-Neos-master/Data/Temporary/Development/Cache/Code/Flow_Object_Classes/TYPO3_Flow_Persistence_Doctrine_Query.php in line 159.
Reference code: 201312061129503b3954

Go to the FORGE issue tracker and report the issue - if you think it is a bug!

It seems to be caused by the property mapping nesting the underlying DatabaseException which won't be displayed using a nice exception handler then.

Screenshot 2014-10-01 22.01.41.png - new error message (64 kB) Jonas Renggli, 2014-10-01 22:02

History

#1 Updated by Jonas Renggli 10 months ago

In Neos 1.1 a beautiful error message will be shown

Database Error
Sorry, we detected an error with your database. Check your logfiles in Data/Logs/* for more information.

You might want to configure or check your database configuration in the setup.

Go to setup

Also available in: Atom PDF