Whoops, looks like something went wrong.

Get help in the TYPO3 Documentation

If you need help solving this exception, you can have a look at the TYPO3 Documentation. There you can find solutions provided by the TYPO3 community. Once you have found a solution to the problem, help others by contributing to the documentation page.

Find a solution for this exception in the TYPO3 Documentation.

(1/1) #1476107295 TYPO3\CMS\Core\Error\Exception

PHP Warning: Undefined array key "uid" in /var/www/html/typo3/sysext/backend/Classes/Utility/BackendUtility.php line 1449

in /var/www/html/typo3/sysext/core/Classes/Error/ErrorHandler.php line 145
        }

        $message = self::ERROR_LEVEL_LABELS[$errorLevel] . ': ' . $errorMessage . ' in ' . $errorFile . ' line ' . $errorLine;
        if ($errorLevel & $this->exceptionalErrors) {
            throw new Exception($message, 1476107295);
        }

        $message = $this->getFormattedLogMessage($message);

at TYPO3\CMS\Core\Error\ErrorHandler->handleError(2, 'Undefined array key "uid"', '/var/www/html/typo3/sysext/backend/Classes/Utility/BackendUtility.php', 1449)
in /var/www/html/typo3/sysext/backend/Classes/Utility/BackendUtility.php line 1449
                    }
                    foreach ($altFields as $fN) {
                        $recordTitle = trim(strip_tags((string)($row[$fN] ?? '')));
                        if ($recordTitle !== '') {
                            $recordTitle = self::getProcessedValue($table, $fN, $recordTitle, 0, false, false, $row['uid']);
                            if (!($GLOBALS['TCA'][$table]['ctrl']['label_alt_force'] ?? false)) {
                                break;
                            }
                            $tA[] = $recordTitle;
at TYPO3\CMS\Backend\Utility\BackendUtility::getRecordTitle('tt_content', array('rowDescription' => '', 'pid' => 1, 'tstamp' => 1634557065, 'crdate' => 1634557065, 'cruser_id' => 1, 'deleted' => 0, 'hidden' => 0, 'starttime' => 0, 'endtime' => 0, 'fe_group' => '', 'sorting' => 128, 'editlock' => 0, 'sys_language_uid' => 0, 'l18n_parent' => 0, 'l10n_source' => 0, 'l10n_state' => null, 't3_origuid' => 406, 'l18n_diffsource' => '{"CType":"","colPos":"","header":"","header_layout":"","header_position":"","date":"","header_link":"","subheader":"","bodytext":"","image":"","imagewidth":"","imageheight":"","imageborder":"","imageorient":"","imagecols":"","image_zoom":"","layout":"","frame_class":"","space_before_class":"","space_after_class":"","sectionIndex":"","linkToTop":"","sys_language_uid":"","hidden":"","starttime":"","endtime":"","fe_group":"","editlock":"","categories":"","rowDescription":""}', 't3ver_oid' => 0, 't3ver_wsid' => 0, 't3ver_state' => '0', 't3ver_stage' => 0, 'CType' => 'textpic', 'header' => '', 'header_position' => '', 'bodytext' => '<p>WS</p>', 'bullets_type' => 0, 'uploads_description' => 0, 'uploads_type' => 0, 'assets' => 0, 'image' => 0, 'imagewidth' => 0, 'imageorient' => 0, 'imagecols' => 2, 'imageborder' => 0, 'media' => 0, 'layout' => 0, 'frame_class' => 'default', 'cols' => 0, 'space_before_class' => '', 'space_after_class' => '', 'records' => '', 'pages' => '', 'colPos' => 0, 'subheader' => '', 'header_link' => '', 'image_zoom' => 0, 'header_layout' => '0', 'list_type' => '', 'sectionIndex' => 1, 'linkToTop' => 0, 'file_collections' => '', 'filelink_size' => 0, 'filelink_sorting' => '', 'filelink_sorting_direction' => '', 'target' => '', 'date' => 0, 'recursive' => 0, 'imageheight' => 0, 'pi_flexform' => null, 'accessibility_title' => '', 'accessibility_bypass' => 0, 'accessibility_bypass_text' => '', 'selected_categories' => '0', 'category_field' => '', 'table_class' => '', 'table_caption' => null, 'table_delimiter' => 124, 'table_enclosure' => 0, 'table_header_position' => 0, 'table_tfoot' => 0, 'tx_impexp_origuid' => 0, 'categories' => 0, 'tx_styleguide_containsdemo' => '', 'tx_mask_checkbox_field' => 0, 'tx_mask_content_field' => 0, 'tx_mask_content_field_parent' => 0, 'tx_mask_date_default' => null, 'tx_mask_date_field' => null, 'tx_mask_datetime_field' => null, 'tx_mask_file_field' => 0, 'tx_mask_float_field' => 0.0, 'tx_mask_group_field' => null, 'tx_mask_inline_field' => 0, 'tx_mask_inline_in_palette' => 0, 'tx_mask_integer_field' => null, 'tx_mask_link_field' => null, 'tx_mask_radio_field' => 0, 'tx_mask_richtext_field' => null, 'tx_mask_select_field' => null, 'tx_mask_string_field' => null, 'tx_mask_text_field' => null, 'tx_mask_timestamp_field' => 0))
in /var/www/html/typo3/sysext/core/Classes/DataHandling/DataHandler.php line 7103
    {
        if ($GLOBALS['TCA'][$table]) {
            $liveUid = ($row['t3ver_oid'] ?? null) ? ($row['t3ver_oid'] ?? null) : ($row['uid'] ?? null);
            return [
                'header' => BackendUtility::getRecordTitle($table, $row),
                'pid' => $row['pid'] ?? null,
                'event_pid' => $this->eventPid($table, (int)$liveUid, $row['pid'] ?? null),
                't3ver_state' => BackendUtility::isTableWorkspaceEnabled($table) ? ($row['t3ver_state'] ?? '') : '',
            ];
at TYPO3\CMS\Core\DataHandling\DataHandler->getRecordPropertiesFromRow('tt_content', array('rowDescription' => '', 'pid' => 1, 'tstamp' => 1634557065, 'crdate' => 1634557065, 'cruser_id' => 1, 'deleted' => 0, 'hidden' => 0, 'starttime' => 0, 'endtime' => 0, 'fe_group' => '', 'sorting' => 128, 'editlock' => 0, 'sys_language_uid' => 0, 'l18n_parent' => 0, 'l10n_source' => 0, 'l10n_state' => null, 't3_origuid' => 406, 'l18n_diffsource' => '{"CType":"","colPos":"","header":"","header_layout":"","header_position":"","date":"","header_link":"","subheader":"","bodytext":"","image":"","imagewidth":"","imageheight":"","imageborder":"","imageorient":"","imagecols":"","image_zoom":"","layout":"","frame_class":"","space_before_class":"","space_after_class":"","sectionIndex":"","linkToTop":"","sys_language_uid":"","hidden":"","starttime":"","endtime":"","fe_group":"","editlock":"","categories":"","rowDescription":""}', 't3ver_oid' => 0, 't3ver_wsid' => 0, 't3ver_state' => '0', 't3ver_stage' => 0, 'CType' => 'textpic', 'header' => '', 'header_position' => '', 'bodytext' => '<p>WS</p>', 'bullets_type' => 0, 'uploads_description' => 0, 'uploads_type' => 0, 'assets' => 0, 'image' => 0, 'imagewidth' => 0, 'imageorient' => 0, 'imagecols' => 2, 'imageborder' => 0, 'media' => 0, 'layout' => 0, 'frame_class' => 'default', 'cols' => 0, 'space_before_class' => '', 'space_after_class' => '', 'records' => '', 'pages' => '', 'colPos' => 0, 'subheader' => '', 'header_link' => '', 'image_zoom' => 0, 'header_layout' => '0', 'list_type' => '', 'sectionIndex' => 1, 'linkToTop' => 0, 'file_collections' => '', 'filelink_size' => 0, 'filelink_sorting' => '', 'filelink_sorting_direction' => '', 'target' => '', 'date' => 0, 'recursive' => 0, 'imageheight' => 0, 'pi_flexform' => null, 'accessibility_title' => '', 'accessibility_bypass' => 0, 'accessibility_bypass_text' => '', 'selected_categories' => '0', 'category_field' => '', 'table_class' => '', 'table_caption' => null, 'table_delimiter' => 124, 'table_enclosure' => 0, 'table_header_position' => 0, 'table_tfoot' => 0, 'tx_impexp_origuid' => 0, 'categories' => 0, 'tx_styleguide_containsdemo' => '', 'tx_mask_checkbox_field' => 0, 'tx_mask_content_field' => 0, 'tx_mask_content_field_parent' => 0, 'tx_mask_date_default' => null, 'tx_mask_date_field' => null, 'tx_mask_datetime_field' => null, 'tx_mask_file_field' => 0, 'tx_mask_float_field' => 0.0, 'tx_mask_group_field' => null, 'tx_mask_inline_field' => 0, 'tx_mask_inline_in_palette' => 0, 'tx_mask_integer_field' => null, 'tx_mask_link_field' => null, 'tx_mask_radio_field' => 0, 'tx_mask_richtext_field' => null, 'tx_mask_select_field' => null, 'tx_mask_string_field' => null, 'tx_mask_text_field' => null, 'tx_mask_timestamp_field' => 0))
in /var/www/html/typo3/sysext/workspaces/Classes/Hook/DataHandlerHook.php line 730
            }
            $dataHandler->log($table, $id, DatabaseAction::PUBLISH, 0, SystemLogErrorClassification::MESSAGE, 'Publishing successful for table "' . $table . '" uid ' . $id . '=>' . $swapWith, -1, [], $dataHandler->eventPid($table, $id, $swapVersion['pid']));

            // Set log entry for live record:
            $propArr = $dataHandler->getRecordPropertiesFromRow($table, $swapVersion);
            if (($propArr['t3ver_oid'] ?? 0) > 0) {
                $label = $this->getLanguageService()->sL('LLL:EXT:workspaces/Resources/Private/Language/locallang_tcemain.xlf:version_swap.offline_record_updated');
            } else {
                $label = $this->getLanguageService()->sL('LLL:EXT:workspaces/Resources/Private/Language/locallang_tcemain.xlf:version_swap.online_record_updated');
at TYPO3\CMS\Workspaces\Hook\DataHandlerHook->version_swap('tt_content', 406, '413', object(TYPO3\CMS\Core\DataHandling\DataHandler), '', array())
in /var/www/html/typo3/sysext/workspaces/Classes/Hook/DataHandlerHook.php line 106
                break;
            case 'swap':
            case 'publish':
                $this->version_swap(
                    $table,
                    $id,
                    $value['swapWith'],
                    $dataHandler,
                    $comment,
at TYPO3\CMS\Workspaces\Hook\DataHandlerHook->processCmdmap('version', 'tt_content', 406, array('action' => 'publish', 'swapWith' => '413'), true, object(TYPO3\CMS\Core\DataHandling\DataHandler), false)
in /var/www/html/typo3/sysext/core/Classes/DataHandling/DataHandler.php line 3132
                    // process the command
                    $commandIsProcessed = false;
                    foreach ($hookObjectsArr as $hookObj) {
                        if (method_exists($hookObj, 'processCmdmap')) {
                            $hookObj->processCmdmap($command, $table, $id, $value, $commandIsProcessed, $this, $pasteUpdate);
                        }
                    }
                    // Only execute default commands if a hook hasn't been processed the command already
                    if (!$commandIsProcessed) {
at TYPO3\CMS\Core\DataHandling\DataHandler->process_cmdmap()
in /var/www/html/typo3/sysext/workspaces/Classes/Controller/Remote/ActionHandler.php line 480
        }

        $dataHandler = GeneralUtility::makeInstance(DataHandler::class);
        $dataHandler->start([], $cmdMapArray);
        $dataHandler->process_cmdmap();

        if ($dataHandler->errorLog) {
            $result['error'] = implode('<br/>', $dataHandler->errorLog);
        }
at TYPO3\CMS\Workspaces\Controller\Remote\ActionHandler->processTcaCmd(array('tt_content' => array(array('version' => array('action' => 'publish', 'swapWith' => '413')))))
in /var/www/html/typo3/sysext/workspaces/Classes/Controller/Remote/ActionHandler.php line 146
        } elseif ($parameter->action === 'discard') {
            $commands = $this->getFlushCommands($parameter->selection);
        }

        $result = $this->processTcaCmd($commands);
        $result['total'] = count($commands);
        return $result;
    }

at TYPO3\CMS\Workspaces\Controller\Remote\ActionHandler->executeSelectionAction(object(stdClass), null)
in /var/www/html/typo3/sysext/workspaces/Classes/Controller/AjaxDispatcher.php line 57
            $className = $this->classMap[$call->action];
            $method = $call->method;
            $parameters = $call->data;
            $instance = GeneralUtility::makeInstance($className);
            $results[] = $this->buildResultFromResponse($instance->$method(...$parameters), $call);
        }
        return new JsonResponse($results);
    }

at TYPO3\CMS\Workspaces\Controller\AjaxDispatcher->dispatch(object(TYPO3\CMS\Core\Http\ServerRequest))
in /var/www/html/typo3/sysext/backend/Classes/Http/RouteDispatcher.php line 91
        }
        $targetIdentifier = $route->getOption('target');
        $target = $this->getCallableFromTarget($targetIdentifier);
        $arguments = [$request];
        return $target(...$arguments);
    }

    /**
     * Wrapper method for static form protection utility
at TYPO3\CMS\Backend\Http\RouteDispatcher->dispatch(object(TYPO3\CMS\Core\Http\ServerRequest))
in /var/www/html/typo3/sysext/backend/Classes/Http/RequestHandler.php line 110
        // there are Core classes that need the Request object but do not get it handed in
        $this->resetGlobalsToCurrentRequest($request);
        try {
            // Check if the router has the available route and dispatch.
            return $this->dispatcher->dispatch($request);
        } catch (MissingRequestTokenException $e) {
            // When token was missing, then redirect to login, but keep the current route as redirect after login
            $loginUrl = $this->uriBuilder->buildUriWithRedirect(
                'login',
at TYPO3\CMS\Backend\Http\RequestHandler->handle(object(TYPO3\CMS\Core\Http\ServerRequest))
in /var/www/html/typo3/sysext/core/Classes/Middleware/ResponsePropagation.php line 34
{
    public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface
    {
        try {
            $response = $handler->handle($request);
        } catch (PropagateResponseException $e) {
            $response = $e->getResponse();
        }

at TYPO3\CMS\Core\Middleware\ResponsePropagation->process(object(TYPO3\CMS\Core\Http\ServerRequest), object(TYPO3\CMS\Backend\Http\RequestHandler))
in /var/www/html/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php line 172

                if (!$middleware instanceof MiddlewareInterface) {
                    throw new \InvalidArgumentException(get_class($middleware) . ' does not implement ' . MiddlewareInterface::class, 1516821342);
                }
                return $middleware->process($request, $this->next);
            }
        };
    }
}
at Psr\Http\Server\RequestHandlerInterface@anonymous