Skip to content

Commit 5e6bac4

Browse files
committed
[FIX] FATAL errors on low level processes
Fixes FATAL errors on: * `typo3 extension:setup` command * `typo3 cache:flush` command * BE->Maintenance->flush cache action Relates: #4519
1 parent ae23ff4 commit 5e6bac4

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

Classes/Domain/Index/Queue/UpdateHandler/DataUpdateHandler.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -557,8 +557,8 @@ protected function updateCanonicalPages(int $pageId): void
557557
*/
558558
protected function getValidatedPid(string $table, int $uid): ?int
559559
{
560-
$pid = $this->dataHandler->getPID($table, $uid);
561-
if ($pid === false) {
560+
$pid = (int)(BackendUtility::getRecord($table, $uid, 'pid', '', false)['pid'] ?? 0);
561+
if ($pid === 0) {
562562
$message = 'Record without valid pid was processed ' . $table . ':' . $uid;
563563
$this->logger->warning($message);
564564
return null;

Classes/IndexQueue/RecordMonitor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ public function processDatamap_afterDatabaseOperations(
139139

140140
$recordPid = $fields['pid'] ?? null;
141141
if (is_null($recordPid) && MathUtility::canBeInterpretedAsInteger($recordUid)) {
142-
$recordInfo = $tceMain->recordInfo($table, (int)$recordUid);
142+
$recordInfo = BackendUtility::getRecord($table, (int)$recordUid, '*', '', false);
143143
if (!is_null($recordInfo)) {
144144
$recordPid = $recordInfo['pid'] ?? null;
145145
}

Classes/ViewHelpers/SearchFormViewHelper.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,8 @@ public function initializeArguments(): void
8282
* Renders search form-tag
8383
*
8484
* @throws AspectNotFoundException
85-
* @noinspection PhpMissingReturnTypeInspection
8685
*/
87-
public function render()
86+
public function render(): string
8887
{
8988
/** @var RequestInterface $request */
9089
$request = $this->renderingContext->getAttribute(ServerRequestInterface::class);

0 commit comments

Comments
 (0)