Project

General

Profile

Bug #87251

Updated by Ioulia Kondratovitch over 5 years ago

h3. Steps: 

 
 Upgrade from TYPO3 8 to TYPO3 9: 
 execute upgrade wizard SeparateSysHistoryFromSysLogUpdate 


 h3. Actual Result: 

 
 if for any reason value of log_data in the table sys_log is still NULL after processing the data, we get an exection and the script stops: 

 <pre><code class="php"> 
 Argument 3 passed to TYPO3\CMS\Core\DataHandling\History\RecordHistoryStore::addRecord() must be of the type array, boolean given, called in /srv/www/nginx/web/typo3/sysext/install/Classes/Updates/SeparateSysHistoryFromSysLogUpdate.php on line 165 
 </code></pre> 

 h3. Problem: 

 
 Function addRecord of typo3/sysext/core/Classes/DataHandling/History/RecordHistoryStore.php expects 3rd parameter to be array. NULL provided. 

 h3. Solution: 

 
 ensure that $logData is an array 

 h3. Comment: 

 
 I cannot provide matching DB-data from sys_log and sys_history to reproduce this issue, since i am working with a database with over 2 Milliens entrys in the sys_log table and it is not possible to find the record producing this error 
 

Back