Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

QWebException: "tuple index out of range" while evaluating "website.image_url(lg[2], 'flag_image')" !!!! ?

By
isio-odoo
on 4/21/15, 12:29 PM 569 views


- - [21/Apr/2015 16:24:33] "GET /favicon.ico HTTP/1.1" 404 -

2015-04-21 16:24:34,344 11971 ERROR masajed2 openerp.addons.website.models.ir_http: 500 Internal Server Error:

Traceback (most recent call last):

File "/opt/odoo/odoo/addons/website/models/ir_http.py", line 196, in _handle_exception

response = super(ir_http, self)._handle_exception(exception)

File "/opt/odoo/odoo/openerp/addons/base/ir/ir_http.py", line 146, in _handle_exception

return request._handle_exception(exception)

File "/opt/odoo/odoo/openerp/http.py", line 659, in _handle_exception

return super(HttpRequest, self)._handle_exception(exception)

File "/opt/odoo/odoo/openerp/http.py", line 1358, in get_response

result.flatten()

File "/opt/odoo/odoo/openerp/http.py", line 1231, in flatten

self.response.append(self.render())

File "/opt/odoo/odoo/openerp/http.py", line 1225, in render

context=request.context)

File "/opt/odoo/odoo/openerp/api.py", line 241, in wrapper

return old_api(self, *args, **kwargs)

File "/opt/odoo/odoo/addons/website/models/ir_ui_view.py", line 172, in render

return super(view, self).render(cr, uid, id_or_xml_id, values=values, engine=engine, context=context)

File "/opt/odoo/odoo/openerp/api.py", line 241, in wrapper

return old_api(self, *args, **kwargs)

File "/opt/odoo/odoo/openerp/addons/base/ir/ir_ui_view.py", line 1029, in render

return self.pool[engine].render(cr, uid, id_or_xml_id, qcontext, loader=loader, context=context)

File "/opt/odoo/odoo/openerp/api.py", line 241, in wrapper

return old_api(self, *args, **kwargs)

File "/opt/odoo/odoo/openerp/addons/base/ir/ir_qweb.py", line 261, in render

return self.render_node(self.get_template(id_or_xml_id, qwebcontext), qwebcontext)

File "/opt/odoo/odoo/openerp/addons/base/ir/ir_qweb.py", line 300, in render_node

result = self.render_element(element, template_attributes, generated_attributes, qwebcontext)

File "/opt/odoo/odoo/openerp/addons/base/ir/ir_qweb.py", line 321, in render_element

g_inner.append(self.render_node(current_node, qwebcontext))

File "/opt/odoo/odoo/openerp/addons/base/ir/ir_qweb.py", line 298, in render_node

result = self._render_tag[t_render](self, element, template_attributes, generated_attributes, qwebcontext)

File "/opt/odoo/odoo/openerp/addons/base/ir/ir_qweb.py", line 445, in render_tag_call

return self.render(cr, uid, template, d)

File "/opt/odoo/odoo/openerp/api.py", line 241, in wrapper

return old_api(self, *args, **kwargs)

File "/opt/odoo/odoo/openerp/addons/base/ir/ir_qweb.py", line 261, in render

return self.render_node(self.get_template(id_or_xml_id, qwebcontext), qwebcontext)

File "/opt/odoo/odoo/openerp/addons/base/ir/ir_qweb.py", line 300, in render_node

result = self.render_element(element, template_attributes, generated_attributes, qwebcontext)

File "/opt/odoo/odoo/openerp/addons/base/ir/ir_qweb.py", line 321, in render_element

g_inner.append(self.render_node(current_node, qwebcontext))

File "/opt/odoo/odoo/openerp/addons/base/ir/ir_qweb.py", line 298, in render_node

result = self._render_tag[t_render](self, element, template_attributes, generated_attributes, qwebcontext)

File "/opt/odoo/odoo/openerp/addons/base/ir/ir_qweb.py", line 445, in render_tag_call

return self.render(cr, uid, template, d)

File "/opt/odoo/odoo/openerp/api.py", line 241, in wrapper

return old_api(self, *args, **kwargs)

File "/opt/odoo/odoo/openerp/addons/base/ir/ir_qweb.py", line 261, in render

return self.render_node(self.get_template(id_or_xml_id, qwebcontext), qwebcontext)

File "/opt/odoo/odoo/openerp/addons/base/ir/ir_qweb.py", line 300, in render_node

result = self.render_element(element, template_attributes, generated_attributes, qwebcontext)

File "/opt/odoo/odoo/openerp/addons/base/ir/ir_qweb.py", line 321, in render_element

g_inner.append(self.render_node(current_node, qwebcontext))

File "/opt/odoo/odoo/openerp/addons/base/ir/ir_qweb.py", line 300, in render_node

result = self.render_element(element, template_attributes, generated_attributes, qwebcontext)

File "/opt/odoo/odoo/openerp/addons/base/ir/ir_qweb.py", line 321, in render_element

g_inner.append(self.render_node(current_node, qwebcontext))

File "/opt/odoo/odoo/openerp/addons/base/ir/ir_qweb.py", line 300, in render_node

result = self.render_element(element, template_attributes, generated_attributes, qwebcontext)

File "/opt/odoo/odoo/openerp/addons/base/ir/ir_qweb.py", line 321, in render_element

g_inner.append(self.render_node(current_node, qwebcontext))

File "/opt/odoo/odoo/openerp/addons/base/ir/ir_qweb.py", line 300, in render_node

result = self.render_element(element, template_attributes, generated_attributes, qwebcontext)

File "/opt/odoo/odoo/openerp/addons/base/ir/ir_qweb.py", line 321, in render_element

g_inner.append(self.render_node(current_node, qwebcontext))

