TYPO3 error: the controller "Standard" is not allowed by plugin "diagnoseList"
TYPO3 error: the controller "Standard" is not allowed by plugin "diagnoseList"
TYPO3 8.7.17,开发扩展,突然报错
The controller "Standard" is not allowed by plugin "diagnoseList". Please check for TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin() in your ext_localconf.php.
ext_localconf.php:
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'Il.' . $_EXTKEY,
'diagnoseList',
[
'Evil' => 'diagnoseList, showDiagnoseSystemCategoryContent, showDiagnoseSystemEvilContent',
],
// non-cacheable actions
[
'Evil' => 'diagnoseList, showDiagnoseSystemCategoryContent, showDiagnoseSystemEvilContent',
]
);
我还有一个控制器:
namespace Il\Evil\Controller;
use Il\Evil\Domain\Model\DiagnoseSystemCategory;
use Il\Evil\Domain\Model\DiagnoseSystemEvil;
use Il\Evil\Domain\Model\HomeopathyCategory;
use Il\Evil\Domain\Model\HomeopathyEvil;
class EvilController extends BasicController
{
public function diagnoseListAction()
{
$mainCategories = $this->diagnoseSystemCategoryRepository->findMainCategories();
$mainCategoriesRows = array_chunk($mainCategories, 3);
$this->view->assign('mainCategoriesRows', $mainCategoriesRows);
$this->view->assign('currentPid', $GLOBALS['TSFE']->id);
$this->view->assign('currentPageTitle', $GLOBALS['TSFE']->rootLine[1]['title']);
}
}
我还有一个视图文件,我就不附上代码了,不重要。所有配置和代码看起来都正确。我已经多次检查所有内容,清除缓存,重新安装扩展程序。另一个通过这种方式配置的插件效果很好。真是愚蠢的错误。
我刚刚停用了 real_url 扩展,删除了所有 real_url 表格,激活了 real_url 扩展。然后就可以了。
TYPO3 8.7.17,开发扩展,突然报错
The controller "Standard" is not allowed by plugin "diagnoseList". Please check for TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin() in your ext_localconf.php.
ext_localconf.php:
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'Il.' . $_EXTKEY,
'diagnoseList',
[
'Evil' => 'diagnoseList, showDiagnoseSystemCategoryContent, showDiagnoseSystemEvilContent',
],
// non-cacheable actions
[
'Evil' => 'diagnoseList, showDiagnoseSystemCategoryContent, showDiagnoseSystemEvilContent',
]
);
我还有一个控制器:
namespace Il\Evil\Controller;
use Il\Evil\Domain\Model\DiagnoseSystemCategory;
use Il\Evil\Domain\Model\DiagnoseSystemEvil;
use Il\Evil\Domain\Model\HomeopathyCategory;
use Il\Evil\Domain\Model\HomeopathyEvil;
class EvilController extends BasicController
{
public function diagnoseListAction()
{
$mainCategories = $this->diagnoseSystemCategoryRepository->findMainCategories();
$mainCategoriesRows = array_chunk($mainCategories, 3);
$this->view->assign('mainCategoriesRows', $mainCategoriesRows);
$this->view->assign('currentPid', $GLOBALS['TSFE']->id);
$this->view->assign('currentPageTitle', $GLOBALS['TSFE']->rootLine[1]['title']);
}
}
我还有一个视图文件,我就不附上代码了,不重要。所有配置和代码看起来都正确。我已经多次检查所有内容,清除缓存,重新安装扩展程序。另一个通过这种方式配置的插件效果很好。真是愚蠢的错误。
我刚刚停用了 real_url 扩展,删除了所有 real_url 表格,激活了 real_url 扩展。然后就可以了。