PloneFormGen Mailer发送重复的电子邮件



我有一个Plone 3.2.1网站,上面安装了Products.PloneFormGen,它有一个表单,配置了一个发送到谷歌应用程序分发组的邮件程序。然而,一旦提交该表格,就意味着向通讯组发送一封电子邮件;此时它正在发送4。

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

如果我从表单中删除mailer apater,它将阻止它发送任何电子邮件。

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

$ 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

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

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

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

我想知道表单是否记住了一些动作适配器,这些适配器已不可用,但无论如何都是通过获取找到的。这是一个很长的机会

检查邮件适配器。也许你有一些覆盖添加了太多的电子邮件地址?可能收件人在"收件人"、"抄送"one_answers"密件抄送"字段中?

相关内容

  • 没有找到相关文章

最新更新