LMS Dos Not Expand Acorrdion Lessons - Question | JoomShaper

LMS Dos Not Expand Acorrdion Lessons

Alvaro

Alvaro

Extension 1 week 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.

0
10 Answers
Alvaro
Alvaro
Accepted Answer
1 week ago #222869

Solved Upgrading to PHP 8.5.5

0
Toufiq
Toufiq
Accepted Answer
Senior Staff 1 week ago #222879

Glad to know that your issue is solved.

0
Toufiq
Toufiq
Accepted Answer
Senior Staff 1 week ago #222598

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)

0
Alvaro
Alvaro
Accepted Answer
1 week ago #222668

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,

0
Toufiq
Toufiq
Accepted Answer
Senior Staff 1 week ago #222671
0
Alvaro
Alvaro
Accepted Answer
1 week ago #222672

I works with firefox, but not with Edge

0
Toufiq
Toufiq
Accepted Answer
Senior Staff 1 week ago #222703

Also, The Edge browser works fine.

https://prnt.sc/jNqS9Oy2oJsZ

0
Alvaro
Alvaro
Accepted Answer
1 week ago #222714

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.....

0
Toufiq
Toufiq
Accepted Answer
Senior Staff 1 week ago #222724

It works fine windows Edge & Mac edge browser.

edge-windows.jpeg

0
Alvaro
Alvaro
Accepted Answer
1 week ago #222864

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

0