PloneFormGen邮件程序发送重复的电子邮件

时间:2013-12-04 14:14:21

标签: plone ploneformgen plone-3.x

我有一个安装了Products.PloneFormGen的Plone 3.2.1站点,它有一个配置了邮件的表单,该邮件发送到Google Apps分发组。该表单一旦提交,就意味着向发布组发送一封电子邮件;目前正在发送4。

为了调试并确保它不是发布组做一些奇怪的事情,我在网站上安装了Products.PrintingMailHost,并且每次提交表单时都可以在控制台中看到打印的电子邮件4次。有人向我建议这个问题可能与Zope数据库冲突错误有关,但是当我在前台模式下加载任何客户端时,我发现没有任何相关内容,这让我相信这可能不是问题,或者我正在寻找错误的地方。

如果我从表单中删除邮件程序,它会阻止它发送任何电子邮件。

如果它有帮助,我在前台模式下加载我的一个客户端时已包含输出:

$ bin/client1 fg
/usr/local/plone/zeocluster/parts/client1/bin/runzope -X debug-mode=on
2013-12-04 13:37:16 INFO ZServer HTTP server started at Wed Dec  4 13:37:16 2013
    Hostname: 0.0.0.0
    Port: 8080
2013-12-04 13:37:16 INFO Zope Set effective user to "plone"
2013-12-04 13:37:17 INFO Marshall libxml2-python not available. Unable to register libxml2 based marshallers.
Hold on to your hats folks, I'm a-patchin'
2013-12-04 13:37:19 WARNING PrintingMailHost 

******************************************************************************

Monkey patching MailHosts to print emails to the terminal instead of
sending them.

NO MAIL WILL BE SENT FROM ZOPE AT ALL!

Turn off debug mode or remove PrintingMailHost from the Products
directory to turn this off.

******************************************************************************

2013-12-04 13:37:19 INFO ZEO.ClientStorage (1534) ClientStorage (pid=1534) created RW/normal for storage: '1'
2013-12-04 13:37:19 INFO ZEO.cache created temporary cache file '<fdopen>'
2013-12-04 13:37:19 INFO ZEO.ClientStorage (1534) Testing connection <ManagedClientConnection ('127.0.0.1', 8100)>
2013-12-04 13:37:19 INFO ZEO.zrpc.Connection(C) (127.0.0.1:8100) received handshake 'Z303'
2013-12-04 13:37:19 INFO ZEO.ClientStorage (1534) Server authentication protocol None
2013-12-04 13:37:19 INFO ZEO.ClientStorage (1534) Connected to storage: ('localhost', 8100)
2013-12-04 13:37:19 INFO ZEO.ClientStorage (1534) Verifying cache
2013-12-04 13:37:19 INFO ZEO.ClientStorage (1534) endVerify finishing
2013-12-04 13:37:19 INFO ZEO.ClientStorage (1534) endVerify finished
2013-12-04 13:37:20 WARNING PlacelessTranslationService Error while compiling /usr/local/plone/Zope-2.10.7-final-py2.4/lib/python/zope/app/locales/zh_CN/LC_MESSAGES/zope.po 

2013-12-04 13:37:20 WARNING PlacelessTranslationService Error while compiling /usr/local/plone/buildout-cache/eggs/quintagroup.captcha.core-0.4.1-py2.4.egg/quintagroup/captcha/core/locales/sv/LC_MESSAGES/quintagroup.captcha.core.po 

2013-12-04 13:37:20 WARNING PlacelessTranslationService Error while compiling /usr/local/plone/buildout-cache/eggs/quintagroup.captcha.core-0.4.1-py2.4.egg/quintagroup/captcha/core/locales/de/LC_MESSAGES/quintagroup.captcha.core.po 

2013-12-04 13:37:20 WARNING PlacelessTranslationService Error while compiling /usr/local/plone/buildout-cache/eggs/quintagroup.captcha.core-0.4.1-py2.4.egg/quintagroup/captcha/core/locales/fr/LC_MESSAGES/quintagroup.captcha.core.po 

2013-12-04 13:37:20 WARNING PlacelessTranslationService Error while compiling /usr/local/plone/buildout-cache/eggs/quintagroup.captcha.core-0.4.1-py2.4.egg/quintagroup/captcha/core/locales/da/LC_MESSAGES/quintagroup.captcha.core.po 

2013-12-04 13:37:20 WARNING PlacelessTranslationService Error while compiling /usr/local/plone/buildout-cache/eggs/quintagroup.captcha.core-0.4.1-py2.4.egg/quintagroup/captcha/core/locales/it/LC_MESSAGES/quintagroup.captcha.core.po 

2013-12-04 13:37:20 WARNING PlacelessTranslationService Error while compiling /usr/local/plone/buildout-cache/eggs/quintagroup.captcha.core-0.4.1-py2.4.egg/quintagroup/captcha/core/locales/pl/LC_MESSAGES/quintagroup.captcha.core.po 

2013-12-04 13:37:20 WARNING PlacelessTranslationService Error while compiling /usr/local/plone/buildout-cache/eggs/quintagroup.captcha.core-0.4.1-py2.4.egg/quintagroup/captcha/core/locales/en/LC_MESSAGES/quintagroup.captcha.core.po 

2013-12-04 13:37:20 WARNING PlacelessTranslationService Error while compiling /usr/local/plone/buildout-cache/eggs/quintagroup.captcha.core-0.4.1-py2.4.egg/quintagroup/captcha/core/locales/cs/LC_MESSAGES/quintagroup.captcha.core.po 

