openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #27595
[Bug 1306370] [NEW] [trunk] Module website-blog error
Public bug reported:
Hi,
on Openerp V8 Alpha
Ubuntu 1310 server
revision :
server 5173
addons 9314
openerp-web 3971
After the last two revisions I have the following error when launching
openerp-server and makes it unusable.
2014-04-10 20:36:09,341 24722 INFO CYMex2014 openerp.modules.module: module website_blog: creating or updating database tables
2014-04-10 20:36:09,504 24722 INFO CYMex2014 openerp.modules.loading: module website_blog: loading data/website_blog_data.xml
2014-04-10 20:36:09,534 24722 INFO CYMex2014 openerp.modules.loading: module website_blog: loading views/website_blog_views.xml
2014-04-10 20:36:09,880 24722 INFO CYMex2014 openerp.modules.loading: module website_blog: loading views/website_blog_templates.xml
2014-04-10 20:36:10,136 24722 ERROR CYMex2014 openerp.addons.base.ir.ir_ui_view: Element '<xpath expr="//p[@name='blog_post_data']">' cannot be located in parent view
Error context:
View `Tags`
[view_id: 1237, xml_id: website_blog.opt_blog_post_short_tags, model: n/a, parent_id: 1235]
2014-04-10 20:36:10,144 24722 INFO CYMex2014 werkzeug: 127.0.0.1 - - [10/Apr/2014 20:36:10] "GET /favicon.ico HTTP/1.1" 500 -
2014-04-10 20:36:10,163 24722 ERROR CYMex2014 werkzeug: Error on request:
Traceback (most recent call last):
File "/usr/share/pyshared/werkzeug/serving.py", line 177, in run_wsgi
execute(self.server.app)
File "/usr/share/pyshared/werkzeug/serving.py", line 165, in execute
application_iter = app(environ, start_response)
File "/usr/local/lib/python2.7/dist-packages/openerp-8.0alpha1-py2.7.egg/openerp/service/server.py", line 273, in app
return self.app(e, s)
File "/usr/local/lib/python2.7/dist-packages/openerp-8.0alpha1-py2.7.egg/openerp/service/wsgi_server.py", line 213, in application
return werkzeug.contrib.fixers.ProxyFix(application_unproxied)(environ, start_response)
File "/usr/share/pyshared/werkzeug/contrib/fixers.py", line 144, in __call__
return self.app(environ, start_response)
File "/usr/local/lib/python2.7/dist-packages/openerp-8.0alpha1-py2.7.egg/openerp/service/wsgi_server.py", line 201, in application_unproxied
result = handler(environ, start_response)
File "/usr/local/lib/python2.7/dist-packages/openerp-8.0alpha1-py2.7.egg/openerp/http.py", line 1097, in __call__
return self.dispatch(environ, start_response)
File "/usr/local/lib/python2.7/dist-packages/openerp-8.0alpha1-py2.7.egg/openerp/http.py", line 1074, in __call__
return self.app(environ, start_wrapped)
File "/usr/share/pyshared/werkzeug/wsgi.py", line 579, in __call__
return self.app(environ, start_response)
File "/usr/local/lib/python2.7/dist-packages/openerp-8.0alpha1-py2.7.egg/openerp/http.py", line 1226, in dispatch
ir_http = request.registry['ir.http']
File "/usr/local/lib/python2.7/dist-packages/openerp-8.0alpha1-py2.7.egg/openerp/http.py", line 220, in registry
return openerp.modules.registry.RegistryManager.get(self.db) if self.db else None
File "/usr/local/lib/python2.7/dist-packages/openerp-8.0alpha1-py2.7.egg/openerp/modules/registry.py", line 268, in get
update_module)
File "/usr/local/lib/python2.7/dist-packages/openerp-8.0alpha1-py2.7.egg/openerp/modules/registry.py", line 298, in new
openerp.modules.load_modules(registry._db, force_demo, status, update_module)
File "/usr/local/lib/python2.7/dist-packages/openerp-8.0alpha1-py2.7.egg/openerp/modules/loading.py", line 335, in load_modules
force, status, report, loaded_modules, update_module)
File "/usr/local/lib/python2.7/dist-packages/openerp-8.0alpha1-py2.7.egg/openerp/modules/loading.py", line 243, in load_marked_modules
loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules, perform_checks=perform_checks)
File "/usr/local/lib/python2.7/dist-packages/openerp-8.0alpha1-py2.7.egg/openerp/modules/loading.py", line 176, in load_module_graph
_load_data(cr, module_name, idref, mode, kind='data')
File "/usr/local/lib/python2.7/dist-packages/openerp-8.0alpha1-py2.7.egg/openerp/modules/loading.py", line 117, in _load_data
tools.convert_file(cr, module_name, filename, idref, mode, noupdate, kind, report)
File "/usr/local/lib/python2.7/dist-packages/openerp-8.0alpha1-py2.7.egg/openerp/tools/convert.py", line 968, in convert_file
convert_xml_import(cr, module, fp, idref, mode, noupdate, report)
File "/usr/local/lib/python2.7/dist-packages/openerp-8.0alpha1-py2.7.egg/openerp/tools/convert.py", line 1054, in convert_xml_import
obj.parse(doc.getroot())
File "/usr/local/lib/python2.7/dist-packages/openerp-8.0alpha1-py2.7.egg/openerp/tools/convert.py", line 921, in parse
self._tags[rec.tag](self.cr, rec, n)
File "/usr/local/lib/python2.7/dist-packages/openerp-8.0alpha1-py2.7.egg/openerp/tools/convert.py", line 897, in _tag_template
return self._tag_record(cr, record, data_node)
File "/usr/local/lib/python2.7/dist-packages/openerp-8.0alpha1-py2.7.egg/openerp/tools/convert.py", line 850, in _tag_record
id = self.pool['ir.model.data']._update(cr, self.uid, rec_model, self.module, res, rec_id or False, not self.isnoupdate(data_node), noupdate=self.isnoupdate(data_node), mode=self.mode, context=rec_context )
File "/usr/local/lib/python2.7/dist-packages/openerp-8.0alpha1-py2.7.egg/openerp/addons/base/ir/ir_model.py", line 985, in _update
model_obj.write(cr, uid, [res_id], values, context=context)
File "/usr/local/lib/python2.7/dist-packages/openerp-8.0alpha1-py2.7.egg/openerp/addons/base/ir/ir_ui_view.py", line 202, in write
ret = super(view, self).write(cr, uid, ids, vals, context)
File "/usr/local/lib/python2.7/dist-packages/openerp-8.0alpha1-py2.7.egg/openerp/osv/orm.py", line 3942, in write
self._validate(cr, user, ids, context)
File "/usr/local/lib/python2.7/dist-packages/openerp-8.0alpha1-py2.7.egg/openerp/osv/orm.py", line 1584, in _validate
raise except_orm('ValidateError', '\n'.join(error_msgs))
ParseError: "ValidateError
The field(s) `arch` failed against a constraint: Invalid view definition
Error details:
Element '<xpath expr="//p[@name='blog_post_data']">' cannot be located in parent view
Error context:
View `Tags`
[view_id: 1237, xml_id: website_blog.opt_blog_post_short_tags, model: n/a, parent_id: 1235]" while parsing None:93, near
<t name="Blog Posts" t-name="website_blog.blog_post_short">
<t t-call="website_blog.index">
<div class="oe_structure">
<section class="mb0">
<div class="container">
<div class="row">
<t t-call="website.pager">
<t t-set="classname">pull-right</t>
</t>
<div class="col-md-12 mb32 mt16 text-center">
<h1 t-field="blog.name"/>
<h3 class="text-muted" t-field="blog.subtitle"/>
</div>
</div>
</div>
</section>
</div>
<div class="container">
<div class="row">
<div class="col-md-8 col-md-offset-2" t-ignore="True" id="main_column">
<div t-if="not blog_posts" class="container mb64">
<p class="css_editable_hidden">
<h1>No blog post yet.</h1>
</p>
<p groups="base.group_document_user">
Click on "Content" on the top menu to write your first blog post.
</p>
</div>
<div t-foreach="blog_posts" t-as="blog_post"
class="mb32">
<img class="img-circle pull-right mt16" t-att-
src="'/website/image?model=res.partner&field=image_small&id='+str(blog_post.author_id.id)"
style="width: 50px;"/>
<a t-attf-href="/blog/#{ slug(blog_post.blog_id) }/post/#{ slug(blog_post) }">
<h2 t-field="blog_post.name" class="mb4"/>
</a>
<div class="text-muted">
<h4 t-field="blog_post.subtitle" class="mb4 mt4"/>
<div name="blog_post_data" class="mb0">
<span t-field="blog_post.author_id" style="display: inline-block;" t-field-options="{ "widget": "contact", "fields": ["name"] }"/>
  <span t-field="blog_post.create_date" t-field-options="{"format": "MMMM yyyy"}"/>
