Page 1 of 1

User can not activate course from catalog

Posted: Mon Apr 11, 2022 11:25 am
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

Re: User can not activate course from catalog

Posted: Mon Apr 11, 2022 11:40 am
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"

Re: User can not activate course from catalog

Posted: Mon Apr 11, 2022 11:58 am
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.

Re: User can not activate course from catalog

Posted: Mon Apr 11, 2022 12:06 pm
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.

Re: User can not activate course from catalog

Posted: Mon Apr 11, 2022 12:22 pm
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

Re: User can not activate course from catalog

Posted: Mon Apr 11, 2022 12:42 pm
by alfa24
What if you clic on "index.php:1:25"?

Re: User can not activate course from catalog

Posted: Mon Apr 11, 2022 1:02 pm
by itworks
see attachment, can't paste the full output here because of limitations

Re: User can not activate course from catalog

Posted: Mon Apr 11, 2022 1:18 pm
by alfa24
I suppose the error is in line 41.
There should be some unescaped quote or double quotes.

Re: User can not activate course from catalog

Posted: Mon Apr 11, 2022 1:57 pm
by itworks
Found it! Behind the translated "subscribe" was a Enter (new line) in the translation item.
Wonderful - thank you!