Error while saving the sales order

I am using Frappe version 4 on Windows 8 OS. I am getting the following error when i try to save the Sales Order

Traceback (innermost last):
File “/home/erpnext/webapps/digitales/frappe-bench/apps/frappe/frappe/”, line 51, in application
response = frappe.handler.handle()
File “/home/erpnext/webapps/digitales/frappe-bench/apps/frappe/frappe/”, line 66, in handle
File “/home/erpnext/webapps/digitales/frappe-bench/apps/frappe/frappe/”, line 89, in execute_cmd
ret =, **frappe.form_dict)
File “/home/erpnext/webapps/digitales/frappe-bench/apps/frappe/frappe/”, line 532, in call
return fn(*args, **newargs)
File “/home/erpnext/webapps/digitales/frappe-bench/apps/frappe/frappe/widgets/form/”, line 30, in savedocs
frappe.msgprint(frappe._(‘Did not save’))
File “/home/erpnext/webapps/digitales/frappe-bench/apps/frappe/frappe/”, line 45, in _
return get_full_dict(local.lang).get(msg, msg)
File “/home/erpnext/webapps/digitales/frappe-bench/apps/frappe/frappe/”, line 141, in get_full_dict
return frappe.cache().get_value(“lang:” + lang, lambda:load_lang(lang))
TypeError: coercing to Unicode: need string or buffer, NoneType found

Makarand Bauskar

Check your sites/languages.txt

Do you have local edits?

Hi, we did not made any changes in languages.txt. Here are the contents of the languages.txt file

ar ﺎﻠﻋﺮﺒﻳﺓ
de deutsch
ca català
el ελληνικά
en english
es español
fr français
hi हिंदी
hr hrvatski
bs bosanski
is Íslenska
id Indonesia
it italiano
ja 日本語
kn ಕನ್ನಡ
ko 한국의
nl nederlands
pl polski
pt português
pt-BR português brasileiro
ro român
ru русский
sr српски
ta தமிழ்
th ไทย
tr Türk
vi việt
zh-cn 中国(简体)
zh-tw 中國(繁體)

Thanks & Regards,
Makarand Bauskar

Can’t figure why lang is None, it defaults to en. Do you have local edits?

We dont have any local edits, Is their any commands or option that will help us to reset the language as “en” by default.

Makarand Bauskar

Do you have a “lang” property in site_config.json ?

Hi, No we don’t have “lang” property in site_config.json

Really strange. Can’t figure what is wrong. Are you a developer? can you debug?