[Zope] Problems with my ZMI

Ken Winter ken at sunward.org
Fri Sep 28 12:47:17 EDT 2007


Sorry; forgot about sending the whole traceback.  I have inserted the full
error data below under each of the two problems.  These were actually copied
from my *Plone* error log interface; I assume that's the same info you are
referring to.  I don’t know if all this info (other than the traceback) is
of use, so I'm sending it all just in case.

~ Thanks again
~ Ken


> -----Original Message-----
> From: Andreas Jung [mailto:lists at zopyx.com]
> Sent: Thursday, September 27, 2007 11:10 PM
> To: Ken Winter; 'Zope List'
> Subject: 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 <ken at sunward.org> 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:
> >
> >
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

Display traceback as text
REQUEST
form
-C	''
cookies
wstyle	''
dtpref_rows	''
dtpref_cols	''
tree-s	'eJzTyCkw5NLIKTDiClZ3hANXW3WuAmOuRKCECUjWFEnWNTEbJGvGlQgEegAEWRAt'
lazy items
SESSION	<bound method SessionDataManager.getSessionData of
<SessionDataManager at /session_data_manager>>
other
URL2	'http://localhost:8080/DAgroups/dhr4'
URL4	'http://localhost:8080'
URL3	'http://localhost:8080/DAgroups'
n_	10
AUTHENTICATION_PATH	'DAgroups'
AUTHENTICATED_USER	<PloneUser 'admin'>
SERVER_URL	'http://localhost:8080'
traverse_subpath	[]
dtpref_cols	''
dtpref_rows	''
BASEPATH1	''
BASE5
'http://localhost:8080/DAgroups/dhr4/getSessionData01/ZPythonScriptHTML_edit
Form'
URL
'http://localhost:8080/DAgroups/dhr4/getSessionData01/ZPythonScriptHTML_edit
Form'
PUBLISHED	<App.special_dtml.DTMLFile object at 0x01762A50>
TraversalRequestNameStack	[]
BASE1	'http://localhost:8080'
BASE2	'http://localhost:8080/DAgroups'
BASE3	'http://localhost:8080/DAgroups/dhr4'
BASE4	'http://localhost:8080/DAgroups/dhr4/getSessionData01'
a_	0
ACTUAL_URL
'http://localhost:8080/DAgroups/dhr4/getSessionData01/ZPythonScriptHTML_edit
Form'
URL1	'http://localhost:8080/DAgroups/dhr4/getSessionData01'
URL0
http://localhost:8080/DAgroups/dhr4/getSessionData01/ZPythonScriptHTML_editF
orm
URL1	http://localhost:8080/DAgroups/dhr4/getSessionData01
URL2	http://localhost:8080/DAgroups/dhr4
URL3	http://localhost:8080/DAgroups
URL4	http://localhost:8080
BASE0	http://localhost:8080
BASE1	http://localhost:8080
BASE2	http://localhost:8080/DAgroups
BASE3	http://localhost:8080/DAgroups/dhr4
BASE4	http://localhost:8080/DAgroups/dhr4/getSessionData01
BASE5
http://localhost:8080/DAgroups/dhr4/getSessionData01/ZPythonScriptHTML_editF
orm
environ
HTTP_COOKIE	'dtpref_rows=; dtpref_cols=; wstyle=;
tree-s="eJzTyCkw5NLIKTDiClZ3hANXW3WuAmOuRKCECUjWFEnWNTEbJGvGlQgEegAEWRAt"'
SERVER_SOFTWARE	'Zope/(Zope 2.9.6-final, python 2.4.3, win32) ZServer/1.1
Plone/2.5.2'
SCRIPT_NAME	''
REQUEST_METHOD	'GET'
PATH_INFO	'/DAgroups/dhr4/getSessionData01/ZPythonScriptHTML_editForm'
SERVER_PROTOCOL	'HTTP/1.1'
channel.creation_time	1190995756
CONNECTION_TYPE	'keep-alive'
HTTP_ACCEPT_CHARSET	'ISO-8859-1,utf-8;q=0.7,*;q=0.7'
HTTP_USER_AGENT	'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.1)
Gecko/20061204 Firefox/2.0.0.1'
HTTP_REFERER	'http://localhost:8080/DAgroups/dhr4/manage_main'
SERVER_NAME	'KenIBM'
REMOTE_ADDR	'127.0.0.1'
PATH_TRANSLATED
'\\DAgroups\\dhr4\\getSessionData01\\ZPythonScriptHTML_editForm'
SERVER_PORT	'8080'
HTTP_HOST	'localhost:8080'
HTTP_ACCEPT
'text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q
=0.8,image/png,*/*;q=0.5'
GATEWAY_INTERFACE	'CGI/1.1'
HTTP_ACCEPT_LANGUAGE	'en-us,en;q=0.5'
HTTP_ACCEPT_ENCODING	'gzip,deflate'
HTTP_KEEP_ALIVE	'300'
> >
> >
> > 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:
> >
> >
User Name
    admin (admin)
Request URL
    http://localhost:8080/DAgroups/dhr4/index_html/pt_changePrefs
Exception Type
    ValueError
Exception Value
    invalid literal for int(): 

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 Products.PageTemplates.ZopePageTemplate, line 182, in
pt_changePrefs

ValueError: invalid literal for int():

Display traceback as text
REQUEST
form
	'pt_changePrefs'
title	''
text	'<html>\n <head>\n <title tal:content="template/title">The
title</title>\n </head>\n <body>\n \n <h2><span
tal:replace="here/title_or_id">content title or id</span>\n <span
tal:condition="template/title"\n tal:replace="template/title">optional
template title</span></h2>\n\t\n This is Page Template <em
tal:content="template/id">template id</em>.\n\n<table border="1"
width="100%">\n <tr>\n <th>Id</th>\n <th>Meta-Type</th>\n <th>Title</th>\n
</tr>\n <tr tal:repeat="item context/objectValues">\n <td
tal:content="item/getId">Id</td>\n <td
tal:content="item/meta_type">Meta-Type</td>\n <td
tal:content="item/title">Title</td>\n </tr>\n</table>\n\n<!-- \tSession
properties:\n\t<p tal:repeat="prop string:getSessionData01()"
tal:replace="prop">\n\t\tSession Properties\n\t</p>\n -->\n
</body>\n</html>\n'
width	'Wider'
content_type	'text/html'
expand	0
cookies
wstyle	''
dtpref_rows	''
dtpref_cols	''
tree-s	'eJzTyCkw5NLIKTDiClZ3hANXW3WuAmOuRKCECUjWFEnWNTEbJGvGlQgEegAEWRAt'
lazy items
SESSION	<bound method SessionDataManager.getSessionData of
<SessionDataManager at /session_data_manager>>
other
TraversalRequestNameStack	[]
AUTHENTICATED_USER	<PloneUser 'admin'>
URL	'http://localhost:8080/DAgroups/dhr4/index_html/pt_changePrefs'
SERVER_URL	'http://localhost:8080'
AUTHENTICATION_PATH	'DAgroups'
width	'Wider'
PATH_INFO	'/DAgroups/dhr4/index_html/pt_changePrefs'
PUBLISHED	<bound method ZopePageTemplate.pt_changePrefs of
<ZopePageTemplate at /DAgroups/dhr4/index_html>>
dtpref_cols	''
dtpref_rows	''
ACTUAL_URL
'http://localhost:8080/DAgroups/dhr4/index_html/pt_changePrefs'
URL0	http://localhost:8080/DAgroups/dhr4/index_html/pt_changePrefs
URL1	http://localhost:8080/DAgroups/dhr4/index_html
URL2	http://localhost:8080/DAgroups/dhr4
URL3	http://localhost:8080/DAgroups
URL4	http://localhost:8080
BASE0	http://localhost:8080
BASE1	http://localhost:8080
BASE2	http://localhost:8080/DAgroups
BASE3	http://localhost:8080/DAgroups/dhr4
BASE4	http://localhost:8080/DAgroups/dhr4/index_html
BASE5	http://localhost:8080/DAgroups/dhr4/index_html/pt_changePrefs
environ
HTTP_COOKIE	'dtpref_rows=; dtpref_cols=; wstyle=;
tree-s="eJzTyCkw5NLIKTDiClZ3hANXW3WuAmOuRKCECUjWFEnWNTEbJGvGlQgEegAEWRAt"'
SERVER_SOFTWARE	'Zope/(Zope 2.9.6-final, python 2.4.3, win32) ZServer/1.1
Plone/2.5.2'
SCRIPT_NAME	''
REQUEST_METHOD	'POST'
HTTP_KEEP_ALIVE	'300'
SERVER_PROTOCOL	'HTTP/1.1'
channel.creation_time	1190997086
CONNECTION_TYPE	'keep-alive'
HTTP_ACCEPT_CHARSET	'ISO-8859-1,utf-8;q=0.7,*;q=0.7'
HTTP_USER_AGENT	'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.1)
Gecko/20061204 Firefox/2.0.0.1'
HTTP_REFERER	'http://localhost:8080/DAgroups/dhr4/index_html/pt_editForm'
SERVER_NAME	'KenIBM'
REMOTE_ADDR	'127.0.0.1'
PATH_TRANSLATED	'\\DAgroups\\dhr4\\index_html'
SERVER_PORT	'8080'
CONTENT_LENGTH	'1422'
HTTP_HOST	'localhost:8080'
HTTP_ACCEPT
'text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q
=0.8,image/png,*/*;q=0.5'
GATEWAY_INTERFACE	'CGI/1.1'
HTTP_ACCEPT_LANGUAGE	'en-us,en;q=0.5'
CONTENT_TYPE	'application/x-www-form-urlencoded'
HTTP_ACCEPT_ENCODING	'gzip,deflate'
PATH_INFO	'/DAgroups/dhr4/index_html'

> >
> >
> > 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: info at zopyx.com - 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



More information about the Zope mailing list