I cannot edit doctype,all controls disabled

http://s15.postimg.org/vijueyyhl/image.png

no error logs

thanks

I logged in as Administrator

You might not have enabled developer mode in your site config.
Inside you sites folder you will find a site_config.json file. the file contains db_name and db_password.
Add the following line to that file->
“developer_mode”: 1

4 Likes

I added it,but I still cannot edit or new doctype.

No permission to ‘Save’ DocType

i just tried the same on my local system, it worked fine.
@pdvyas any reason you can think of ?

last week,it worked fine.
after I run “bench update” in the morning, i found i can not new or edit any doctype, all the controls disabled.

this is my json data,can help you?

{
“docs”: [
{
“issingle”: 1,
“modified_by”: “Administrator”,
“description”: “Settings for the About Us Page”,
“idx”: 1,
“fields”: [
{
“parent”: “About Us Settings”,
“creation”: “2013-03-19 12:02:15”,
“modified”: “2015-03-31 18:50:47.503017”,
“owner”: “Administrator”,
“read_only”: 0,
“modified_by”: “Administrator”,
“name”: “dc36bdd119”,
“idx”: 1,
“doctype”: “DocField”,
“label”: “Help”,
“parenttype”: “DocType”,
“options”: “<div class="alert">Link for About Us Page is "/about"”,
“fieldname”: “help”,
“fieldtype”: “HTML”,
“docstatus”: 0,
“permlevel”: 0,
“parentfield”: “fields”
},
{
“description”: “Introduce your company to the website visitor.”,
“parent”: “About Us Settings”,
“creation”: “2013-03-19 12:02:15”,
“modified”: “2015-03-31 18:50:47.503017”,
“in_list_view”: 1,
“owner”: “Administrator”,
“read_only”: 0,
“modified_by”: “Administrator”,
“name”: “53eb3dfa23”,
“idx”: 2,
“doctype”: “DocField”,
“label”: “Company Introduction”,
“parenttype”: “DocType”,
“fieldname”: “company_introduction”,
“fieldtype”: “Text Editor”,
“docstatus”: 0,
“permlevel”: 0,
“parentfield”: “fields”
},
{
“parent”: “About Us Settings”,
“creation”: “2013-03-19 12:02:15”,
“modified”: “2015-03-31 18:50:47.503017”,
“owner”: “Administrator”,
“read_only”: 0,
“modified_by”: “Administrator”,
“name”: “b0d1b7c8c8”,
“idx”: 3,
“doctype”: “DocField”,
“label”: “Org History”,
“parenttype”: “DocType”,
“fieldname”: “sb0”,
“fieldtype”: “Section Break”,
“docstatus”: 0,
“permlevel”: 0,
“parentfield”: “fields”
},
{
“description”: “"Company History"”,
“parent”: “About Us Settings”,
“creation”: “2013-03-19 12:02:15”,
“modified”: “2015-03-31 18:50:47.503017”,
“in_list_view”: 1,
“owner”: “Administrator”,
“read_only”: 0,
“modified_by”: “Administrator”,
“name”: “5dd351598d”,
“idx”: 4,
“doctype”: “DocField”,
“label”: “Org History Heading”,
“parenttype”: “DocType”,
“fieldname”: “company_history_heading”,
“fieldtype”: “Data”,
“docstatus”: 0,
“permlevel”: 0,
“parentfield”: “fields”
},
{
“parent”: “About Us Settings”,
“creation”: “2013-03-19 12:02:15”,
“modified”: “2015-03-31 18:50:47.503017”,
“owner”: “Administrator”,
“read_only”: 0,
“modified_by”: “Administrator”,
“name”: “6facc79208”,
“idx”: 5,
“doctype”: “DocField”,
“label”: “Org History”,
“parenttype”: “DocType”,
“options”: “Company History”,
“fieldname”: “company_history”,
“fieldtype”: “Table”,
“docstatus”: 0,
“permlevel”: 0,
“parentfield”: “fields”
},
{
“parent”: “About Us Settings”,
“creation”: “2013-03-19 12:02:15”,
“modified”: “2015-03-31 18:50:47.503017”,
“owner”: “Administrator”,
“read_only”: 0,
“modified_by”: “Administrator”,
“name”: “0a9ecca73f”,
“idx”: 6,
“doctype”: “DocField”,
“label”: “Team Members”,
“parenttype”: “DocType”,
“fieldname”: “sb1”,
“fieldtype”: “Section Break”,
“docstatus”: 0,
“permlevel”: 0,
“parentfield”: “fields”
},
{
“description”: “"Team Members" or "Management"”,
“parent”: “About Us Settings”,
“creation”: “2013-03-19 12:02:15”,
“modified”: “2015-03-31 18:50:47.503017”,
“owner”: “Administrator”,
“read_only”: 0,
“modified_by”: “Administrator”,
“name”: “97ecfde26e”,
“idx”: 7,
“doctype”: “DocField”,
“label”: “Team Members Heading”,
“parenttype”: “DocType”,
“fieldname”: “team_members_heading”,
“fieldtype”: “Data”,
“docstatus”: 0,
“permlevel”: 0,
“parentfield”: “fields”
},
{
“parent”: “About Us Settings”,
“creation”: “2013-03-19 12:02:15”,
“modified”: “2015-03-31 18:50:47.503017”,
“owner”: “Administrator”,
“read_only”: 0,
“modified_by”: “Administrator”,
“name”: “5baee55d4c”,
“idx”: 8,
“doctype”: “DocField”,
“label”: “Team Members”,
“parenttype”: “DocType”,
“options”: “About Us Team Member”,
“fieldname”: “team_members”,
“fieldtype”: “Table”,
“docstatus”: 0,
“permlevel”: 0,
“parentfield”: “fields”
},
{
“description”: “More content for the bottom of the page.”,
“parent”: “About Us Settings”,
“creation”: “2013-03-19 12:02:15”,
“modified”: “2015-03-31 18:50:47.503017”,
“owner”: “Administrator”,
“read_only”: 0,
“modified_by”: “Administrator”,
“name”: “14eb5c078f”,
“idx”: 9,
“doctype”: “DocField”,
“label”: “Footer”,
“parenttype”: “DocType”,
“fieldname”: “footer”,
“fieldtype”: “Text Editor”,
“docstatus”: 0,
“permlevel”: 0,
“parentfield”: “fields”
}
],
“creation”: “2013-03-19 12:02:15”,
“doctype”: “DocType”,
“module”: “Website”,
“name”: “About Us Settings”,
“modified”: “2015-02-05 05:11:33.993407”,
“owner”: “Administrator”,
“docstatus”: 0,
“permissions”: [
{
“parent”: “About Us Settings”,
“read”: 1,
“creation”: “2013-03-19 12:02:15”,
“share”: 1,
“modified”: “2015-03-31 18:50:47.503017”,
“report”: 0,
“owner”: “Administrator”,
“apply_user_permissions”: 0,
“modified_by”: “Administrator”,
“name”: “78d1c8a337”,
“idx”: 1,
“create”: 1,
“doctype”: “DocPerm”,
“submit”: 0,
“email”: 1,
“write”: 1,
“parenttype”: “DocType”,
“role”: “Website Manager”,
“print”: 1,
“docstatus”: 0,
“permlevel”: 0,
“parentfield”: “permissions”
}
],
“document_type”: “Other”,
“icon”: “icon-group”
}
],
“docinfo”: {
“shared”: [],
“assignments”: [],
“attachments”: [],
“comments”: [],
“permissions”: {
“apply_user_permissions”: {},
“read”: 1,
“user_permission_doctypes”: {},
“create”: 1,
“share”: 1,
“submit”: 0,
“write”: 1,
“amend”: 0,
“report”: 1,
“export”: 0,
“set_user_permissions”: 0,
“print”: 1,
“import”: 0,
“email”: 1,
“cancel”: 0,
“delete”: 1
}
}
}

Have you set “developer_mode”: 1 in site_config.json or common_site_config.json and also did a Reload from user’s menu?

-Anand.

1 Like

:sweat_smile:
Awesome!
Yesterday I probably forgot to reload

Hey no worries. This part isn’t at all intuitive. :smile:

-Anand.

1 Like