#88002Disable Deprecation errors in Install tool AJAX Calls
Description
Hello there,
with the upcoming of TYPO3 9 many of our integrators struggle with deprecation warnings in AJAX calls that break the JSON results. This might happen for a number of reasons: old version of some extension that couldn’t be updated before the core was update and then has some deprecated function in it (i.e. using ExtensionManagementUtility::extRelPath, as it is the case in many extensions that were only compatible with TYPO3 7 for some versions. These are errors that an integrator might find hard to find themselves (and frankly, from my point of view, it’s to the dev to solve this kind of problems and not the integrator). So we have here an issue that directly punishes our integrators for something that they might not be able to fix, which feels a bit odd and unfair.
The workaround is fairly simple, just set $GLOBALS['TYPO3_CONF_VARS'][SYS']['displayErrors'] = 0; but it’s rather a nuisance and IMHO there is no sense to standard PHP Warnings in JSON views.
But I don’t like workarounds and prefer proper solutions that work for anybody :-)
Therefore I propose the following change:- use
ob_*functions to catch all warnings before starting the output of JSON responses in the Backend and Install tool - extend the JSON responses in the TYPO3 Backend to display errors of any kind (PHP or Runtime or wathever)
- The way I see it, these errors could be parsed and put into a list of errors in the JSON response and then given a severity in order to properly format the error somewhere in the backend
- output said errors in some meaningful way in the backend that does not lead to a failing state when PHP outputs some errors
Would you consider this feature for TYPO3 9 as a bugfix or at least as a feature for TYPO3 10?
Again, the main goal here is to improve the user experience of the integrators and developers taking part in updates and other
I’m keen on working on this if there is any interest.
Best Regards
Tizian
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.
Related issues 1
History 7
-
Tizian Schmidlin changed priority
Should haveMust have target version <span data-processor="relativetime" data-value="2019-04-12T15:51:04+00:00" > 04/12/19, 15:51 </span> -
Tizian Schmidlin changed description <span data-processor="relativetime" data-value="2019-04-12T15:51:21+00:00" > 04/12/19, 15:51 </span>
-
Tizian Schmidlin changed assigned to Xavier Perseguers <span data-processor="relativetime" data-value="2019-05-21T10:26:27+00:00" > 05/21/19, 10:26 </span>
-
Xavier Perseguers commented and changed removed the assignee <span data-processor="relativetime" data-value="2019-05-21T10:27:45+00:00" > 05/21/19, 10:27 </span>
-
Benni Mack changed Related to #58379 <span data-processor="relativetime" data-value="2020-01-13T16:41:53+00:00" > 01/13/20, 16:41 </span>
-
Susanne Moog changed category <span data-processor="relativetime" data-value="2020-03-25T14:14:17+00:00" > 03/25/20, 14:14 </span>
-
Benni Mack commented and changed status
NewClosed <span data-processor="relativetime" data-value="2026-11-09T12:25:16+00:00" > 11/09/26, 12:25 </span>This is no longer an issue: since TYPO3 v9.3 (E_USER_DEPRECATED excluded from exceptionalErrors in v9.2, dedicated deprecation logger in v9.3) deprecation notices are only written to the deprecation log and never output, so they cannot break JSON responses anymore. PHP warnings are logged and, in debug mode, shown as flash messages instead of being output. Only the Debug preset intentionally turns warnings and PHP deprecations into exceptions.
Closing as outdated. Please open a new issue with a concrete reproduction on a current version if JSON responses are still broken by PHP messages.
does not look like something I’m responsible for.