dongshengyin0147 2018-10-09 13:38
浏览 85
已采纳

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.

  • 写回答

1条回答 默认 最新

  • dsgw3315 2018-10-15 09:49
    关注

    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!

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 爬取豆瓣电影相关处理
  • ¥15 手机淘宝抓清除消息接口
  • ¥15 C#无selenium
  • ¥15 LD衰减计算的结果过大
  • ¥15 用机器学习方法帮助保险公司预测哪些是欺诈行为
  • ¥15 计算300m以内的LD衰减
  • ¥15 数据爬取,python
  • ¥15 怎么看 cst中一个面的功率分布图,请说明详细步骤。类似下图
  • ¥15 为什么我的pycharm无法用pyqt6的QtWebEngine
  • ¥15 FOR循环语句显示查询超过300S错误怎么办