The controller “X” is not allowed by this plugin

╄→гoц情女王★ 提交于 2019-12-06 14:09:32

There are two common possibilities for your error:

  1. You use a flexform to embed your plugin. Either you have not added Custom->confirmAgb to the allowed calls in your flexform or you have added it but did not update the plugin (plugin configuration only updates when you save the plugin/tt_content element)
  2. You have two plugins on the page and the error is triggered by the other plugin because there the controller->action combination is not allowed.

PS: try adding this to your TS (setup.txt) and the plugins now should pick the default action if the given one is not found:

plugin.tx_yourextensionmvc.callDefaultActionIfActionCantBeResolved = 1

There could be more uncommon cases

You should absolutely avoid using $_EXTKEY in configurePlugin and other Extbase contexts. Extbase requires the Vendor.ExtensionName format - $_EXTKEY is in the lowercase_underscored format. Defining those parameters as hardcoded values should solve your problem with resolving controllers for your given plugin.

To be precise: use Eddcapone.Myextension as extension name parameter in your command(s) to register/configure plugins.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!