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.
Uploading Learning objects
-
- Newbie
- Posts: 4
- Joined: Thu Aug 20, 2020 12:08 pm
Re: Uploading Learning objects
Search before ask.
This bug has been asked many times and solved.
This bug has been asked many times and solved.
Per supporto GRATUITO contattatemi in privato qui
-
- Newbie
- Posts: 4
- Joined: Thu Aug 20, 2020 12:08 pm
Re: Uploading Learning objects
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.
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.
Re: Uploading Learning objects
Per supporto GRATUITO contattatemi in privato qui
Re: Uploading Learning objects
Rather saying the solution exists some one should translate the page in English
Re: Uploading Learning objects
In my post there's almost nothing to translate.
Anyway, what's the matter with your browser translation functionalities?
Anyway, what's the matter with your browser translation functionalities?
Per supporto GRATUITO contattatemi in privato qui
Re: Uploading Learning objects
My translating options are fine but my browser is not intelligent enough to translate then search the translation.
Re: Uploading Learning objects
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 (8.08 KiB) Viewed 4601 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
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