RE: [Zope] Problems with my ZMI
Thanks, Dieter ~ Aided by the hints you gave, I have bumbled across the cause and the apparent solution of the problem, which I report for the benefit of others who may suffer from it. The cause: The cookies dtpref_rows and dtpref_cols were stored in my browser with no values. (I have no idea how that happened.) The apparent solution: Deleting those cookies from the browser fixed both of my ZMI display problems. I note that Zope has repopulated those cookies, which how have values 20 and 100%, respectively. I call the solution apparent only because I don't know what caused the cause, so I don't know when/if it may recur. ~ Ken -Original Message- From: Dieter Maurer [mailto:[EMAIL PROTECTED] Sent: Saturday, September 29, 2007 1:33 PM To: Ken Winter Cc: 'Zope List' Subject: RE: [Zope] Problems with my ZMI Ken Winter wrote at 2007-9-28 12:47 -0400: Sorry; forgot about sending the whole traceback. Sad that DTML is not yet popped up to provide useful tracebacks :-(( ... User Name admin (admin) Request URL http://localhost:8080/DAgroups/dhr4/getSessionData01/ZPythonScriptHTML_ed itF orm Exception Type IndexError Exception Value string index out of range Traceback (innermost last): * Module ZPublisher.Publish, line 115, in publish * Module ZPublisher.mapply, line 88, in mapply * Module ZPublisher.Publish, line 41, in call_object * Module Shared.DC.Scripts.Bindings, line 311, in __call__ * Module Shared.DC.Scripts.Bindings, line 348, in _bindAndExec * Module App.special_dtml, line 176, in _exec * Module DocumentTemplate.DT_With, line 76, in render * Module DocumentTemplate.DT_Let, line 76, in render * Module DocumentTemplate.DT_Util, line 196, in eval __traceback_info__: cols * Module string, line 0, in ? IndexError: string index out of range Unfortunately, we do not see much from this traceback. Let's see what I can extract: The problem is probably in ZPythonScriptHTML_editForm. In it, you see on top level a dtml-with with a nested dtml-let. Probably in the let, you have an expression cols[some index]. cols contains a string and some index is out of range. Display traceback as text REQUEST form -C '' cookies wstyle '' dtpref_rows '' dtpref_cols '' This may be an indication dtpref_cols is empty. Maybe, this should not be so? -- Dieter ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] Problems with my ZMI
Ken Winter wrote at 2007-9-28 12:47 -0400: Sorry; forgot about sending the whole traceback. Sad that DTML is not yet popped up to provide useful tracebacks :-(( ... User Name admin (admin) Request URL http://localhost:8080/DAgroups/dhr4/getSessionData01/ZPythonScriptHTML_editF orm Exception Type IndexError Exception Value string index out of range Traceback (innermost last): * Module ZPublisher.Publish, line 115, in publish * Module ZPublisher.mapply, line 88, in mapply * Module ZPublisher.Publish, line 41, in call_object * Module Shared.DC.Scripts.Bindings, line 311, in __call__ * Module Shared.DC.Scripts.Bindings, line 348, in _bindAndExec * Module App.special_dtml, line 176, in _exec * Module DocumentTemplate.DT_With, line 76, in render * Module DocumentTemplate.DT_Let, line 76, in render * Module DocumentTemplate.DT_Util, line 196, in eval __traceback_info__: cols * Module string, line 0, in ? IndexError: string index out of range Unfortunately, we do not see much from this traceback. Let's see what I can extract: The problem is probably in ZPythonScriptHTML_editForm. In it, you see on top level a dtml-with with a nested dtml-let. Probably in the let, you have an expression cols[some index]. cols contains a string and some index is out of range. Display traceback as text REQUEST form -C '' cookies wstyle '' dtpref_rows'' dtpref_cols'' This may be an indication dtpref_cols is empty. Maybe, this should not be so? -- Dieter ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Problems with my ZMI
You must provide the full tracebacks (see your error_log object within the ZMI or messages on your console). -aj --On 27. September 2007 17:15:57 -0400 Ken Winter [EMAIL PROTECTED] wrote: A year or so after installing this installation of Zope, I'm suddenly having trouble opening Python Scripts and Page Templates for editing in my ZMI. (Zope 2.9.6-final, python 2.4.3, win32.) Specifically: 1. When I click on the name of a script, I get this message: Site error This site encountered an error trying to fulfill your request. The errors were: Error Type IndexError Error Value string index out of range Request made at 2007/09/27 17:06:33.640 GMT-4 2. When I click on the name of a Template, the template's Edit tab opens, but the field containing the template body is shrunk to its minimal size (3 rows high x a few characters wide). An attempt to fix this by hitting (for example) the Wider button evokes: Site error This site encountered an error trying to fulfill your request. The errors were: Error Type ValueError Error Value invalid literal for int(): Request made at 2007/09/27 17:11:33.375 GMT-4 Restarting Zope doesn't help. Any fix for this? (Preferably a fix that don't involve reinstalling Zope and everything else built upon it.) In the meantime, any workarounds that will enable me to edit my objects? ~ TIA ~ Ken -- ZOPYX Ltd. Co. KG - Charlottenstr. 37/1 - 72070 Tübingen - Germany Web: www.zopyx.com - Email: [EMAIL PROTECTED] - Phone +49 - 7071 - 793376 Registergericht: Amtsgericht Stuttgart, Handelsregister A 381535 Geschäftsführer/Gesellschafter: ZOPYX Limited, Birmingham, UK E-Publishing, Python, Zope Plone development, Consulting pgpHqzD9skL9Y.pgp Description: PGP signature ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )