From df2432d1ab76e85994da2ddd95f30a423c814440 Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Wed, 15 Jan 2025 11:05:47 +0100 Subject: [PATCH] [BUGFIX] Fix error when copying a page When copying a page in TYPO3 v11.5.41, PHP 8.3.15 and flux 10.1.0 an exception occurs: > (1/1) TypeError > Cannot access offset of type string on string > in typo3/sysext/core/Classes/Database/Query/QueryBuilder.php line 1368 Thanks to the following blog post for the solution: https://blog.wappler.systems/typo3-error-cannot-access-offset-of-type-string-on-string-at-querybuilder-update-command/ Resolves: https://github.com/FluidTYPO3/flux/issues/2196 --- Classes/Integration/HookSubscribers/DataHandlerSubscriber.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/Integration/HookSubscribers/DataHandlerSubscriber.php b/Classes/Integration/HookSubscribers/DataHandlerSubscriber.php index 775ca8458..d56981ae2 100644 --- a/Classes/Integration/HookSubscribers/DataHandlerSubscriber.php +++ b/Classes/Integration/HookSubscribers/DataHandlerSubscriber.php @@ -163,7 +163,7 @@ public function processDatamap_afterDatabaseOperations($command, $table, $id, $f ) ) ); - DoctrineQueryProxy::executeQueryOnQueryBuilder($queryBuilder); + DoctrineQueryProxy::executeStatementOnQueryBuilder($queryBuilder); } static::$copiedRecords[$fieldArray['t3_origuid']] = true;