TYPO3 Exception 1476107941
Note
Below, the TYPO3 community may have provided additional information or solutions for this exception. However, these may or may not apply to your particular case. If you can provide more information, you should come back here and add your experience and solution steps to this issue once you have resolved it.
General TYPO3 troubleshooting tips can be found in the Troubleshooting section in the menu. You can also ask questions and receive support in the TYPO3 Questions category on talk.typo3.org.
To add your experience, click "Edit on GitHub" above and follow the "Edit on GitHub" workflow. Also check out our tip on Coding Style and reST.
[TYPO3 11.3] - [2021.08.13]
TYPO3 cannot configure Dependency Injection for the plugin controller.
Dependeny Injection may not be properly configured.
Make sure that either the affected class or all classes (_defaults
) have
autoconfigure: true
defined.
Bare minimum example:
services:
_defaults:
# ...
autoconfigure: true
# ...
# ...
See Configuration in TYPO3 Explained.
[TYPO3 LTS 10] - [2021.05.05]
Unable to call the controller configured in a plugin.
TYPO3 creates the wrong class object for the controller due to using only
the controller name (and not the fully qualified class name) in
configure
or
register
.
Incorrect example:
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'Examples', // $extensionName
'HtmlParser', // plugin name
// this is deprecated!
['ControllerName' => 'actionName'],
// this is deprecated!
['ControllerName' => 'actionName']
);
Use fully qualified class names as array keys in arguments
$controller
and
$non
in
configure
or
register
.
More details are in the changelog Deprecation: #87550 - Use controller classes when registering plugins/modules:
Correct example:
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'Examples', // $extensionName
'HtmlParser', // plugin name
// controller class name => action name
[\T3docs\Examples\Controller\HtmlParserController::class => 'search',],
[\T3docs\Examples\Controller\HtmlParserController::class => 'search',]
);