LMS dos not expand acorrdion lessons - Forum | JoomShaper
Solved Extensions

LMS dos not expand acorrdion lessons

Asked by Alvaro 5 months ago Last activity 5 months ago

Hello,

I am experiencing an issue with the accordion (course topics/lessons) in SP LMS.

The accordion works correctly in Firefox, but it does not expand in Chrome or Edge. After checking the browser console, I found the following error:

Uncaught TypeError: COLLAPSE: Option "parent" provided type "string" but expected type "(null|element)"

This error appears to be related to Bootstrap 5.3.8. It seems that SP LMS is initializing the Collapse component using the "parent" option as a string (e.g. "#accordion"), while Bootstrap 5.3 requires a DOM element instead.

Because of this, the accordion fails to initialize properly in Chromium-based browsers.

My environment:

  • Joomla version: 5.4.5.1
  • SP LMS version: Last Available
  • Template: Edulif but not working in no one
  • Bootstrap version: 5.3.8

From my understanding, this could be fixed by converting the "parent" option to a DOM element (e.g. document.querySelector(...)) or by using the data-bs-parent attribute properly without conflicting JS initialization.

Could you please confirm if this is a known issue and provide a fix or update?

Thank you in advance.

Accepted answer

Marked as the solution
Alvaro Asked this

Solved Upgrading to PHP 8.5.5

Toufiq Senior Staff

Glad to know that your issue is solved.

5 more replies

Toufiq Senior Staff

Hi there,

Thank you for reaching out, and I apologize for any inconvenience caused by this oversight. To better address the issue, could you kindly provide Joomla administrator access? This will enable me to thoroughly investigate the matter and provide you with a prompt resolution.

Best regards,

Toufiqur Rahman (Team Lead, Support)

Alvaro Asked this

Hello,

I have granted you access to the course so you can review the issue directly. You can access it using the following link:

https://www.sonarinformatica.com/nuestros-cursos/todos-los-cursos/3-curso-de-android

I am including the username and password in the hidden content section.

Please let me know if you need any additional information.

Best regards,

Alvaro Asked this

I works with firefox, but not with Edge

Alvaro Asked this

I made a video, upload to youtube

https://www.youtube.com/watch?v=aOeBnTHq_To

this is not only me, it hapens to my students.....

Toufiq Senior Staff

It works fine windows Edge & Mac edge browser.

edge-windows.jpeg

Alvaro Asked this

no, it is not working, chrome edge, tried 3 computers, and 3 of my students tried in their locations, only works with firefox

Log in to reply.