Bug #84219
closedUncaught exception in DataHandler::postProcessDatabaseInsert()
100%
Description
Description
Unable to manage/add/modify new pages due to uncaught exception while accessing MS SQL Server database.
Prerequisites
Environment is set up in following way:
- TYPO3 version: 9.1.0
- Webserver: Microsoft-IIS/10.0
- PHP version: 7.2.3
- Database: MS SQL Server 12.0.2000.8
- OS: Windows 10
- TYPO3 was installed using composer (typo3/cms)
- Microsoft Drivers for PHP for SQL Server (php_sqlsrv.dll) version 5.2.0-RC from here:
https://github.com/Microsoft/msphpsql/releases
Test
1) Install TYPO3 using environment above
2) Login to backend
3) Create new empty page and save it
Results
After these steps I receive following error:
Core: Exception handler (WEB): Uncaught TYPO3 Exception: Return value of TYPO3\CMS\Core\DataHandling\DataHandler::postProcessDatabaseInsert() must be of the type integer, string returned | TypeError thrown in file C:\inetpub\wwwroot\typo3\sysext\core\Classes\DataHandling\DataHandler.php in line 9124. Requested URL: http://localhost/typo3/index.php?route=%%2Frecord%%2Fedit&token=244dd0f4bd0acbab3d7ae01821f08c29f3c1cc8c&edit[tt_content][3]=new&defVals[tt_content][colPos]=0&defVals[tt_content][sys_language_uid]=0&defVals[tt_content][CType]=bullets&returnUrl=%%2Ftypo3%%2Findex.php%%3Froute%%3D%%252Fweb%%252Flayout%%252F%%26token%%3Db7999abfae4f530fd8b05f30ddb28eb54f06d840%%26id%%3D3%%26
I have also this similar error in error log:
Core: Exception handler (WEB): Uncaught TYPO3 Exception: Return value of TYPO3\CMS\Core\DataHandling\DataHandler::postProcessDatabaseInsert() must be of the type integer, string returned | TypeError thrown in file C:\inetpub\wwwroot\typo3\sysext\core\Classes\DataHandling\DataHandler.php in line 9124. Requested URL: http://localhost/typo3/index.php?route=%%2Fajax%%2Frecord%%2Fprocess&token=24719e5e66f374f01457e7fd20ec1414ed3caefc
Due to these DB processing errors I can't create new content on TYPO3.
Updated by Gerrit Code Review over 6 years ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/56118
Updated by Gerrit Code Review over 6 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/56118
Updated by Gerrit Code Review over 6 years ago
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/56118
Updated by Andrej K over 6 years ago
- Related to Bug #84236: Uncaught exception in DataHandler added
Updated by Gerrit Code Review over 6 years ago
Patch set 1 for branch TYPO3_8-7 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/56195
Updated by Susanne Moog over 6 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 7603c0f2e5ae4c6d6e4befe2ef0763bdd503a427.