Unable to upload SCORM Package

Anything about what happens on the user and teacher side
Post Reply
User avatar
sridhar
Newbie
Posts: 2
Joined: Fri Aug 10, 2018 12:29 pm

Unable to upload SCORM Package

Post 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
User avatar
max
FormaLms Guru
Posts: 2735
Joined: Thu Mar 01, 2012 10:41 am
Version: forma.lms 2.4
Contact:

Re: Unable to upload SCORM Package

Post 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.
---------------------
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
shridar
Newbie
Posts: 12
Joined: Tue Apr 03, 2018 8:24 am

Re: Unable to upload SCORM Package

Post 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
alfa24
Senior Boarder
Posts: 2008
Joined: Fri Nov 24, 2017 8:45 am

Re: Unable to upload SCORM Package

Post by alfa24 »

Activate debug in config.php and post the last error (the fatal one).
Per supporto GRATUITO contattatemi in privato qui
shridar
Newbie
Posts: 12
Joined: Tue Apr 03, 2018 8:24 am

Re: Unable to upload SCORM Package

Post 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
alfa24
Senior Boarder
Posts: 2008
Joined: Fri Nov 24, 2017 8:45 am

Re: Unable to upload SCORM Package

Post by alfa24 »

What is your forma version?
Per supporto GRATUITO contattatemi in privato qui
shridar
Newbie
Posts: 12
Joined: Tue Apr 03, 2018 8:24 am

Re: Unable to upload SCORM Package

Post by shridar »

Dear Alfa24,

I am using version 2.0

Thanks and regards,
Sridhar Raamalingam
alfa24
Senior Boarder
Posts: 2008
Joined: Fri Nov 24, 2017 8:45 am

Re: Unable to upload SCORM Package

Post by alfa24 »

in your /lib/lib.upload.php file replace

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

with

function sl_upload( $srcFile, $dstFile) {
Per supporto GRATUITO contattatemi in privato qui
shridar
Newbie
Posts: 12
Joined: Tue Apr 03, 2018 8:24 am

Re: Unable to upload SCORM Package

Post by shridar »

Dear Alfa24,

Thank you for the solution.

This worked.

Thanks and regards,
Sridhar Raamalingam
User avatar
canelli
FormaLms Guru
Posts: 496
Joined: Thu Nov 08, 2012 12:21 pm
Version: forma.lms 2.0
Contact:

Re: Unable to upload SCORM Package

Post by canelli »

Hi shidar

the error you found is due to the php version. are you using PHP 7.1 or 72 ?
Cercate nel forum le riposte prima di chiedere. Check the forum before posting
---------------
Claudio Anelli
Joint Technologies - Sistemi avanzati per l'information technology

http://www.joint-tech.com
---------------
Post Reply