Typo3 8.7:Powermail 6.1:扩展名“Powermail”和插件“Pi1”的默认控制器无法确定

Typo3 8.7:Powermail 6.1:扩展名“Powermail”和插件“Pi1”的默认控制器无法确定

问题描述:

I'm currently working on migrating my Typo3 6.x to 8.7. I know there are plenty of similar questions asked here, but I have tryed everything, every solution proposed. To my problem: When I visit a page that has a powermail form, I'm getting this Error:

The default controller for extension "Powermail" and plugin "Pi1" can not be 
determined. Please check for 
TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin() in your 
ext_localconf.php.

Since Powermail doesn't have any errors obviously it has to do something with my configurations.

I'm using a different extension to add a cronjob (entrie in DB), whenever a form is being processed in the FormController of Powermail.

ext_localconf.php of my extension:

<?php
defined('TYPO3_MODE') || die('Access denied.');

call_user_func(
    function ($extKey) {
        \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScriptSetup('<INCLUDE_TYPOSCRIPT: source="FILE:EXT:extKeyHere/Configuration/TypoScript/setup.ts">');
        \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScriptConstants('<INCLUDE_TYPOSCRIPT: source="FILE:EXT:extKeyHere/Configuration/TypoScript/constants.ts">');

        \TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
            'TYPO3.' . $extKey,
            'Integration',
            array(
                'Integration' => 'integration',
            ),
            // non-cacheable actions
            array(
                'Integration' => 'integration',
            )
        );
    },
    $_EXTKEY
);

$signalSlotDispatcher = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\CMS\Extbase\SignalSlot\Dispatcher');
$signalSlotDispatcher->connect(
    'In2code\Powermail\Controller\FormController', // namespace of Class: In2code\Powermail\Controller
    'createActionAfterMailDbSaved',
    'Typo3\extName\Controller\IntegrationController', //namespace of Class: Typo3\extName\Controller
    'integration',
    FALSE);
?>

I can't figure out what the problem is. I have deleted the Powermail extension, reactivated it, cleared all cashes (also by using install tool: Clear all cache) etc. without success.

Thanks in advance.

我正在努力将我的Typo3 6.x迁移到8.7。 我知道有很多类似的问题 在这里问,但我已经尝试了所有的解决方案。 我的问题: 当我访问具有powermail格式的页面时,我收到此错误: p>

 扩展名“Powermail”和插件“Pi1”的默认控制器 “无法确定。 请检查
ext_localconf.php中的
TYPO3 \ CMS \ Extbase \ Utility \ ExtensionUtility :: configurePlugin()。
  code>  pre> 
 
 

由于Powermail没有任何错误 显然它必须对我的配置做一些事情。 p>

我正在使用不同的扩展来添加cronjob(在数据库中的entrie),只要在 FormController中处理表单 Powermail code>的 code>。 p>

我的扩展程序的 \ text_localconf.php code>: p>

 &lt;?php 
defined('TYPO3_MODE')  ||  die('Access denied。'); 
 
call_user_func(
 function($ extKey){
 \ TYPO3 \ CMS \ Core \ Utility \ ExtensionManagementUtility :: addTypoScriptSetup('&lt; INCLUDE_TYPOSCRIPT:source =“FILE:EXT:  extKeyHere / Configuration / TypoScript / setup.ts“&gt;'); 
 \ TYPO3 \ CMS \ Core \ Utility \ ExtensionManagementUtility :: addTypoScriptConstants('&lt; INCLUDE_TYPOSCRIPT:source =”FILE:EXT:extKeyHere / Configuration / TypoScript / constants  .ts“&gt;'); 
 
 \ TYPO3 \ CMS \ Extbase \ Utility \ ExtensionUtility :: configurePlugin(
'TYPO3。'。$ extKey,
'集成',
数组(
'集成 '=&gt;'integration',
),
 //不可缓存的操作
数组(
'Integration'=&gt;'integration',
)
); 
},
 $  _EXTKEY 
); 
 
 $ signalSlotDispatcher = \ TYPO3 \ CMS \ Core \ Utility \ GeneralUtility :: makeInstance('TYPO3 \ CMS \ Extbase \ SignalSlot \ Dispatcher'); 
 $ signalSlotDispatcher-&gt; connect(
  “In2code \ Powermail \对照 oller \ FormController',//类的命名空间:In2code \ Powermail \ Controller 
'createActionAfterMailDbSaved',
'Typo3 \ extName \ Controller \ IntegrationController',//类的命名空间:Typo3 \ extName \ Controller 
'integration'  ,
 FALSE); 
?&gt; 
  code>  pre> 
 
 

我无法弄清问题是什么。 我删除了Powermail扩展,重新激活了它,清除了所有现金(也通过使用安装工具:清除所有缓存)等没有成功。 p>

提前致谢。 p> DIV>

I found the solution myself. The table in my database in which the forms of powermail are stored was empty. I had to add forms to this table tx_powermail_domain_model_form. I have had my form records inside the table tx_powermail_domain_model_formS, therefore no forms were found inside the Plugin configuration of the specific template in the TYPO3 backend.

(Page -> Select Template with Powermailform -> Plugin -> Main Settings -> Choose a Powermailform (was empty)).

Maybe this is helpful for others!