Print Format Error - DocType None not found

Hello,
we have an Erpnext hosted on the frappecloud and if I want to edit some print format then I get the blank page like this:

If I try create a new one then:

image

These versions of apps:

image

Can somebody help me, please?

Thank you.

Jiri Sir

I have tried insert new “Printer Format” doc from System Console for get more error details:
Console:

doc = {'name': 'Dunning Letter Bee',  'doctype': 'Print Format','docstatus': 0, ...
dn = frappe.get_doc(doc)
dn.insert()

And the result:

Traceback (most recent call last):
  File "apps/frappe/frappe/desk/doctype/system_console/system_console.py", line 32, in run
    safe_exec(self.console, script_filename="System Console")
  File "apps/frappe/frappe/utils/safe_exec.py", line 100, in safe_exec
    exec(
  File "<serverscript>: system_console", line 4, in <module>
  File "apps/frappe/frappe/model/document.py", line 288, in insert
    self.validate_higher_perm_levels()
  File "apps/frappe/frappe/model/document.py", line 736, in validate_higher_perm_levels
    has_access_to = self.get_permlevel_access()
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "apps/frappe/frappe/model/document.py", line 757, in get_permlevel_access
    for perm in self.get_permissions():
                ^^^^^^^^^^^^^^^^^^^^^^
  File "apps/frappe/frappe/model/document.py", line 772, in get_permissions
    permissions = frappe.get_meta(self.parenttype).permissions
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "apps/frappe/frappe/__init__.py", line 1313, in get_meta
    return frappe.model.meta.get_meta(doctype, cached=cached)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "apps/frappe/frappe/model/meta.py", line 63, in get_meta
    meta = Meta(doctype)
           ^^^^^^^^^^^^^
  File "apps/frappe/frappe/model/meta.py", line 117, in __init__
    super().__init__("DocType", doctype)
  File "apps/frappe/frappe/model/document.py", line 126, in __init__
    self.load_from_db()
  File "apps/frappe/frappe/model/meta.py", line 123, in load_from_db
    super().load_from_db()
  File "apps/frappe/frappe/model/document.py", line 172, in load_from_db
    frappe.throw(
  File "apps/frappe/frappe/__init__.py", line 602, in throw
    msgprint(
  File "apps/frappe/frappe/__init__.py", line 567, in msgprint
    _raise_exception()
  File "apps/frappe/frappe/__init__.py", line 518, in _raise_exception
    raise exc
frappe.exceptions.DoesNotExistError: DocType None not found

Finally, I have found the issue.
System let me somehow customize “Print Format” Form. I remember I wanted allow “Allow Import”. I check the checkbox and press “Save”.
It is weird but it was visible and in function, because it generated these property setters:
image

that screw up the form view.