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

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

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

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

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: 1321
Joined: Fri Nov 24, 2017 8:45 am
Version: forma.lms 1.4.2

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

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

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

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

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

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

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

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

replace

(code)

with

(code)
Attachments
Cattura.PNG (8.08 KiB) Viewed 1896 times
---------------------
Massimiliano Ferrari
Elearnit - Elearning e Knowledge Management
https://www.elearnit.net