2012-09-05 25 views
2

我在/ @@ mail-controlpanel發生'ascii'錯誤。我如何檢查值並解決這個問題? 該網站在Debian6上運行Plone4.2。'ascii'error at/@@ mail-controlpanel

問候

我回溯:

... 
Module zope.tales.tales, line 696, in evaluate 
    - URL: /home/plone42/buildout-cache/eggs/plone.app.controlpanel-2.2.5-py2.7.egg/plone/app/controlpanel/control-panel.pt 
    - Line 110, Column 28 
    - Expression: <PathExpr standard:u'widget'> 
    - Names: 
    {'args':(), 
    'container': <PloneSite at /intranetcfa>, 
    'context': <PloneSite at /intranetcfa>, 
    'default': <object object at 0x7f11f8d43b40>, 
    'here': <PloneSite at /intranetcfa>, 
    'loop': {}, 
    'nothing': None, 
    'options': {}, 
    'repeat': <Products.PageTemplates.Expressions.SafeMapping object at 0x5e37e10>, 
    'request': <HTTPRequest, URL=http://91.121.151.215:8088/intranetcfa/@@mail-controlpanel>, 
    'root': <Application at >, 
    'template': <Products.Five.browser.pagetemplatefile.ViewPageTemplateFile object at 0x4edd790>, 
    'traverse_subpath': [], 
    'user': <PropertiedUser 'admin'>, 
    'view': <Products.Five.metaclass.MailControlPanel object at 0x7f11ea4efbd0>, 
    'views': <Products.Five.browser.pagetemplatefile.ViewMapper object at 0x7f11ea506110>} 
    Module zope.tales.expressions, line 217, in __call__ 
    Module Products.PageTemplates.Expressions, line 155, in _eval 
    Module Products.PageTemplates.Expressions, line 117, in render 
    Module zope.formlib.textwidgets, line 134, in __call__ 
    Module zope.formlib.widget, line 627, in renderElement 
    Module zope.formlib.widget, line 612, in renderTag 
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 22: ordinal not in range(128) 
+0

這怎麼能被轉載? –

+0

很顯然,ISO-8859-15和UTF-8與unicode之間存在不匹配的地方......只有調試器可以幫助你在這裏...... –

+0

該錯誤可能來自站點'From'名稱或站點'From ' 地址。我可以在不訪問@@ mail-controlpanel的情況下更改這些值嗎? – jacquesseite

回答

2

你可能嘗試從名稱/地址直接通過ZMI下

http://host:port/your_plone/manage_propertiesForm 

通過調整email_from_address或email_from_name性質改變。

+0

非常感謝您的幫助。問題是'email_from_name'中的重音字符。現在一切正常。 – jacquesseite

+0

隨意提交一個Plone bugreport ....這個錯誤不應該發生,錯誤應該以某種方式修復。 –

+0

我只是填寫一個錯誤報告。再次感謝。 – jacquesseite