Bug #49645
closedLogging PHP errors to sys_log table does not work
100%
Description
The default error handler does not write PHP errors to the sys_log table anymore.
The bug was introduced in changeset 3e309294309458279eef2adf08af6adb8ed4a867 when the link property of the DatabaseConnection was changed from public to private.
The TYPO3\CMS\Core\Error\ErrorHandler has a check for the link property which now returns false:
171 if (is_object($GLOBALS['TYPO3_DB']) && !empty($GLOBALS['TYPO3_DB']->link)) {
The one-liner fix would be to use the new method isConnected():
171 if (is_object($GLOBALS['TYPO3_DB']) && $GLOBALS['TYPO3_DB']->isConnected()) {
Updated by Alexander Opitz over 11 years ago
Hi,
do you want to bring this fix to gerrit, so it can be reviewed?
Updated by Gerrit Code Review over 11 years ago
- Status changed from New to Under Review
Patch set 1 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/21970
Updated by Robert Vock over 11 years ago
Ok, first time I used Gerrit :)
The change is available here: https://review.typo3.org/21970
Updated by Gerrit Code Review over 11 years ago
Patch set 1 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/22166
Updated by Gerrit Code Review over 11 years ago
Patch set 2 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/22166
Updated by Gerrit Code Review over 11 years ago
Patch set 1 for branch TYPO3_6-1 has been pushed to the review server.
It is available at https://review.typo3.org/22171
Updated by Gerrit Code Review over 11 years ago
Patch set 2 for branch TYPO3_6-1 has been pushed to the review server.
It is available at https://review.typo3.org/22171
Updated by Anonymous over 11 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 151b56f48a1f5575b151bcb210d788ffdb0c0bc5.
Updated by Gerrit Code Review over 11 years ago
- Status changed from Resolved to Under Review
Patch set 3 for branch TYPO3_6-1 has been pushed to the review server.
It is available at https://review.typo3.org/22171
Updated by Anonymous over 11 years ago
- Status changed from Under Review to Resolved
Applied in changeset 2cad42fa162ce811e11449f15b20dc5a681e025f.