Project

General

Profile

Actions

Bug #84236

closed

Uncaught exception in DataHandler

Added by Andrej K about 6 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
DataHandler aka TCEmain
Target version:
-
Start date:
2018-03-13
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
9
PHP Version:
Tags:
exception_handling
Complexity:
Is Regression:
Sprint Focus:

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) Apply patchset from https://review.typo3.org/#/c/56118/

2) Login to backend

3) Create new empty page and save it

Results

After these steps I receive following error:



Oops, an error occurred!

Argument 3 passed to TYPO3\CMS\Core\History\RecordHistoryStore::addRecord() must be of the type array, null given, called in C:\inetpub\wwwroot\typo3\sysext\core\Classes\DataHandling\DataHandler.php on line 7185 

And I have this in error log:



Core: Exception handler (WEB): Uncaught TYPO3 Exception: Argument 3 passed to TYPO3\CMS\Core\History\RecordHistoryStore::addRecord() must be of the type array, null given, called in C:\inetpub\wwwroot\typo3\sysext\core\Classes\DataHandling\DataHandler.php on line 7185 | TypeError thrown in file C:\inetpub\wwwroot\typo3\sysext\core\Classes\History\RecordHistoryStore.php in line 70. Requested URL: http://localhost/typo3/index.php?route=%%2Fajax%%2Frecord%%2Fprocess&token=e144167bd3bf0aa66ae3910e10253fb9296af95d

I have applied patchset from https://review.typo3.org/#/c/56118/ but there is now this error while processing data on MS SQL Server database.


Related issues 3 (0 open3 closed)

Related to TYPO3 Core - Bug #84219: Uncaught exception in DataHandler::postProcessDatabaseInsert()Closed2018-03-12

Actions
Related to TYPO3 Core - Bug #83994: $uid must be positive integer, 0 given when creating a new PageClosed2018-02-21

Actions
Related to TYPO3 Core - Bug #87750: Argument 3 passed to TYPO3\CMS\Core\DataHandling\History\RecordHistoryStore::addRecord() must be of the type arrayClosed2019-02-20

Actions
Actions

Also available in: Atom PDF