Hi folks,

I'm in the process of migrating to a new server, and I've bumped into a 
problem. I'm using macports and virtualenv to get everything to play nicely on 
my OS X 10.8 server. It's admittedly a atypical configuration... The python 
version has moved from 2.3.5 to 2.4.6. The Zope version is the same at 
2.8.6.Everything works great, except for ONE folder. It's quite frustrating to 
not even be able to go to /manage on this folder.

When I go to any object within this particular folder, I get:

(thanks in advance for any guidance that you might provide!)
Site Error

An error was encountered while publishing this resource.

AttributeError

Sorry, a site error occurred.


Traceback (innermost last):

  *   Module ZPublisher.Publish, line 188, in publish_module_standard
  *   Module Products.s.PatchStringIO, line 51, in new_publish
  *   Module ZPublisher.Publish, line 145, in publish
  *   Module Zope2.App.startup, line 216, in zpublisher_exception_hook
  *   Module ZPublisher.Publish, line 105, in publish
  *   Module ZPublisher.BaseRequest, line 443, in traverse
  *   Module ZPublisher.BaseRequest, line 547, in old_validation

AttributeError: __getitem__ (Also, the following error occurred while 
attempting to render the standard error message, please see the event log for 
full details: name 'REQUEST' is not defined)


________________________________

Troubleshooting Suggestions

  *   The URL may be incorrect.
  *   The parameters passed to this resource may be incorrect.
  *   A resource that this resource relies on may be encountering an error.

For more detailed information about the error, please refer to error log.

If the error persists please contact the site maintainer. Thank you for your 
patience.


Digging into the error_log I have this:
REQUEST
form
-C      ''
cookies
__utmz  
'215042506.1349997112.16.7.utmccn=(referral)|utmcsr=backup.lrc.cornell.edu<http://backup.lrc.cornell.edu>:8082|utmcct=/|utmcmd=referral'
__utmb  '88364185'
tree-s  'eJzT0MgpMOQKVneEAn2XfFt1rgIjrsSSAmMuPQB5pQeW'
verify_netid    'f0ec5d8f10a3aed2e9e312df21f4555c'
__utma  '23486248.2137924914.1346079782.1352756706.1355855277.6'
BALANCEID       'balancer.cf015'
__utmc  '23486248'
cuwltgttime     '1357806665'
ql_meta_types   '[]'
lazy items
SESSION <bound method SessionDataManager.getSessionData of <SessionDataManager 
at /session_data_manager>>
other
TraversalRequestNameStack       []
URL     'http://server.lrc.cornell.edu/asian/courses/be/index_html'
SERVER_URL      'http://server.lrc.cornell.edu'
PUBLISHED       <DTMLMethod at /asian/index_html used for /asian/courses/be>
ACTUAL_URL      'http://server.lrc.cornell.edu/asian/courses/be/'
URL0    http://server.lrc.cornell.edu/asian/courses/be/index_html
URL1    http://server.lrc.cornell.edu/asian/courses/be
URL2    http://server.lrc.cornell.edu/asian/courses
URL3    http://server.lrc.cornell.edu/asian
URL4    http://server.lrc.cornell.edu
BASE0   http://server.lrc.cornell.edu
BASE1   http://server.lrc.cornell.edu
BASE2   http://server.lrc.cornell.edu/asian
BASE3   http://server.lrc.cornell.edu/asian/courses
BASE4   http://server.lrc.cornell.edu/asian/courses/be
BASE5   http://server.lrc.cornell.edu/asian/courses/be/index_html
environ
CONNECTION_TYPE 'keep-alive'
HTTP_USER_AGENT 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_2) 
AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.101 Safari/537.11'
HTTP_COOKIE     'tree-s="eJzT0MgpMOQKVneEAn2XfFt1rgIjrsSSAmMuPQB5pQeW"; 
verify_netid=f0ec5d8f10a3aed2e9e312df21f4555c; 
__utmz=215042506.1349997112.16.7.utmccn=(referral)|utmcsr=backup.lrc.cornell.edu<http://backup.lrc.cornell.edu>:8082|utmcct=/|utmcmd=referral;
 BALANCEID=balancer.cf015; 