File "/opt/odoo/odoo/openerp/addons/base/ir/ir_qweb.py", line 300, in render_node

result = self.render_element(element, template_attributes, generated_attributes, qwebcontext)

File "/opt/odoo/odoo/openerp/addons/base/ir/ir_qweb.py", line 321, in render_element

g_inner.append(self.render_node(current_node, qwebcontext))

File "/opt/odoo/odoo/openerp/addons/base/ir/ir_qweb.py", line 300, in render_node

result = self.render_element(element, template_attributes, generated_attributes, qwebcontext)

File "/opt/odoo/odoo/openerp/addons/base/ir/ir_qweb.py", line 321, in render_element

g_inner.append(self.render_node(current_node, qwebcontext))

File "/opt/odoo/odoo/openerp/addons/base/ir/ir_qweb.py", line 300, in render_node

result = self.render_element(element, template_attributes, generated_attributes, qwebcontext)

File "/opt/odoo/odoo/openerp/addons/base/ir/ir_qweb.py", line 321, in render_element

g_inner.append(self.render_node(current_node, qwebcontext))

File "/opt/odoo/odoo/openerp/addons/base/ir/ir_qweb.py", line 300, in render_node

result = self.render_element(element, template_attributes, generated_attributes, qwebcontext)

File "/opt/odoo/odoo/openerp/addons/base/ir/ir_qweb.py", line 321, in render_element

g_inner.append(self.render_node(current_node, qwebcontext))

File "/opt/odoo/odoo/openerp/addons/base/ir/ir_qweb.py", line 300, in render_node

result = self.render_element(element, template_attributes, generated_attributes, qwebcontext)

File "/opt/odoo/odoo/openerp/addons/base/ir/ir_qweb.py", line 321, in render_element

g_inner.append(self.render_node(current_node, qwebcontext))

File "/opt/odoo/odoo/openerp/addons/base/ir/ir_qweb.py", line 298, in render_node

result = self._render_tag[t_render](self, element, template_attributes, generated_attributes, qwebcontext)

File "/opt/odoo/odoo/openerp/addons/base/ir/ir_qweb.py", line 431, in render_tag_if

return self.render_element(element, template_attributes, generated_attributes, qwebcontext)

File "/opt/odoo/odoo/openerp/addons/base/ir/ir_qweb.py", line 321, in render_element

g_inner.append(self.render_node(current_node, qwebcontext))

File "/opt/odoo/odoo/openerp/addons/base/ir/ir_qweb.py", line 300, in render_node

result = self.render_element(element, template_attributes, generated_attributes, qwebcontext)

File "/opt/odoo/odoo/openerp/addons/base/ir/ir_qweb.py", line 321, in render_element

g_inner.append(self.render_node(current_node, qwebcontext))

File "/opt/odoo/odoo/openerp/addons/base/ir/ir_qweb.py", line 298, in render_node

result = self._render_tag[t_render](self, element, template_attributes, generated_attributes, qwebcontext)

File "/opt/odoo/odoo/openerp/addons/base/ir/ir_qweb.py", line 422, in render_tag_foreach

ru.append(self.render_element(element, template_attributes, generated_attributes, copy_qwebcontext))

File "/opt/odoo/odoo/openerp/addons/base/ir/ir_qweb.py", line 321, in render_element

g_inner.append(self.render_node(current_node, qwebcontext))

File "/opt/odoo/odoo/openerp/addons/base/ir/ir_qweb.py", line 298, in render_node

result = self._render_tag[t_render](self, element, template_attributes, generated_attributes, qwebcontext)

File "/opt/odoo/odoo/openerp/addons/base/ir/ir_qweb.py", line 431, in render_tag_if

return self.render_element(element, template_attributes, generated_attributes, qwebcontext)

File "/opt/odoo/odoo/openerp/addons/base/ir/ir_qweb.py", line 321, in render_element

g_inner.append(self.render_node(current_node, qwebcontext))

File "/opt/odoo/odoo/openerp/addons/base/ir/ir_qweb.py", line 283, in render_node

for att, val in attrs:

File "/opt/odoo/odoo/addons/website/models/ir_qweb.py", line 61, in render_att_att

for att, val in super(QWeb, self).render_att_att(element, attribute_name, attribute_value, qwebcontext):

File "/opt/odoo/odoo/openerp/addons/base/ir/ir_qweb.py", line 357, in render_att_att

return [(attribute_name[6:], self.eval(attribute_value, qwebcontext))]

File "/opt/odoo/odoo/openerp/addons/base/ir/ir_qweb.py", line 205, in eval

raise_qweb_exception(message="Could not evaluate expression %r" % expr, expression=expr, template=template)

File "/opt/odoo/odoo/openerp/addons/base/ir/ir_qweb.py", line 202, in eval

return qwebcontext.safe_eval(expr)

File "/opt/odoo/odoo/openerp/addons/base/ir/ir_qweb.py", line 88, in safe_eval

return eval(expr, None, locals_dict, nocopy=True, locals_builtins=True)

File "/opt/odoo/odoo/openerp/tools/safe_eval.py", line 314, in safe_eval

return eval(c, globals_dict, locals_dict)

File "", line 1, in <module>

QWebException: "tuple index out of range" while evaluating

"website.image_url(lg[2], 'flag_image')"

0
isio-odoo
On 4/21/15, 12:31 PM

when i try to do a restaur of my data base he succed the restauration operation but when i go to connect with odoo to my data base 

he show me a 509 Internel server with this log 

thanks four your help 

Hi! Did you solve this issue?

Massinissa Belkassam
on 11/19/15, 4:34 AM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 4/21/15, 12:29 PM
Seen: 569 times
Last updated: 4/21/15, 12:31 PM