Forma LMS 4.0.7 ed anche Forma LMS 4.0.10
Elearning > gestione certificati > certificati
"Certificati rilasciati" da errore
La pagina non funziona
xxxxx.comt al momento non è in grado di gestire la richiesta.
HTTP ERROR 500
Grazie
Giannu
"Certificati rilasciati" da errore - Forma LMS 4.0.7
-
- FormaLms User
- Posts: 136
- Joined: Tue Mar 30, 2021 12:57 pm
Re: "Certificati rilasciati" da errore - Forma LMS 4.0.7
Ciao Giovanni, hai un fatal nel log del server.
Oppure un errore di timeout.
Verifica.
Oppure un errore di timeout.
Verifica.
Per supporto GRATUITO contattatemi in privato qui
-
- FormaLms User
- Posts: 136
- Joined: Tue Mar 30, 2021 12:57 pm
Re: "Certificati rilasciati" da errore - Forma LMS 4.0.7
Ciao Alfa,
mi da:
Fatal error: Uncaught Error: Call to undefined function Man_Course() in /var/www/vhosts/xxxx.it/subdomains/xxxx/httpdocs/appLms/admin/modules/certificate/certificate.php:540 Stack trace: #0 /var/www/vhosts/xxxx.it/subdomains/xxxx/httpdocs/appLms/admin/modules/certificate/certificate.php(843): report_certificate() #1
/var/www/vhosts/xxxx.it/subdomains/xxxx/httpdocs/appLms/admin/class.module/class.certificate.php(30): certificateDispatch('report_certific...') #2
/var/www/vhosts/xxxx.it/subdomains/xxxx/httpdocs/appCore/index.php(80): Module_Certificate->loadBody() #3 {main} thrown in
/var/www/vhosts/xxxx.it/subdomains/xxxx/httpdocs/appLms/admin/modules/certificate/certificate.php on line 540
mi da:
Fatal error: Uncaught Error: Call to undefined function Man_Course() in /var/www/vhosts/xxxx.it/subdomains/xxxx/httpdocs/appLms/admin/modules/certificate/certificate.php:540 Stack trace: #0 /var/www/vhosts/xxxx.it/subdomains/xxxx/httpdocs/appLms/admin/modules/certificate/certificate.php(843): report_certificate() #1
/var/www/vhosts/xxxx.it/subdomains/xxxx/httpdocs/appLms/admin/class.module/class.certificate.php(30): certificateDispatch('report_certific...') #2
/var/www/vhosts/xxxx.it/subdomains/xxxx/httpdocs/appCore/index.php(80): Module_Certificate->loadBody() #3 {main} thrown in
/var/www/vhosts/xxxx.it/subdomains/xxxx/httpdocs/appLms/admin/modules/certificate/certificate.php on line 540
Re: "Certificati rilasciati" da errore - Forma LMS 4.0.7
Scrivi qui le prime 10 righe subito dopo la dichiarazione function report_certificate(), alla riga 843 del file var/www/vhosts/xxxx.it/subdomains/xxxx/httpdocs/appLms/admin/modules/certificate/certificate.php
Per supporto GRATUITO contattatemi in privato qui
-
- FormaLms User
- Posts: 136
- Joined: Tue Mar 30, 2021 12:57 pm
Re: "Certificati rilasciati" da errore - Forma LMS 4.0.7
Ciao Alfa,
ecco.
report_certificate();
break;
case 'del_report_certificate':
del_report_certificate();
break;
case 'del_gen_certificate':
del_gen_certificate();
break;
case 'send_certificate':
send_certificate();
break;
case 'send_zip_certificates':
send_zip_certificates();
break;
case 'print_certificate':
print_certificate();
break;
case 'preview':
preview();
break;
default:
}
}
ecco.
report_certificate();
break;
case 'del_report_certificate':
del_report_certificate();
break;
case 'del_gen_certificate':
del_gen_certificate();
break;
case 'send_certificate':
send_certificate();
break;
case 'send_zip_certificates':
send_zip_certificates();
break;
case 'print_certificate':
print_certificate();
break;
case 'preview':
preview();
break;
default:
}
}
Re: "Certificati rilasciati" da errore - Forma LMS 4.0.7
Perdonami, il numero di riga è fuorviante, occorrono le 10 righe successive a:
Code: Select all
function report_certificate()
Per supporto GRATUITO contattatemi in privato qui
-
- FormaLms User
- Posts: 136
- Joined: Tue Mar 30, 2021 12:57 pm
Re: "Certificati rilasciati" da errore - Forma LMS 4.0.7
Ciao Alfa,
ho trovato alla riga 493
function report_certificate()
{
require_once _base_ . '/lib/lib.form.php';
require_once \FormaLms\lib\Forma::inc(_lms_ . '/lib/lib.certificate.php');
require_once _lms_ . '/lib/lib.course.php';
require_once _base_ . '/lib/lib.table.php';
checkPerm('view');
$out = &$GLOBALS['page'];
$out->setWorkingZone('content');
$form = new Form();
$certificate = new Certificate();
$lang = &FormaLanguage::createInstance('certificate', 'lms');
ho trovato alla riga 493
function report_certificate()
{
require_once _base_ . '/lib/lib.form.php';
require_once \FormaLms\lib\Forma::inc(_lms_ . '/lib/lib.certificate.php');
require_once _lms_ . '/lib/lib.course.php';
require_once _base_ . '/lib/lib.table.php';
checkPerm('view');
$out = &$GLOBALS['page'];
$out->setWorkingZone('content');
$form = new Form();
$certificate = new Certificate();
$lang = &FormaLanguage::createInstance('certificate', 'lms');
Re: "Certificati rilasciati" da errore - Forma LMS 4.0.7
Non vedo problemi, posta tutto il codice da questo punto fino alla riga 540.
Per supporto GRATUITO contattatemi in privato qui
-
- FormaLms User
- Posts: 136
- Joined: Tue Mar 30, 2021 12:57 pm
Re: "Certificati rilasciati" da errore - Forma LMS 4.0.7
function report_certificate()
{
require_once _base_ . '/lib/lib.form.php';
require_once \FormaLms\lib\Forma::inc(_lms_ . '/lib/lib.certificate.php');
require_once _lms_ . '/lib/lib.course.php';
require_once _base_ . '/lib/lib.table.php';
checkPerm('view');
$out = &$GLOBALS['page'];
$out->setWorkingZone('content');
$form = new Form();
$certificate = new Certificate();
$lang = &FormaLanguage::createInstance('certificate', 'lms');
if (isset($_GET['id_certificate'])) {
$id_certificate = importVar('id_certificate', true, 0);
$man_course = new Man_Course();
$id_course = [];
$id_course = $certificate->getCourseForCertificate($id_certificate);
$course_info = [];
$out->add(
getTitleArea([
'index.php?modname=certificate&op=certificate' => $lang->def('_TITLE_CERTIFICATE'),
$lang->def('_COURSES'),
])
. '<div class="std_block">'
. getBackUi('index.php?modname=certificate&op=certificate', $lang->def('_BACK'))
);
$tb = new Table(FormaLms\lib\Get::sett('visuItem'), $lang->def('_CHOOSE_COURSE'), $lang->def('_COURSE_LIST'));
$type_h = ['', '', 'min-cell'];
$cont_h = [
$lang->def('_CODE'),
$lang->def('_NAME'),
$lang->def('_CERTIFICATE_REPORT'),
];
$tb->setColsStyle($type_h);
$tb->addHead($cont_h);
foreach ($id_course as $course_id) {
$course_info = Man_Course()::getCourseInfo($course_id);
{
require_once _base_ . '/lib/lib.form.php';
require_once \FormaLms\lib\Forma::inc(_lms_ . '/lib/lib.certificate.php');
require_once _lms_ . '/lib/lib.course.php';
require_once _base_ . '/lib/lib.table.php';
checkPerm('view');
$out = &$GLOBALS['page'];
$out->setWorkingZone('content');
$form = new Form();
$certificate = new Certificate();
$lang = &FormaLanguage::createInstance('certificate', 'lms');
if (isset($_GET['id_certificate'])) {
$id_certificate = importVar('id_certificate', true, 0);
$man_course = new Man_Course();
$id_course = [];
$id_course = $certificate->getCourseForCertificate($id_certificate);
$course_info = [];
$out->add(
getTitleArea([
'index.php?modname=certificate&op=certificate' => $lang->def('_TITLE_CERTIFICATE'),
$lang->def('_COURSES'),
])
. '<div class="std_block">'
. getBackUi('index.php?modname=certificate&op=certificate', $lang->def('_BACK'))
);
$tb = new Table(FormaLms\lib\Get::sett('visuItem'), $lang->def('_CHOOSE_COURSE'), $lang->def('_COURSE_LIST'));
$type_h = ['', '', 'min-cell'];
$cont_h = [
$lang->def('_CODE'),
$lang->def('_NAME'),
$lang->def('_CERTIFICATE_REPORT'),
];
$tb->setColsStyle($type_h);
$tb->addHead($cont_h);
foreach ($id_course as $course_id) {
$course_info = Man_Course()::getCourseInfo($course_id);
Re: "Certificati rilasciati" da errore - Forma LMS 4.0.7
Sostituisci
$course_info = Man_Course()::getCourseInfo($course_id);
Con
$course_info = Man_Course::getCourseInfo($course_id);
$course_info = Man_Course()::getCourseInfo($course_id);
Con
$course_info = Man_Course::getCourseInfo($course_id);
Per supporto GRATUITO contattatemi in privato qui