Skip to content

Add relation modal does not work #214

@fnagel

Description

@fnagel

When using the fe_users table module and trying to add another usergroup (using the plus icon) the modal throws an exception:

image

TYPO3 11.5.19 and 7acad28

Stack trace:


(1/1) #1385554481 Exception

Does the field really exist? No TCA entry found for field "usergroup" for table "fe_groups"
in /var/www/html/web/typo3conf/ext/vidi/Classes/Tca/TableService.php line 444

                'Does the field really exist? No TCA entry found for field "%s" for table "%s"',
                $fieldName,
                $this->tableName
            );
            throw new \Exception($message, 1385554481);
        }


        if (empty($this->instances[$fieldName])) {

at Fab\Vidi\Tca\TableService->field('usergroup')
in /var/www/html/web/typo3conf/ext/vidi/Classes/Controller/ContentController.php line 324

                $message = sprintf('I could not retrieved content object of type "%s" with identifier %s.', $dataType, $identifier);
                throw new \Exception($message, 1402350182);
            }

            $relatedDataType = Tca::table($dataType)->field($fieldName)->getForeignTable();

            // Initialize the matcher object.
            /** @var Matcher $matcher */
            $matcher = GeneralUtility::makeInstance(Matcher::class, [], $relatedDataType);

at Fab\Vidi\Controller\ContentController->editAction('usergroup', array('uid' => '104'), false)
in /var/www/html/web/typo3/sysext/extbase/Classes/Mvc/Controller/ActionController.php line 575

        }
        $validationResult = $this->arguments->validate();
        if (!$validationResult->hasErrors()) {
            $this->eventDispatcher->dispatch(new BeforeActionCallEvent(static::class, $this->actionMethodName, $preparedArguments));
            $actionResult = $this->{$this->actionMethodName}(...$preparedArguments);
        } else {
            $actionResult = $this->{$this->errorMethodName}();
        }


Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions