Bug #98306
Updated by Simon Schaufelberger about 2 years ago
After creating a new extension by Extension Builder, the TYPO3 page module gives this error: <pre> (1/1) #1476107295 TYPO3\CMS\Core\Error\Exception PHP Warning: Undefined array key "tt_content_defValues." in /var/www/html/sources/typo3_src-11.5.14/typo3/sysext/backend/Classes/Controller/ContentElement/NewContentElementController.php line 373 </pre> NewContentElementController.php: <pre> <code class="php"> protected function getWizardItem(array $itemConf): array { $itemConf['title'] = $this->getLanguageService()->sL($itemConf['title']); $itemConf['description'] = $this->getLanguageService()->sL($itemConf['description']); $itemConf['saveAndClose'] = (bool)($itemConf['saveAndClose'] ?? false); $itemConf['tt_content_defValues'] = $itemConf['tt_content_defValues.']; unset($itemConf['tt_content_defValues.']); return $itemConf; } </code> </pre> Bug fix: <pre> <code class="php"> $itemConf['tt_content_defValues'] = $itemConf['tt_content_defValues.'] ?? []; </code> </pre> <pre> (1/1) #1476107295 TYPO3\CMS\Core\Error\Exception PHP Warning: Undefined array key "select_key" in /var/www/html/sources/typo3_src-11.5.14/typo3/sysext/backend/Classes/Controller/ContentElement/NewContentElementController.php line 429 </pre> <pre><code class="php"> if (is_array($GLOBALS['TCA']['tt_content']['columns'][$fN])) { </code></pre> bugfix: <pre><code class="php"> if (isset($GLOBALS['TCA']['tt_content']['columns'][$fN]) && is_array($GLOBALS['TCA']['tt_content']['columns'][$fN])) { </code></pre>