V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
panxianhai
V2EX  ›  V2EX

天黑之后发表主题时报错了。

  •  
  •   panxianhai · 2012-05-01 23:37:29 +08:00 · 2475 次点击
    这是一个创建于 4590 天前的主题,其中的信息可能已经有所发展或是发生改变。
    @livid
    Traceback (most recent call last):
    File "/usr/lib/python2.6/site-packages/tornado/web.py", line 988, in _execute
    getattr(self, self.request.method.lower())(*args, **kwargs)
    File "/usr/lib/python2.6/site-packages/tornado/web.py", line 1739, in wrapper
    return method(self, *args, **kwargs)
    File "/www/v2ex/galaxy/handlers/web/topic.py", line 40, in get
    self.finalize('topic/too_early_for_afterdark.html')
    File "/www/v2ex/galaxy/handlers/web/__init__.py", line 54, in finalize
    self.write(template.render(self.values))
    File "/usr/lib/python2.6/site-packages/Jinja2-2.6-py2.6.egg/jinja2/environment.py", line 894, in render
    return self.environment.handle_exception(exc_info, True)
    File "/www/v2ex/galaxy/templates/desktop/topic/too_early_for_afterdark.html", line 1, in top-level template code
    {% extends 'desktop/common/layout0.html' %}
    File "/www/v2ex/galaxy/templates/desktop/common/layout0.html", line 46, in top-level template code
    {% block wrapper %}
    File "/www/v2ex/galaxy/templates/desktop/common/layout0.html", line 50, in block "wrapper"
    {% block rightbar %}
    File "/www/v2ex/galaxy/templates/desktop/common/layout0.html", line 96, in block "rightbar"
    {% block rightafter %}
    File "/www/v2ex/galaxy/templates/desktop/topic/too_early_for_afterdark.html", line 10, in block "rightafter"
    {% if topic.node.sidebar %}
    File "/usr/lib/python2.6/site-packages/Jinja2-2.6-py2.6.egg/jinja2/environment.py", line 372, in getattr
    return getattr(obj, attribute)
    UndefinedError: 'topic' is undefined
    2 条回复    1970-01-01 08:00:00 +08:00
    Livid
        1
    Livid  
    MOD
       2012-05-01 23:40:52 +08:00   ❤️ 1
    修好了。

    多谢反馈。
    echoHUST
        2
    echoHUST  
       2013-09-01 16:38:37 +08:00
    @Livid 出现这个BUG的原因是什么呢?我今天也碰到这个问题了,折腾了一下午还是没找到原因,求助
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   3569 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 04:59 · PVG 12:59 · LAX 20:59 · JFK 23:59
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.