本文介绍了错误openerp.addons.website.models.ir_http:500内部服务器错误:从odoo注销后的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Ubuntu 14.04中使用odoo v9社区,在所有工作完成后,安装都已完美完成.

I am using odoo v9 community in Ubuntu 14.04 installation is perfectly done after all works.

但是当我安装odoo的网站模块并且从odoo注销后,它显示以下错误:500内部服务器错误"和我的日志:

but when i install website module of odoo and after i log out from odoo it show following error:"500: Internal Server Error"and my log:

"Traceback (most recent call last):
  File "/opt/odoo96/addons/website/models/ir_http.py", line 242, in _handle_exception
    response = super(ir_http, self)._handle_exception(exception)
  File "/opt/odoo96/openerp/addons/base/ir/ir_http.py", line 147, in _handle_exception
    return request._handle_exception(exception)
  File "/opt/odoo96/openerp/http.py", line 738, in _handle_exception
    return super(HttpRequest, self)._handle_exception(exception)
  File "/opt/odoo96/openerp/addons/base/ir/ir_http.py", line 172, in _dispatch
    result = request.dispatch()
  File "/opt/odoo96/openerp/http.py", line 769, in dispatch
    r = self._call_function(**self.params)
  File "/opt/odoo96/openerp/http.py", line 316, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/opt/odoo96/openerp/service/model.py", line 118, in wrapper
    return f(dbname, *args, **kwargs)
  File "/opt/odoo96/openerp/http.py", line 309, in checked_call
    result = self.endpoint(*a, **kw)
  File "/opt/odoo96/openerp/http.py", line 888, in __call__
    return self.method(*args, **kw)
  File "/opt/odoo96/openerp/http.py", line 466, in response_wrap
    response = f(*args, **kw)
  File "/opt/odoo96/addons/website/controllers/main.py", line 44, in index
    return request.registry['ir.http'].reroute(first_menu.url)
  File "/opt/odoo96/addons/website/models/ir_http.py", line 209, in reroute
    return self._dispatch()
  File "/opt/odoo96/addons/website/models/ir_http.py", line 175, in _dispatch
    key = self.get_page_key()
  File "/opt/odoo96/addons/website/models/ir_http.py", line 94, in get_page_key
    return (self._name, "cache", request.uid, request.lang, request.httprequest.full_path)
AttributeError: 'Request' object has no attribute 'full_path'"

但是当我卸载Web模块时,它们又恢复正常了.我该如何解决?

but when i uninstall web module all working well again. how can i solve this ?

谢谢

推荐答案

这是一个依赖性问题.安装较新版本的werkzeug.

Its a dependency issue.Install a newer version of werkzeug.

https://github.com/odoo/odoo/issues/10184

pip install werkzeug==0.9.4

应该做到这一点.

这篇关于错误openerp.addons.website.models.ir_http:500内部服务器错误:从odoo注销后的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-31 18:26