frappe / wiki

Free and Open Source Wiki built on top of Frappe
https://frappe.io/wiki
MIT License
242 stars 200 forks source link

Document for Customer Portal doesn't work #240

Open huembw opened 6 months ago

huembw commented 6 months ago

Information about bug

Traceback (most recent call last):
  File "apps/frappe/frappe/website/serve.py", line 20, in get_response
    response = renderer_instance.render()
               ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "apps/wiki/wiki/wiki/doctype/wiki_page/wiki_renderer.py", line 45, in render
    html = self.get_html()
           ^^^^^^^^^^^^^^^
  File "apps/frappe/frappe/website/utils.py", line 521, in cache_html_decorator
    html = func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "apps/frappe/frappe/website/page_renderers/document_page.py", line 50, in get_html
    self.update_context()
  File "apps/frappe/frappe/website/page_renderers/document_page.py", line 65, in update_context
    ret = self.doc.get_context(self.context)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "apps/wiki/wiki/wiki/doctype/wiki_page/wiki_page.py", line 218, in get_context
    wiki_space = frappe.get_doc("Wiki Space", wiki_space_name)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "apps/frappe/frappe/__init__.py", line 1373, in get_doc
    doc = frappe.model.document.get_doc(*args, **kwargs)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "apps/frappe/frappe/model/document.py", line 87, in get_doc
    return controller(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "apps/frappe/frappe/model/document.py", line 128, in __init__
    self.load_from_db()
  File "apps/frappe/frappe/model/document.py", line 174, in load_from_db
    frappe.throw(
  File "apps/frappe/frappe/__init__.py", line 681, in throw
    msgprint(
  File "apps/frappe/frappe/__init__.py", line 646, in msgprint
    _raise_exception()
  File "apps/frappe/frappe/__init__.py", line 597, in _raise_exception
    raise exc
frappe.exceptions.DoesNotExistError: Wiki Space None not found

Module

other

Version

15

Installation method

None

Relevant log output / Stack trace / Full Error Message.

No response

wojosc commented 5 months ago

running into same issue after fresh install

ERPNext: v15.25.0 (HEAD)

Frappe Framework: v15.28.0 (HEAD)

Wiki: v2.0.0 (HEAD)

wojosc commented 5 months ago

just found out that creating Wiki Pages in frappe works a little different than usual... use_wiki

huembw commented 5 months ago

Not very relevant to that topic, but the toolbox of editing content is placed at the top of page. That's more convenient than its position on app Gameplan image

volkswagner commented 1 month ago

Any update on this issue. I'm seeing the same problem. This also may be similar to issue: 270 https://github.com/frappe/wiki/issues/270