2013-12-04 13:37:20 WARNING PlacelessTranslationService Error while compiling /usr/local/plone/buildout-cache/eggs/quintagroup.captcha.core-0.4.1-py2.4.egg/quintagroup/captcha/core/locales/pt_BR/LC_MESSAGES/quintagroup.captcha.core.po 

2013-12-04 13:37:20 WARNING PlacelessTranslationService Error while compiling /usr/local/plone/buildout-cache/eggs/quintagroup.captcha.core-0.4.1-py2.4.egg/quintagroup/captcha/core/locales/uk/LC_MESSAGES/quintagroup.captcha.core.po 

2013-12-04 13:37:20 WARNING PlacelessTranslationService Error while compiling /usr/local/plone/buildout-cache/eggs/quintagroup.captcha.core-0.4.1-py2.4.egg/quintagroup/captcha/core/locales/es/LC_MESSAGES/quintagroup.captcha.core.po 

2013-12-04 13:37:20 WARNING PlacelessTranslationService Error while compiling /usr/local/plone/buildout-cache/eggs/quintagroup.captcha.core-0.4.1-py2.4.egg/quintagroup/captcha/core/locales/ja/LC_MESSAGES/quintagroup.captcha.core.po 

2013-12-04 13:37:22 INFO Plone Python does not have SSL support. OpenID support not available
2013-12-04 13:37:22 INFO collective.monkeypatcher Monkey patching Products.CMFPlone.PloneTool.PloneTool.listMetaTags with quintagroup.seoptimizer.listMetaTags.qsListMetaTags
2013-12-04 13:37:22 INFO collective.monkeypatcher Monkey patching Products.CMFPlone.PloneTool.PloneTool.listMetaTagsOriginal with quintagroup.seoptimizer.listMetaTags.qsListMetaTagsOriginal
2013-12-04 13:37:24 INFO PlacelessTranslationService You have a stale entry for 'collective.fancyzoomview' in your ZMI Products section.You should consider removing it. 

2013-12-04 13:37:24 INFO PlacelessTranslationService You have a stale entry for 'ilrt.contentmigrator' in your ZMI Products section.You should consider removing it. 

2013-12-04 13:37:25 INFO PlacelessTranslationService You have a stale entry for 'Products.Andreas00Theme' in your ZMI Products section.You should consider removing it. 

2013-12-04 13:37:25 INFO PlacelessTranslationService You have a stale entry for 'Products.AROfficeTransforms' in your ZMI Products section.You should consider removing it. 

2013-12-04 13:37:25 INFO PlacelessTranslationService You have a stale entry for 'Products.CHZenlike' in your ZMI Products section.You should consider removing it. 

2013-12-04 13:37:25 INFO PlacelessTranslationService You have a stale entry for 'Products.feedfeeder' in your ZMI Products section.You should consider removing it. 

2013-12-04 13:37:25 INFO PlacelessTranslationService You have a stale entry for 'Products.FlashVideo' in your ZMI Products section.You should consider removing it. 

2013-12-04 13:37:26 INFO PlacelessTranslationService You have a stale entry for 'Products.PloneHotfix20110720' in your ZMI Products section.You should consider removing it. 

2013-12-04 13:37:26 INFO PlacelessTranslationService You have a stale entry for 'Products.qPloneSkinSchools' in your ZMI Products section.You should consider removing it. 

2013-12-04 13:37:26 INFO PlacelessTranslationService You have a stale entry for 'Products.qPloneSkinWhiteBlack' in your ZMI Products section.You should consider removing it. 

2013-12-04 13:37:26 INFO PlacelessTranslationService You have a stale entry for 'webcouturier.dropdownmenu' in your ZMI Products section.You should consider removing it. 

2013-12-04 13:37:27 INFO Zope Ready to handle requests

client1 / event.log

的内容
------
2013-12-04T15:59:25 WARNING PloneFormGen Designated action adapter 'formmaileradapter.2013-03-07.2473418839' is missing; ignored.
------
2013-12-04T15:59:25 WARNING PloneFormGen Designated action adapter 'formmaileradapter.2013-03-07.1334448370' is missing; ignored.
------
2013-12-04T15:59:25 WARNING PloneFormGen Designated action adapter 'mailer-1' is missing; ignored.
------
2013-12-04T15:59:25 WARNING PloneFormGen Designated action adapter 'formmaileradapter.2013-03-07.3779688594' is missing; ignored.
------
2013-12-04T15:59:25 WARNING PloneFormGen Designated action adapter 'formcustomscriptadapter.2013-12-04.3934224717' is missing; ignored.
------
2013-12-04T15:59:25 WARNING PloneFormGen Designated action adapter 'formmaileradapter.2013-12-04.4414621583' is missing; ignored.
------
2013-12-04T15:59:25 INFO Plone  
CMFPlone/skins/plone_scripts/getWorkflowHistory: http://xxxxxxx:8080/xxxx/contact-us/thank-you has no associated workflow

1 个答案:

答案 0 :(得分:1)

尝试编辑并保存表单。这可能会消除关于缺少动作适配器的警告。

在该编辑表单中查看所选的操作适配器,并查看是否有任何您不期望的额外适配器。但听起来你可能已经这样做了。

如果是简短形式:只需重新创建它并删除旧形式。 : - )

我想知道表单是否记住了一些不再可用的动作适配器,但无论如何使用获取都可以找到它们。这是一个很长的镜头。 ; - )

检查邮件适配器。也许你有一些覆盖添加太多的电子邮件地址?也许收件人在To,Cc和Bcc领域?