[Risolto] Fatal error su Upload file come Oggetto didattico Forma 2.1

Segnalate qui eventuali problemi riscontrati durante il normale utilizzo
Post Reply
wolk73
FormaLms User
Posts: 35
Joined: Fri Oct 26, 2012 11:03 am
Contact:

[Risolto] Fatal error su Upload file come Oggetto didattico Forma 2.1

Post by wolk73 »

Volevo segnalare un brutto Fatal Error sul comando di Upload file di Oggetto Didattico.

Fatal error: Uncaught ArgumentCountError: Too few arguments to function sl_upload(), 2 passed in /var/www/html/forma20/appLms/modules/item/item.php on line 74 and exactly 3 expected in /var/www/html/forma20/lib/lib.upload.php:74 Stack trace:
#0 /var/www/html/forma20/appLms/modules/item/item.php(74): sl_upload('/tmp/phpFe84zD', '/appLms/item/1_...')
#1 /var/www/html/forma20/appLms/modules/item/item.php(227): insitem()
#2 /var/www/html/forma20/appLms/class.module/class.definition.php(109): include('/var/www/html/f...')
#3 /var/www/html/forma20/appLms/index.php(107): LmsModule->loadBody()
#4 {main} thrown in /var/www/html/forma20/lib/lib.upload.php on line 74
Last edited by wolk73 on Thu Mar 21, 2019 3:08 pm, edited 1 time in total.
CEO - SYCOP ITALIA
Network Internazionale di Professionisti d’alto livello Competente nel settore Web/ICT e Sicurezza UTM..
www.sycop.org
www.andreapatron.com

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

Re: Fatal error su Upload file come Oggetto didattico Forma 2.1

Post by alfa24 »

in /lib/lib.upload.php

sostituisci

Code: Select all

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

Code: Select all

function sl_upload( $srcFile, $dstFile, $file_ext = "") {
Last edited by alfa24 on Mon Apr 29, 2019 5:27 pm, edited 1 time in total.
I'm Jasmines, the One. If you need, you can contact me.

wolk73
FormaLms User
Posts: 35
Joined: Fri Oct 26, 2012 11:03 am
Contact:

Re: Fatal error su Upload file come Oggetto didattico Forma 2.1

Post by wolk73 »

Ok Funziona.
CEO - SYCOP ITALIA
Network Internazionale di Professionisti d’alto livello Competente nel settore Web/ICT e Sicurezza UTM..
www.sycop.org
www.andreapatron.com

Post Reply