Actions
Bug #67703
closedNo logging to sysLog in ExceptionHandler
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2015-06-23
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:
Description
The sysext/core/Classes/Error/AbstractExceptionHandler.php class has a writeLog method which should write new entries to the sys_log table. It seems this is broken.
Within the method there is a check for proper DB connection:
if (is_object($GLOBALS['TYPO3_DB']) && !empty($GLOBALS['TYPO3_DB']->link)) {
The second check for link will always fail as the link property of TYPO3\CMS\Core\Database\DatabaseConnection is protected.
Perhaps this was caused due to a visibility change?
This should be handled like in typo3/sysext/core/Classes/Error/ErrorHandler.php
if (is_object($GLOBALS['TYPO3_DB']) && $GLOBALS['TYPO3_DB']->isConnected()) {
Tested in TYPO3 CMS 6.2.12 and 7.3
Actions