Error in 'Required Course'

Xtrobe
Forums
Hi, I'm currently receiving errors whenever I use the 'Required Course' and 'Lesson required for the course validation'. Whenever I try to use these forms, I get this error: "An AJAX HTTP error occurred. HTTP Result Code: 500 Debugging information follows. Path: https://lms/entityreference/autocomplete/single/course_required_quiz_re… StatusText: Service unavailable (with message) ResponseText: Page execution time was 434.72 ms. Memory used at: devel_boot()=3.3 MB, devel_shutdown()=30.88 MB, PHP peak=31.5 MB." The current installation that I have already has courses and lessons created. Is there anything that I need to configure to make this work? Thanks.
James Aparicio

Hi Xtrobe,

Hi Xtrobe, If you go to the course content type and edit the fields and set the widget as Autocomplete (Tags style) instead of Autocomplete. Does this fix the problem? Best regards
Xtrobe

Hi James,

Hi James, Yes, it does. Thanks!
Xtrobe

One more question regarding

One more question regarding this feature: if a prerequisite is declared, shouldn't the subscription option be disabled for the user, until the prerequisite is accomplished? Despite the fact that I have not the prerequisite course, I still managed to request for subscription to the course.
James Aparicio

Hi Xtrobe,

Hi Xtrobe, The course prerequisite is used to set the membership to active once the student finished the the prerequisite. For example you have a class that has 2 courses and one of them depends on the other. If you add the user to the class, that user will be added to both of the courses. On one of them as active and on the other one not. Once he completes the one that is required he is set as active on the other one. This is how the course requirement works. How we thought of it from a class perspective. But you are right, we did not think of it from the perspective of the courses being separated. What you want is to be able to only receive requests from people that completed the course correct? Thank you for your feedback. We will add this to our todo list. "Deny subscription request to a course that has a course prerequisite not met".
James Aparicio

Related to your first post.

Related to your first post. Regarding the ajax error. This bug was recently introduced, and it is only triggered on a node add, not when editing a node. Instead of changing the widgets of the fields, you can edit the opigno.module, inside the function opigno_og_context_handler(), change the line

if (og_is_group('node', node_load(arg(6)))) {

to

if (is_numeric(arg(6))&&og_is_group('node', node_load(arg(6)))) {

We will include this on our next release. Thank you for your feedback. Best regards

James Aparicio

https://drupal.org/node

https://drupal.org/node/2215419
James Aparicio

https://drupal.org/node

https://drupal.org/node/2215423
Xtrobe

Thanks, James, for the

Thanks, James, for the replies. Greatly appreciate the response of your team. Cheers!
Xtrobe

Also, to add onto the

Also, to add onto the prerequisite, this should also apply to lessons. Thanks!
major

Hi,

Hi, any updates on this? Is this "Deny subscription request to a course that has a course prerequisite not met"-feature already added to latest opigno-version?
James Aparicio

Hi major,

Hi major,

It is planned to release on 1.11,

Best regards