Page 1 of 1

Unable to upload SCORM Package

Posted: Fri Aug 10, 2018 12:36 pm
by sridhar
Dear All,

I have created a course and logged in as Administrator. I visit the course page and then select "Teacher". Once I select Teacher, I am able to access the Learning Object Management page. From the "Course Objects" Tab, I click the "New Learning Object", I am given a list of options. I select "SCORM" and click on the "New" button. I browse and then select the .zip SCORM file. When I click on "Upload SCORM Package" I am taken to a blank web page with the link in the address showing the following link:

https://tejovathi.com/forma/appLms/inde ... op=insitem

I am unable to understand how to upload the SCORM package. All my SCORM packages are smaller than 8MB.

Any assistance or solutions will be greatly appreciated.

Thanks and regards,
Sri

Re: Unable to upload SCORM Package

Posted: Fri Aug 10, 2018 2:19 pm
by max
Hello and welcome on board
there should be no problem at all in uploading scorm packages, and what you are doing is exactly what is needed.
Have you tried uploading simple files? do they upload? (new LO - > file > new > browse > etc...).
There's a lot of discussions on this forum concerning uploading files.
Package dimension: the 8mb limit is not dependent on the LMS. It's a setting in your server, also this is well documented in the forum.

Re: Unable to upload SCORM Package

Posted: Sat Aug 11, 2018 7:01 am
by shridar
Dear Max,

Thanks for your reply.

My php setting for upload_max_filesize is set to 100M, yet the maximum filesize for upload is showing in Forma as 8Mb. Btw, I am using nginx with php-fpm and not Apache webserver.

I am having issues even uploading a small PDF file. No error, just a blank screen.

Thanks and regards,
Sri

Re: Unable to upload SCORM Package

Posted: Sat Aug 11, 2018 7:56 am
by alfa24
Activate debug in config.php and post the last error (the fatal one).

Re: Unable to upload SCORM Package

Posted: Sat Sep 15, 2018 9:46 am
by shridar
The below error is what is displayed when I try to uipload the SCORM package:

Fatal error: Uncaught ArgumentCountError: Too few arguments to function sl_upload(), 2 passed in /usr/share/nginx/html/forma/appLms/modules/scorm/scorm.php on line 90 and exactly 3 expected in /usr/share/nginx/html/forma/lib/lib.upload.php:74 Stack trace: #0 /usr/share/nginx/html/forma/appLms/modules/scorm/scorm.php(90): sl_upload('/tmp/phpHREdos', '/appLms/scorm/1...') #1 /usr/share/nginx/html/forma/appLms/modules/scorm/scorm.php(449): insitem() #2 /usr/share/nginx/html/forma/appLms/class.module/class.scorm.php(24): include('/usr/share/ngin...') #3 /usr/share/nginx/html/forma/appCore/index.php(80): Module_Scorm->loadBody() #4 {main} thrown in /usr/share/nginx/html/forma/lib/lib.upload.php on line 74

Any assistance will be greatly appreciated.

Thanks and regards,
Sridhar Raamalingam

Re: Unable to upload SCORM Package

Posted: Sat Sep 15, 2018 11:35 am
by alfa24
What is your forma version?

Re: Unable to upload SCORM Package

Posted: Sat Sep 15, 2018 4:08 pm
by shridar
Dear Alfa24,

I am using version 2.0

Thanks and regards,
Sridhar Raamalingam

Re: Unable to upload SCORM Package

Posted: Sat Sep 15, 2018 8:32 pm
by alfa24
in your /lib/lib.upload.php file replace

function sl_upload( $srcFile, $dstFile, $file_ext) {

with

function sl_upload( $srcFile, $dstFile) {

Re: Unable to upload SCORM Package

Posted: Fri Sep 28, 2018 12:41 pm
by shridar
Dear Alfa24,

Thank you for the solution.

This worked.

Thanks and regards,
Sridhar Raamalingam

Re: Unable to upload SCORM Package

Posted: Fri Sep 28, 2018 2:28 pm
by canelli
Hi shidar

the error you found is due to the php version. are you using PHP 7.1 or 72 ?