Project

General

Profile

Actions

Bug #22461

closed

RuntimeException thrown within the exception handler when wrong database credentials

Added by Patrick Broens over 14 years ago. Updated over 14 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2010-04-15
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.4
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Problem:
With patch #22420: Do not die, be the exception!, most of the die() functions are replaced with proper exceptions.

When the database credentials are wrong, a RuntimeException is thrown in class t3lib_db, function connectDB(). The exception handler itself tries to connect to the database as well, in t3lib_error_AbstractExceptionHandler function writeLogEntries(), using this same function connectDB(), for storage in the devlog and sys_log table. This causes recurring RuntimeExceptions, which leads to the Fatal error: Exception thrown without a stack frame in Unknown on line 0

Solution:
Wrap the part in t3lib_error_AbstractExceptionHandler > writeLogEntries() which handles the database actions in a try/catch block, where the catch is simply empty.

(issue imported from #M14117)


Files

20100415_RFC_14117.diff (2.03 KB) 20100415_RFC_14117.diff Administrator Admin, 2010-04-15 09:46
Actions #1

Updated by Patrick Broens over 14 years ago

Resolved in revision 7372

Actions

Also available in: Atom PDF