__utma=23486248.2137924914.1346079782.1352756706.1355855277.6; __utmc=23486248; 
__utmz=23486248.1346079782.1.1.utmcsr=lrc.cornell.edu<http://lrc.cornell.edu>|utmccn=(referral)|utmcmd=referral|utmcct=/asian/courses/vi/viet301/;
 cuwltgttime="1357806665"; 
__utma=215042506.2123988513.1344957398.1356475993.1357831430.39; 
__utmc=215042506; 
__utma=88364185.1508772392.1357836182.1357836182.1357836182.1; __utmb=88364185; 
__utmc=88364185; 
__utmz=88364185.1357836182.1.1.utmccn=(direct)|utmcsr=(direct)|utmcmd=(none); 
ql_meta_types="[]"'
SERVER_NAME     '0.0.0.0'
GATEWAY_INTERFACE       'CGI/1.1'
HTTP_ACCEPT     
'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'
SERVER_SOFTWARE 'Zope/(Zope 2.8.6-final, python 2.4.6, darwin) ZServer/1.1'
REMOTE_ADDR     '10.32.74.32'
HTTP_ACCEPT_LANGUAGE    'en-US,en;q=0.8'
SCRIPT_NAME     ''
REQUEST_METHOD  'GET'
HTTP_HOST       'server.lrc.cornell.edu<http://server.lrc.cornell.edu>'
PATH_INFO       '/asian/courses/be/'
SERVER_PORT     '80'
SERVER_PROTOCOL 'HTTP/1.1'
HTTP_ACCEPT_CHARSET     'ISO-8859-1,utf-8;q=0.7,*;q=0.3'
channel.creation_time   1357837924
HTTP_ACCEPT_ENCODING    'gzip,deflate,sdch'
PATH_TRANSLATED '/asian/courses/be'




Finally, event.log shows this:

013-01-10T12:28:34 ERROR Zope.SiteErrorLog 
http://server.lrc.cornell.edu/asian/courses/be/index_html
Traceback (most recent call last):
  File "/home/zope/envLRC/Zope2.8.6/lib/python/ZPublisher/Publish.py", line 
105, in publish
    object=request.traverse(path, validated_hook=validated_hook)
  File "/home/zope/envLRC/Zope2.8.6/lib/python/ZPublisher/BaseRequest.py", line 
443, in traverse
    user=old_validation(groups, request, auth, roles)
  File "/home/zope/envLRC/Zope2.8.6/lib/python/ZPublisher/BaseRequest.py", line 
547, in old_validation
    for d in groups:
AttributeError: __getitem__------
2013-01-10T12:28:34 ERROR root Exception while rendering an error message
Traceback (most recent call last):
  File "/home/zope/envLRC/Zope2.8.6/lib/python/OFS/SimpleItem.py", line 209, in 
raise_standardErrorMessage
    v = s(client, REQUEST, **kwargs)
  File "/home/zope/envLRC/Zope2.8.6/lib/python/OFS/DTMLMethod.py", line 144, in 
__call__
    r=apply(HTML.__call__, (self, client, REQUEST), kw)
  File "/home/zope/envLRC/Zope2.8.6/lib/python/DocumentTemplate/DT_String.py", 
line 476, in __call__
    try: result = render_blocks(self._v_blocks, md)
  File "/home/zope/envLRC/Zope2.8.6/lib/python/DocumentTemplate/DT_Util.py", 
line 196, in eval
    return eval(code, d)
  File "<string>", line 1, in <expression>
  File "/home/zope/envLRC/Zope2.8.6/lib/python/OFS/DTMLMethod.py", line 137, in 
__call__
    r=apply(HTML.__call__, (self, client, REQUEST), kw)
  File "/home/zope/envLRC/Zope2.8.6/lib/python/DocumentTemplate/DT_String.py", 
line 476, in __call__
    try: result = render_blocks(self._v_blocks, md)
  File "/home/zope/envLRC/Zope2.8.6/lib/python/DocumentTemplate/DT_Util.py", 
line 196, in eval
    return eval(code, d)
  File "<string>", line 1, in <expression>
NameError: name 'REQUEST' is not defined
_______________________________________________
Zope maillist  -  Zope@zope.org
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope-dev )

Reply via email to