Hi Community,
I get this "500 internal Server Error", can anyone please helpme to find out how to solve this issue in Odoo 12?
Can someone guide me?
______________________________________________________________________
2020-07-21 05:38:59,285 6812 INFO ? odoo: Odoo version 12.0-20190327
2020-07-21 05:38:59,300 6812 INFO ? odoo: Using configuration file at C:\Odoo 12.0\server\odoo.conf
2020-07-21 05:38:59,300 6812 INFO ? odoo: addons paths: ['c:\\users\\cristian\\appdata\\local\\openerp s.a\\odoo\\addons\\12.0', 'c:\\odoo 12.0\\server\\odoo\\addons', 'C:\\Odoo 12.0\\server\\odoo\\addons']
2020-07-21 05:38:59,300 6812 INFO ? odoo: database: openpg@localhost:5432
2020-07-21 05:39:01,222 6812 INFO ? odoo.addons.base.models.ir_actions_report: Will use the Wkhtmltopdf binary at C:\Odoo 12.0\thirdparty\wkhtmltopdf.exe
2020-07-21 05:39:02,863 6812 INFO ? odoo.service.server: HTTP service (werkzeug) running on Lenovo-PC:8069
2020-07-21 05:39:35,879 6812 INFO ? odoo.http: HTTP Configuring static files
2020-07-21 05:39:36,051 6812 INFO Haw odoo.modules.loading: loading 1 modules...
2020-07-21 05:39:36,067 6812 INFO Haw odoo.modules.loading: 1 modules loaded in 0.02s, 0 queries
2020-07-21 05:39:36,098 6812 INFO Haw odoo.modules.loading: loading 9 modules...
2020-07-21 05:39:36,679 6812 INFO Haw odoo.modules.loading: 9 modules loaded in 0.58s, 0 queries
2020-07-21 05:39:36,958 6812 INFO Haw odoo.modules.loading: Modules loaded.
2020-07-21 05:39:36,958 6812 INFO Haw odoo.addons.base.models.ir_http: Generating routing map
2020-07-21 05:39:39,005 6812 INFO Haw werkzeug: 192.168.1.68 - - [21/Jul/2020 05:39:39] "GET /web/database/selector HTTP/1.1" 200 - 20 0.969 2.125
2020-07-21 05:39:43,115 6812 INFO Haw werkzeug: 192.168.1.68 - - [21/Jul/2020 05:39:43] "GET /web?db=Conta HTTP/1.1" 302 - 1 0.000 0.844
2020-07-21 05:39:43,193 6812 INFO ? odoo.http: Generating nondb routing
2020-07-21 05:39:43,396 6812 INFO ? werkzeug: 192.168.1.68 - - [21/Jul/2020 05:39:43] "GET /web?db=Conta HTTP/1.1" 302 - 1 0.000 0.281
2020-07-21 05:39:43,849 6812 INFO Conta odoo.modules.loading: loading 1 modules...
2020-07-21 05:39:43,896 6812 INFO Conta odoo.modules.loading: 1 modules loaded in 0.03s, 0 queries
2020-07-21 05:39:44,600 6812 INFO Conta odoo.modules.loading: loading 44 modules...
2020-07-21 05:39:48,633 6812 INFO Conta odoo.addons.sms.wizard.send_sms: The `phonenumbers` Python module is not available. Phone number validation will be skipped. Try `pip3 install phonenumbers` to install it.
2020-07-21 05:39:50,445 6812 INFO Conta odoo.modules.loading: 44 modules loaded in 5.85s, 0 queries
2020-07-21 05:39:51,086 6812 INFO Conta odoo.modules.loading: Modules loaded.
2020-07-21 05:39:51,148 6812 INFO Conta odoo.addons.base.models.ir_http: Generating routing map
2020-07-21 05:39:51,508 6812 INFO Conta werkzeug: 192.168.1.68 - - [21/Jul/2020 05:39:51] "GET /web?db%3DConta HTTP/1.1" 303 - 11 0.656 7.440
2020-07-21 05:40:00,946 6812 INFO Conta odoo.models.unlink: User #1 deleted ir.attachment records with IDs: [1159, 1158, 1152, 1151, 286]
2020-07-21 05:40:02,086 6812 INFO Conta odoo.models.unlink: User #1 deleted ir.attachment records with IDs: [1167, 1163, 287]
2020-07-21 05:40:02,696 6812 INFO Conta werkzeug: 192.168.1.68 - - [21/Jul/2020 05:40:02] "GET /web/login HTTP/1.1" 500 - 507 2.922 8.250
2020-07-21 05:40:02,993 6812 INFO Conta odoo.addons.base.models.ir_cron: Starting job `Mail: Fetchmail Service`.
2020-07-21 05:40:03,071 6812 ERROR Conta werkzeug: Error on request:
Traceback (most recent call last):
File "C:\Odoo 12.0\python\lib\site-packages\werkzeug\serving.py", line 205, in run_wsgi
execute(self.server.app)
File "C:\Odoo 12.0\python\lib\site-packages\werkzeug\serving.py", line 193, in execute
application_iter = app(environ, start_response)
File "C:\Odoo 12.0\server\odoo\service\server.py", line 409, in app
return self.app(e, s)
File "C:\Odoo 12.0\server\odoo\service\wsgi_server.py", line 128, in application
return application_unproxied(environ, start_response)
File "C:\Odoo 12.0\server\odoo\service\wsgi_server.py", line 117, in application_unproxied
result = odoo.http.root(environ, start_response)
File "C:\Odoo 12.0\server\odoo\http.py", line 1318, in __call__
return self.dispatch(environ, start_response)
File "C:\Odoo 12.0\server\odoo\http.py", line 1291, in __call__
return self.app(environ, start_wrapped)
File "C:\Odoo 12.0\python\lib\site-packages\werkzeug\wsgi.py", line 599, in __call__
return self.app(environ, start_response)
File "C:\Odoo 12.0\server\odoo\http.py", line 1486, in dispatch
result = ir_http._dispatch()
File "c:\odoo 12.0\server\odoo\addons\auth_signup\models\ir_http.py", line 19, in _dispatch
return super(Http, cls)._dispatch()
File "c:\odoo 12.0\server\odoo\addons\web_editor\models\ir_http.py", line 22, in _dispatch
return super(IrHttp, cls)._dispatch()
File "c:\odoo 12.0\server\odoo\addons\http_routing\models\ir_http.py", line 394, in _dispatch
result = super(IrHttp, cls)._dispatch()
File "c:\odoo 12.0\server\odoo\addons\base\models\ir_http.py", line 207, in _dispatch
return cls._handle_exception(e)
File "c:\odoo 12.0\server\odoo\addons\website\models\ir_http.py", line 195, in _handle_exception
return super(Http, cls)._handle_exception(exception)
File "c:\odoo 12.0\server\odoo\addons\base\models\ir_http.py", line 177, in _handle_exception
return request._handle_exception(exception)
File "C:\Odoo 12.0\server\odoo\http.py", line 774, in _handle_exception
return super(HttpRequest, self)._handle_exception(exception)
File "C:\Odoo 12.0\server\odoo\http.py", line 312, in _handle_exception
raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
File "C:\Odoo 12.0\server\odoo\tools\pycompat.py", line 87, in reraise
raise value
File "c:\odoo 12.0\server\odoo\addons\base\models\ir_http.py", line 203, in _dispatch
result = request.dispatch()
File "C:\Odoo 12.0\server\odoo\http.py", line 833, in dispatch
r = self._call_function(**self.params)
File "C:\Odoo 12.0\server\odoo\http.py", line 344, in _call_function
return checked_call(self.db, *args, **kwargs)
File "C:\Odoo 12.0\server\odoo\service\model.py", line 97, in wrapper
return f(dbname, *args, **kwargs)
File "C:\Odoo 12.0\server\odoo\http.py", line 340, in checked_call
result.flatten()
File "C:\Odoo 12.0\server\odoo\http.py", line 1268, in flatten
self.response.append(self.render())
File "C:\Odoo 12.0\server\odoo\http.py", line 1261, in render
return env["ir.ui.view"].render_template(self.template, self.qcontext)
File "c:\odoo 12.0\server\odoo\addons\base\models\ir_ui_view.py", line 1284, in render_template
return self.browse(self.get_view_id(template)).render(values, engine)
File "c:\odoo 12.0\server\odoo\addons\website\models\ir_ui_view.py", line 318, in render
return super(View, self).render(values, engine=engine, minimal_qcontext=minimal_qcontext)
File "c:\odoo 12.0\server\odoo\addons\web_editor\models\ir_ui_view.py", line 27, in render
return super(IrUiView, self).render(values=values, engine=engine, minimal_qcontext=minimal_qcontext)
File "c:\odoo 12.0\server\odoo\addons\base\models\ir_ui_view.py", line 1293, in render
return self.env[engine].render(self.id, qcontext)
File "c:\odoo 12.0\server\odoo\addons\base\models\ir_qweb.py", line 59, in render
result = super(IrQWeb, self).render(id_or_xml_id, values=values, **context)
File "c:\odoo 12.0\server\odoo\addons\base\models\qweb.py", line 274, in render
self.compile(template, options)(self, body.append, values or {})
File "c:\odoo 12.0\server\odoo\addons\base\models\qweb.py", line 348, in _compiled_fn
raise e
File "c:\odoo 12.0\server\odoo\addons\base\models\qweb.py", line 346, in _compiled_fn
return compiled(self, append, new, options, log)
File "<template>", line 1, in template_173_5
File "c:\odoo 12.0\server\odoo\addons\base\models\qweb.py", line 348, in _compiled_fn
raise e
File "c:\odoo 12.0\server\odoo\addons\base\models\qweb.py", line 346, in _compiled_fn
return compiled(self, append, new, options, log)
File "<template>", line 1, in template_web_login_layout_10
File "c:\odoo 12.0\server\odoo\addons\base\models\qweb.py", line 348, in _compiled_fn
raise e
File "c:\odoo 12.0\server\odoo\addons\base\models\qweb.py", line 346, in _compiled_fn
return compiled(self, append, new, options, log)
File "<template>", line 1, in template_website_layout_61
File "<template>", line 2, in body_call_content_60
File "c:\odoo 12.0\server\odoo\addons\base\models\qweb.py", line 353, in _compiled_fn
raise QWebException("Error to render compiling AST", e, path, node and etree.tostring(node[0], encoding='unicode'), name)
odoo.addons.base.models.qweb.QWebException: object of type 'NoneType' has no len()
Traceback (most recent call last):
File "c:\odoo 12.0\server\odoo\addons\base\models\qweb.py", line 346, in _compiled_fn
return compiled(self, append, new, options, log)
File "<template>", line 1, in template_website_language_selector_112
TypeError: object of type 'NoneType' has no len()
Error to render compiling AST
TypeError: object of type 'NoneType' has no len()
Template: website.language_selector
Path: /templates/t/ul
Node: <ul class="js_language_selector mb0 list-inline" t-if="(request and request.is_frontend_multilang and len(languages) > 1) or (website and (editable or translatable))">
<li class="list-inline-item">
<div class="dropup">
<button class="btn btn-sm btn-secondary dropdown-toggle" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
<span t-esc="list(filter(lambda lg : lg[0] == lang, languages))[0][1].split('/').pop()"/>
<span class="caret ml4"/>
</button>
<div class="dropdown-menu" role="menu">
<t t-foreach="languages" t-as="lg">
<a t-att-href="url_for(request.httprequest.path + '?' + keep_query(), lang=lg[0])" class="dropdown-item js_change_lang" t-att-data-default-lang="(editable or translatable) and 'true' if website and lg[0] == website.default_lang_code else None" t-att-data-lang="lg[0]">
<t t-esc="lg[1].split('/').pop()"/>
</a>
</t>
</div>
</div>
</li>
<li groups="website.group_website_publisher" class="list-inline-item">
<t t-set="url_return" t-value="url_for('', '[lang]') + '?' + keep_query()"/>
<a t-attf-href="/web#action=base.action_view_base_language_install&website_id=#{website.id if website else ''}&url_return=#{url_return}">
<i class="fa fa-plus-circle"/>
Añadir un idioma...
</a>
</li>
</ul> - - -
2020-07-21 05:40:03,899 6812 INFO Conta odoo.addons.fetchmail.models.fetchmail: start checking for new emails on imap server Servidor entrante Help Desk
2020-07-21 05:40:06,540 6812 INFO Conta odoo.addons.fetchmail.models.fetchmail: Fetched 0 email(s) on imap server Servidor entrante Help Desk; 0 succeeded, 0 failed.
2020-07-21 05:40:06,915 6812 INFO Conta odoo.addons.fetchmail.models.fetchmail: start checking for new emails on imap server Servidor entrante Conta
2020-07-21 05:40:07,805 6812 INFO Conta odoo.addons.fetchmail.models.fetchmail: Fetched 0 email(s) on imap server Servidor entrante Conta; 0 succeeded, 0 failed.