User can not activate course from catalog

Anything about what happens on the user and teacher side
Post Reply
itworks
FormaLms User
Posts: 27
Joined: Thu Feb 10, 2022 3:18 pm

User can not activate course from catalog

Post by itworks »

Forma LMS 3.2:

We created a node "ABC".
Then a course catalog "ABC", added two courses to the catalogue and activated it for the node (organization chart) "ABC".
Both courses are set to "free enrollment".

When we import users to the node "ABC", they get the correct catalog displayed with both courses showing.
But when they click on "activate" on one of the courses to self-enroll, nothing happens. No error message, just nothing.

What am I missing?

Thank you very much,
Florian
User avatar
max
FormaLms Guru
Posts: 2735
Joined: Thu Mar 01, 2012 10:41 am
Version: forma.lms 2.4
Contact:

Re: User can not activate course from catalog

Post by max »

By "activate" do you mean "subscribe"? What happens - or what should happen - is that a confirmation popup would be triggered and after confirming the button would change from "subscribe" to "enter"
---------------------
Massimiliano Ferrari
Elearnit - Elearning e Knowledge Management
https://www.elearnit.net
https://www.linkedin.com/in/massimilianoferrari
m.ferrari[at]elearnit.net
Skype: m_ferrari_it
itworks
FormaLms User
Posts: 27
Joined: Thu Feb 10, 2022 3:18 pm

Re: User can not activate course from catalog

Post by itworks »

Hi Massimiliano,

yes I mean "subscribe" to a course which is visible.
Courses are visible on the catalogue, but when I want to subscripe to a course, nothing happens.
I tried that on Firefox & Chrome, on Windows and Mac, and also on a iPhone with mobile Safari...

If I subscribe a user manually as an admin, the button changes to "enter" and he can access the course.
alfa24
Senior Boarder
Posts: 2009
Joined: Fri Nov 24, 2017 8:45 am

Re: User can not activate course from catalog

Post by alfa24 »

You should check for javascript errors in the console, firt of all.
Then, if no errors are shown, activate debug and post the fatal you will see in the network tab, for any ajax php calls.
Per supporto GRATUITO contattatemi in privato qui
itworks
FormaLms User
Posts: 27
Joined: Thu Feb 10, 2022 3:18 pm

Re: User can not activate course from catalog

Post by itworks »

Should be this one, which only happens when I click the subscribe button:

Uncaught SyntaxError: '' string literal contains an unescaped line break
index.php:1:25
Attachments
Bildschirmfoto 2022-04-11 um 13.21.26.png
alfa24
Senior Boarder
Posts: 2009
Joined: Fri Nov 24, 2017 8:45 am

Re: User can not activate course from catalog

Post by alfa24 »

What if you clic on "index.php:1:25"?
Per supporto GRATUITO contattatemi in privato qui
itworks
FormaLms User
Posts: 27
Joined: Thu Feb 10, 2022 3:18 pm

Re: User can not activate course from catalog

Post by itworks »

see attachment, can't paste the full output here because of limitations
Attachments
Bildschirmfoto 2022-04-11 um 13.58.11.jpg
alfa24
Senior Boarder
Posts: 2009
Joined: Fri Nov 24, 2017 8:45 am

Re: User can not activate course from catalog

Post by alfa24 »

I suppose the error is in line 41.
There should be some unescaped quote or double quotes.
Per supporto GRATUITO contattatemi in privato qui
itworks
FormaLms User
Posts: 27
Joined: Thu Feb 10, 2022 3:18 pm

Re: User can not activate course from catalog

Post by itworks »

Found it! Behind the translated "subscribe" was a Enter (new line) in the translation item.
Wonderful - thank you!
Post Reply