Actions
Bug #91239
closedClass does not exist. Reflection failed.
Status:
Rejected
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2020-04-29
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
10
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
The error comes up on a non composer installation where the TYPO3 version is 10.4.1.
The following code creates a reflection failed error in the frontend:
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'Timelog',
'Taskpanel',
[
'Task' => 'list,createBatch,error',
'Project' => 'list'
],
[
'Task' => 'list,createBatch,error',
'Project' => 'list'
]
);
The following code works:
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'Buepro.Timelog',
'Taskpanel',
[
'Task' => 'list,createBatch,error',
'Project' => 'list'
],
[
'Task' => 'list,createBatch,error',
'Project' => 'list'
]
);
The exact error code is:
(1/2) #1278450972 TYPO3\CMS\Extbase\Reflection\Exception\UnknownClassException
Class Timelog\Controller\TaskController does not exist. Reflection failed.
Updated by Alexander Schnitzler over 4 years ago
- Status changed from New to Rejected
The syntax in use is not correct. Please have a look at the following links:
- https://docs.typo3.org/c/typo3/cms-core/master/en-us/Changelog/10.1/Deprecation-88995-CallingRegisterPluginWithVendorName.html
- https://docs.typo3.org/c/typo3/cms-core/master/en-us/Changelog/10.0/Deprecation-87550-UseControllerClassesWhenRegisteringPluginsmodules.html
Example:
https://github.com/TYPO3/TYPO3.CMS/blob/master/typo3/sysext/felogin/ext_localconf.php#L31
Updated by Daniel Brauer about 2 years ago
just made an update from 10 to 11, it works like this:
V10:
'Product', ['Product' => 'list, show'],
V11:
'Product', [\WAC\WaconProducts\Controller\ProductController::class => 'list, show'],
Actions