Uploading Learning objects

Anything about what happens on the user and teacher side
Post Reply
JosiahIsaack
Newbie
Posts: 4
Joined: Thu Aug 20, 2020 12:08 pm

Uploading Learning objects

Post by JosiahIsaack »

Hello,

I'm getting the following error when trying to upload a file with .pdf extension

( ! ) Fatal error: Uncaught ArgumentCountError: Too few arguments to function sl_upload(), 2 passed in C:\wamp64\www\forma\appLms\modules\item\item.php on line 74 and exactly 3 expected in C:\wamp64\www\forma\lib\lib.upload.php on line 74
( ! ) ArgumentCountError: Too few arguments to function sl_upload(), 2 passed in C:\wamp64\www\forma\appLms\modules\item\item.php on line 74 and exactly 3 expected in C:\wamp64\www\forma\lib\lib.upload.php on line 74


line 74 of lib.upload.php is as follows: function sl_upload( $srcFile, $dstFile, $file_ext) {
$uploadType = Get::cfg('uploadType', null);


kindly assist me to get rid of the error.
Attachments
Screenshot_2020-08-20 Screenshot(1).png

alfa24
Senior Boarder
Posts: 998
Joined: Fri Nov 24, 2017 8:45 am
Version: forma.lms 1.4.2

Re: Uploading Learning objects

Post by alfa24 »

Search before ask.
This bug has been asked many times and solved.
I'm Jasmines, the One. If you need, you can contact me.

JosiahIsaack
Newbie
Posts: 4
Joined: Thu Aug 20, 2020 12:08 pm

Re: Uploading Learning objects

Post by JosiahIsaack »

Hey alfa24,

I asked because i couldn't find the solution even after searching.None of the topics i checked matched the one above. If you have access to the solution, i'll be glad if you share.

alfa24
Senior Boarder
Posts: 998
Joined: Fri Nov 24, 2017 8:45 am
Version: forma.lms 1.4.2

Re: Uploading Learning objects

Post by alfa24 »

I'm Jasmines, the One. If you need, you can contact me.

Haksee
Newbie
Posts: 5
Joined: Sat Jun 20, 2020 10:03 am

Re: Uploading Learning objects

Post by Haksee »

Rather saying the solution exists some one should translate the page in English

alfa24
Senior Boarder
Posts: 998
Joined: Fri Nov 24, 2017 8:45 am
Version: forma.lms 1.4.2

Re: Uploading Learning objects

Post by alfa24 »

In my post there's almost nothing to translate.
Anyway, what's the matter with your browser translation functionalities?
I'm Jasmines, the One. If you need, you can contact me.

Haksee
Newbie
Posts: 5
Joined: Sat Jun 20, 2020 10:03 am

Re: Uploading Learning objects

Post by Haksee »

My translating options are fine but my browser is not intelligent enough to translate then search the translation.

User avatar
max
FormaLms Guru
Posts: 2399
Joined: Thu Mar 01, 2012 10:41 am
Version: forma.lms 2.4
Contact:

Re: Uploading Learning objects

Post by max »

Haksee wrote:
Fri Oct 09, 2020 7:10 pm
Rather saying the solution exists some one should translate the page in English
This forum is both in Italian and in English. That issue has been addressed and explained probably in both languages.

Anyway, the issue is probably that your php version is higher than the recommended 7.0.

Even if it isn't so, the solution has been posted in the thread linked by alfa24. I am pasting the appropriated screenshot and translating it for you

in /lib/lib.upload.php
replace

(code)

with

(code)
Attachments
Cattura.PNG
Cattura.PNG (8.08 KiB) Viewed 211 times
---------------------
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

Haksee
Newbie
Posts: 5
Joined: Sat Jun 20, 2020 10:03 am

Re: Uploading Learning objects

Post by Haksee »

Thanks

Post Reply