0

我有一个安装了 Products.PloneFormGen 的 Plone 3.2.1 站点,它有一个配置有发送到 Google Apps 通讯组的邮件程序的表单。但是,该表单一旦提交,就会向通讯组发送一封电子邮件;目前它正在发送4。

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

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

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

$ 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
4

1 回答 1

1

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

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

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

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

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

于 2013-12-04T22:14:17.343 回答