Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug : Unable to create course from LMS UI #793

Closed
richardadinugraha opened this issue May 1, 2024 · 2 comments
Closed

Bug : Unable to create course from LMS UI #793

richardadinugraha opened this issue May 1, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@richardadinugraha
Copy link

richardadinugraha commented May 1, 2024

Describe the bug
When trying to create course from LMS UI nothing happened
the button save does nothing, and the course is not created.

To Reproduce
Steps to reproduce the behavior:

  1. After installing frappe 15 & lms 15. no error occured.
  2. login and try to create course from the lms page.
  3. fill all the required field, then hit save.
  4. nothing happened.
  5. inspect element, traceback as specified below.
    additional context:
    *when trying to create from frappe doctype page, successfully created the course.

Additional context
reviewed the code i think its because of the
get_meta() function
line 43 course_name = app_path.split("/")[1] > the course hasn't been created yet, since its the first time were creating it.
so i return NoneType?

Expected behavior
A clear and concise description of what you expected to happen.

Traceback (most recent call last):
File "apps/frappe/frappe/website/serve.py", line 20, in get_response
response = renderer_instance.render()
File "apps/frappe/frappe/website/page_renderers/template_page.py", line 84, in render
html = self.get_html()
File "apps/frappe/frappe/website/utils.py", line 523, in cache_html_decorator
html = func(*args, **kwargs)
File "apps/frappe/frappe/website/page_renderers/template_page.py", line 95, in get_html
self.update_context()
File "apps/frappe/frappe/website/page_renderers/template_page.py", line 163, in update_context
data = self.run_pymodule_method("get_context")
File "apps/frappe/frappe/website/page_renderers/template_page.py", line 225, in run_pymodule_method
return method()
File "apps/lms/lms/www/lms.py", line 13, in get_context
context.meta = get_meta(app_path)
File "apps/lms/lms/www/lms.py", line 51, in get_meta
"title": course.title,
AttributeError: 'NoneType' object has no attribute 'title'

Screenshots

Desktop (please complete the following information):

  • OS: Linux Ubuntu 22.04
@richardadinugraha richardadinugraha added the bug Something isn't working label May 1, 2024
@pateljannat
Copy link
Collaborator

@richardadinugraha I am unable to replicate the issue. Can you ensure that the app is updated and try creating a course again? Let me know if you face any issues.

@pateljannat
Copy link
Collaborator

Closing due to inactivity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants