New Install on Ubuntu 16.04 + Nginx - issues loading SCORM 2004 & tin can modules

markusd1984
Forums
Just trying to get Opigno LMS to work with Learning Locker on Ubuntu 16.04 + PHP7 + nginx + mariadb and got through the installation but having some issues with SCORM and tin can modules. see my install post https://www.opigno.org/en/comment/3844#comment-3844 1) SCORM 2004-4 is loading fine but in > Reports > recent log messages I get a PHP Notice + Warning Location http://localhost:9999/node/3/quizzes Referrer http://localhost:9999/node/9/take Message Notice: Undefined index: und in opigno_statistics_group_insert() (line 355 of /var/www/opigno/html/profiles/opigno_lms/modules/opigno/opigno_statistics_app/opigno_statistics_app.module). Location http://localhost:9999/node/3/quizzes Referrer http://localhost:9999/node/9/take Message Warning: Invalid argument supplied for foreach() in opigno_statistics_group_insert() (line 355 of /var/www/opigno/html/profiles/opigno_lms/modules/opigno/opigno_statistics_app/opigno_statistics_app.module). clicking on Finish gives one more Message Warning: implode(): Invalid arguments passed in form_builder() (line 1861 of /var/www/opigno/html/includes/form.inc). 2) tin can module is not displaying and I get the below Notice + Warning Message Notice: Undefined index: und in opigno_statistics_group_insert() (line 355 of /var/www/opigno/html/profiles/opigno_lms/modules/opigno/opigno_statistics_app/opigno_statistics_app.module). Message Warning: Invalid argument supplied for foreach() in opigno_statistics_group_insert() (line 355 of /var/www/opigno/html/profiles/opigno_lms/modules/opigno/opigno_statistics_app/opigno_statistics_app.module). Clicking on Finish throws back even more starting with a RULES Warning: Unable to get the data value for the variable or parameter node. Error: Missing data values. and PHP Warning : in_array() expects parameter 2 to be array, null given in opigno_statistics_app_handle_new_quiz_score() (line 400 of /var/www/opigno/html/profiles/opigno_lms/modules/opigno/opigno_statistics_app/opigno_statistics_app.module). I understand the complexity of DB + PHP + Webserver combo with Opgino LMS and not to mention various configuration settings can be problematic and are important to be set right for all to work (besides perhaps any current limitations or unknown/not yet resolved bugs.) Any help would be much appreciated and am happy to help to create a how to video / document if I manage to get a working setup for both SCORM & Tin Can, the main reason I think Opgino LMS is the way to go as an open source LMS and a platform that is developing and growing very well! The UI looks slick and modern! Thanks, guys, Axel & James for any help you can give.
Amermod

Hi Markus,

Hi Markus,

Maybe try to install with PHP 5.6. I didn't try the Opigno LMS with PHP 7.
And you are refering to Drupal 8.x in your other post on this forum. But Opigno LMS is based on Drupal 7 that is totally different... You can check our official documentation instead: https://www.opigno.org/170714_Opigno_User-Manual.pdf

Apparently, for your first warning, it's because the user is not subscribed to the course/class/lesson. It's not a blocking problem, but I will add a verification in my code in order to remove the warning.

For your second part, it's the same problem. The user is not part of any groups, so the arrays are empty and PHP throw some warnings. Not a big deal.

But what exactly doesn't work ? Can you give us the steps so we can reproduce the problem on our side ?

Thank you.
Best regards,
 Allan Mermod

markusd1984

Thanks Allan,

Thanks Allan, It was one of the better tutorials I could find for ubunto 16.04, i might try a setup with php 5.6 instead. Currently after uploading tincan content and accesing it I get Page Not Found Error - message sites/default/files/opigno_tincan_extracted/msword_tincan_0/scormcontent/true Referrer http://localhost/sites/default/files/opigno_tincan_extracted/msword_tincan_0/scormdriver/indexAPI.html?endpoint=http%3A%2F%2Flocalhost%3A9090%2Fdata%2FxAPI&auth=Basic%20MDFmZTk2ODZhMjdjNjhiMGYyYmYyYmZkOWZiNWNmZTc5MDBjOTk1ZToyZTczMDBmZjc1ZTdjYzM4ODAwNzU0M2U3ZWI0ZDA2ZGM0ODU2NmYx&actor=%7B%22mbox_sha1sum%22%3A%220a7927fbb7abe590f097f3f499d192b5e2f353ec%22%2C%22name%22%3A%22markus%22%7D&registration=bd76db2d-0b4c-4a5e-934d-70595dd84162 which I think might have something to do with the "bookmark" regarding /scormcontent/indexAPI.html that influences the path to tincan content? Before i used to also get that same error with a 0 at the end /scormcontent/0. Not sure if it's the articulate rise tincan module or something else causing trouble. If I take the ! mark out of the code i can access and play the tincan module but the scores are not recorded, even after clicking the finish button. I can see activity being recorded in the LRS though.