<span t-if="len(blog_post.message_ids) > 0">
  <t t-esc="len(blog_post.message_ids)"/>
<t t-if="len(blog_post.message_ids) <= 1">comment</t>
<t t-if="len(blog_post.message_ids) > 1">comments</t>
</span>
<span t-if="not blog_post.website_published" class="label label-danger">not published</span>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="oe_structure"/>
</t>
</t>
2014-04-10 20:37:03,559 24722 INFO None openerp.http: Generating nondb routing
2014-04-10 20:37:03,578 24722 INFO None werkzeug: 127.0.0.1 - - [10/Apr/2014 20:37:03] "GET / HTTP/1.1" 200 -
2014-04-10 20:37:27,631 24722 INFO ? openerp.service.server: Initiating shutdown
** Affects: openobject-addons
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1306370
Title:
[trunk] Module website-blog error
Status in OpenERP Addons (modules):
New
Bug description:
Hi,
on Openerp V8 Alpha
Ubuntu 1310 server
revision :
server 5173
addons 9314
openerp-web 3971
After the last two revisions I have the following error when launching
openerp-server and makes it unusable.
2014-04-10 20:36:09,341 24722 INFO CYMex2014 openerp.modules.module: module website_blog: creating or updating database tables
2014-04-10 20:36:09,504 24722 INFO CYMex2014 openerp.modules.loading: module website_blog: loading data/website_blog_data.xml
2014-04-10 20:36:09,534 24722 INFO CYMex2014 openerp.modules.loading: module website_blog: loading views/website_blog_views.xml
2014-04-10 20:36:09,880 24722 INFO CYMex2014 openerp.modules.loading: module website_blog: loading views/website_blog_templates.xml
2014-04-10 20:36:10,136 24722 ERROR CYMex2014 openerp.addons.base.ir.ir_ui_view: Element '<xpath expr="//p[@name='blog_post_data']">' cannot be located in parent view
Error context:
View `Tags`
[view_id: 1237, xml_id: website_blog.opt_blog_post_short_tags, model: n/a, parent_id: 1235]
2014-04-10 20:36:10,144 24722 INFO CYMex2014 werkzeug: 127.0.0.1 - - [10/Apr/2014 20:36:10] "GET /favicon.ico HTTP/1.1" 500 -
2014-04-10 20:36:10,163 24722 ERROR CYMex2014 werkzeug: Error on request:
Traceback (most recent call last):
File "/usr/share/pyshared/werkzeug/serving.py", line 177, in run_wsgi
execute(self.server.app)
File "/usr/share/pyshared/werkzeug/serving.py", line 165, in execute
application_iter = app(environ, start_response)
File "/usr/local/lib/python2.7/dist-packages/openerp-8.0alpha1-py2.7.egg/openerp/service/server.py", line 273, in app
return self.app(e, s)
File "/usr/local/lib/python2.7/dist-packages/openerp-8.0alpha1-py2.7.egg/openerp/service/wsgi_server.py", line 213, in application
return werkzeug.contrib.fixers.ProxyFix(application_unproxied)(environ, start_response)
File "/usr/share/pyshared/werkzeug/contrib/fixers.py", line 144, in __call__
return self.app(environ, start_response)
File "/usr/local/lib/python2.7/dist-packages/openerp-8.0alpha1-py2.7.egg/openerp/service/wsgi_server.py", line 201, in application_unproxied
result = handler(environ, start_response)
File "/usr/local/lib/python2.7/dist-packages/openerp-8.0alpha1-py2.7.egg/openerp/http.py", line 1097, in __call__
return self.dispatch(environ, start_response)
File "/usr/local/lib/python2.7/dist-packages/openerp-8.0alpha1-py2.7.egg/openerp/http.py", line 1074, in __call__
return self.app(environ, start_wrapped)
File "/usr/share/pyshared/werkzeug/wsgi.py", line 579, in __call__
return self.app(environ, start_response)
File "/usr/local/lib/python2.7/dist-packages/openerp-8.0alpha1-py2.7.egg/openerp/http.py", line 1226, in dispatch
ir_http = request.registry['ir.http']
File "/usr/local/lib/python2.7/dist-packages/openerp-8.0alpha1-py2.7.egg/openerp/http.py", line 220, in registry
return openerp.modules.registry.RegistryManager.get(self.db) if self.db else None
File "/usr/local/lib/python2.7/dist-packages/openerp-8.0alpha1-py2.7.egg/openerp/modules/registry.py", line 268, in get
update_module)
File "/usr/local/lib/python2.7/dist-packages/openerp-8.0alpha1-py2.7.egg/openerp/modules/registry.py", line 298, in new
openerp.modules.load_modules(registry._db, force_demo, status, update_module)
File "/usr/local/lib/python2.7/dist-packages/openerp-8.0alpha1-py2.7.egg/openerp/modules/loading.py", line 335, in load_modules
force, status, report, loaded_modules, update_module)
File "/usr/local/lib/python2.7/dist-packages/openerp-8.0alpha1-py2.7.egg/openerp/modules/loading.py", line 243, in load_marked_modules
loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules, perform_checks=perform_checks)
File "/usr/local/lib/python2.7/dist-packages/openerp-8.0alpha1-py2.7.egg/openerp/modules/loading.py", line 176, in load_module_graph
_load_data(cr, module_name, idref, mode, kind='data')
File "/usr/local/lib/python2.7/dist-packages/openerp-8.0alpha1-py2.7.egg/openerp/modules/loading.py", line 117, in _load_data
tools.convert_file(cr, module_name, filename, idref, mode, noupdate, kind, report)
File "/usr/local/lib/python2.7/dist-packages/openerp-8.0alpha1-py2.7.egg/openerp/tools/convert.py", line 968, in convert_file
convert_xml_import(cr, module, fp, idref, mode, noupdate, report)
File "/usr/local/lib/python2.7/dist-packages/openerp-8.0alpha1-py2.7.egg/openerp/tools/convert.py", line 1054, in convert_xml_import
obj.parse(doc.getroot())
File "/usr/local/lib/python2.7/dist-packages/openerp-8.0alpha1-py2.7.egg/openerp/tools/convert.py", line 921, in parse
self._tags[rec.tag](self.cr, rec, n)
File "/usr/local/lib/python2.7/dist-packages/openerp-8.0alpha1-py2.7.egg/openerp/tools/convert.py", line 897, in _tag_template
return self._tag_record(cr, record, data_node)
File "/usr/local/lib/python2.7/dist-packages/openerp-8.0alpha1-py2.7.egg/openerp/tools/convert.py", line 850, in _tag_record
id = self.pool['ir.model.data']._update(cr, self.uid, rec_model, self.module, res, rec_id or False, not self.isnoupdate(data_node), noupdate=self.isnoupdate(data_node), mode=self.mode, context=rec_context )
File "/usr/local/lib/python2.7/dist-packages/openerp-8.0alpha1-py2.7.egg/openerp/addons/base/ir/ir_model.py", line 985, in _update
model_obj.write(cr, uid, [res_id], values, context=context)
File "/usr/local/lib/python2.7/dist-packages/openerp-8.0alpha1-py2.7.egg/openerp/addons/base/ir/ir_ui_view.py", line 202, in write
ret = super(view, self).write(cr, uid, ids, vals, context)
File "/usr/local/lib/python2.7/dist-packages/openerp-8.0alpha1-py2.7.egg/openerp/osv/orm.py", line 3942, in write
self._validate(cr, user, ids, context)
File "/usr/local/lib/python2.7/dist-packages/openerp-8.0alpha1-py2.7.egg/openerp/osv/orm.py", line 1584, in _validate
raise except_orm('ValidateError', '\n'.join(error_msgs))
ParseError: "ValidateError
The field(s) `arch` failed against a constraint: Invalid view definition
Error details:
Element '<xpath expr="//p[@name='blog_post_data']">' cannot be located in parent view
Error context:
View `Tags`
[view_id: 1237, xml_id: website_blog.opt_blog_post_short_tags, model: n/a, parent_id: 1235]" while parsing None:93, near
<t name="Blog Posts" t-name="website_blog.blog_post_short">
<t t-call="website_blog.index">
<div class="oe_structure">
<section class="mb0">
<div class="container">
<div class="row">
<t t-call="website.pager">
<t t-set="classname">pull-right</t>
</t>
<div class="col-md-12 mb32 mt16 text-center">
<h1 t-field="blog.name"/>
<h3 class="text-muted" t-field="blog.subtitle"/>
</div>
</div>
</div>
</section>
</div>
<div class="container">
<div class="row">
<div class="col-md-8 col-md-offset-2" t-ignore="True" id="main_column">
<div t-if="not blog_posts" class="container mb64">
<p class="css_editable_hidden">
<h1>No blog post yet.</h1>
</p>
<p groups="base.group_document_user">
Click on "Content" on the top menu to write your first blog post.
</p>
</div>
<div t-foreach="blog_posts" t-as="blog_post"
class="mb32">
<img class="img-circle pull-right mt16" t-att-
src="'/website/image?model=res.partner&field=image_small&id='+str(blog_post.author_id.id)"
style="width: 50px;"/>
<a t-attf-href="/blog/#{ slug(blog_post.blog_id) }/post/#{ slug(blog_post) }">
<h2 t-field="blog_post.name" class="mb4"/>
</a>
<div class="text-muted">
<h4 t-field="blog_post.subtitle" class="mb4 mt4"/>
<div name="blog_post_data" class="mb0">
<span t-field="blog_post.author_id" style="display: inline-block;" t-field-options="{ "widget": "contact", "fields": ["name"] }"/>
  <span t-field="blog_post.create_date" t-field-options="{"format": "MMMM yyyy"}"/>
<span t-if="len(blog_post.message_ids) > 0">
  <t t-esc="len(blog_post.message_ids)"/>
<t t-if="len(blog_post.message_ids) <= 1">comment</t>
<t t-if="len(blog_post.message_ids) > 1">comments</t>
</span>
<span t-if="not blog_post.website_published" class="label label-danger">not published</span>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="oe_structure"/>
</t>
</t>
2014-04-10 20:37:03,559 24722 INFO None openerp.http: Generating nondb routing
2014-04-10 20:37:03,578 24722 INFO None werkzeug: 127.0.0.1 - - [10/Apr/2014 20:37:03] "GET / HTTP/1.1" 200 -
2014-04-10 20:37:27,631 24722 INFO ? openerp.service.server: Initiating shutdown
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1306370/+subscriptions
Follow ups
References