Skip to content

Unable to add a video in a lesson (JavaScript error – course-v2) #634

@yguerdat

Description

@yguerdat

Issue Description

Description

We are experiencing an issue when trying to add a video to a lesson.

This problem occurs on course-v2.

Instead of displaying the expected interface, the screen turns into a grey background, which most likely should contain a lightbox/modal. However, the lightbox does not appear and a JavaScript error is thrown instead.


🔍 Issue details

  • Context: Lesson editor
  • Feature: Add video
  • Platform version: course-v2
  • Expected UI behavior:
    A lightbox/modal should open to allow video selection or upload.
  • Actual behavior:
    • Grey overlay/background is displayed
    • No lightbox content is rendered
    • A JavaScript error occurs (see browser console)

❌ Actual behavior

  • The video cannot be added
  • The UI becomes blocked on a grey screen
  • User must refresh the page to recover

💡 Additional notes

This looks like:

  • A JavaScript runtime error preventing the lightbox from rendering

Let me know if you need:

  • The exact JavaScript error message
  • Browser and OS details
  • Screenshots or a screen recording

Happy to provide more information if needed.

Steps to Reproduce

No response

Expected Behavior

No response

Current Behavior

No response

Screenshots (optional)

No response

Operating System [e.g., Windows 10]

No response

Browser [e.g., Chrome, Firefox]

No response

Environment (locally, production, selfhosted)

No response

Please check the boxes that apply to this issue report.

  • I have searched the existing issues to make sure this is not a duplicate.
  • I have provided steps to reproduce the issue.
  • I have included relevant environment information.
  • I have included any relevant screenshots.
  • I understand that this is a voluntary contribution and that there is no guarantee of resolution.
  • I want to work on creating a PR for this issue if approved

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions