Blank Screen in Learning object - Survey

Please report here problems and bugs
mahendkakde
FormaLms User
Posts: 58
Joined: Mon Jan 12, 2015 6:43 pm
Version: forma.lms 1.3

Blank Screen in Learning object - Survey

Postby mahendkakde » Thu Dec 07, 2017 7:21 pm

Ho Forma Team,

I am getting blank screen when I click add button question in "LO Survey".

Please help.

With Regards
Mahendra

alfa24
Newbie
Posts: 4
Joined: Fri Nov 24, 2017 8:45 am
Version: forma.lms 1.4.2

Re: Blank Screen in Learning object - Survey

Postby alfa24 » Sun Dec 10, 2017 12:59 pm

Hi, activate debug in config.php and report the fatal error.

mahendkakde
FormaLms User
Posts: 58
Joined: Mon Jan 12, 2015 6:43 pm
Version: forma.lms 1.3

Re: Blank Screen in Learning object - Survey

Postby mahendkakde » Wed Dec 13, 2017 6:44 am

Notice: Undefined variable: course_name in /var/www/html/forma_1.4.3/appLms/menu/menu_lat.php on line 83 Notice: Undefined variable: menu_left in /var/www/html/forma_1.4.3/appLms/menu/menu_lat.php on line 101 Notice: Undefined index: id_module_sel in /var/www/html/forma_1.4.3/appLms/menu/menu_lat.php on line 107 Notice: Undefined index: id_module_sel in /var/www/html/forma_1.4.3/appLms/menu/menu_lat.php on line 107 Notice: Undefined index: id_module_sel in /var/www/html/forma_1.4.3/appLms/menu/menu_lat.php on line 107 Notice: Undefined index: id_module_sel in /var/www/html/forma_1.4.3/appLms/menu/menu_lat.php on line 107 Notice: Undefined index: id_module_sel in /var/www/html/forma_1.4.3/appLms/menu/menu_lat.php on line 107 Notice: Undefined index: id_module_sel in /var/www/html/forma_1.4.3/appLms/menu/menu_lat.php on line 107 Notice: Undefined index: id_module_sel in /var/www/html/forma_1.4.3/appLms/menu/menu_lat.php on line 107 Notice: Undefined index: id_module_sel in /var/www/html/forma_1.4.3/appLms/menu/menu_lat.php on line 107 Notice: Undefined index: id_module_sel in /var/www/html/forma_1.4.3/appLms/menu/menu_lat.php on line 107 Notice: Undefined index: id_module_sel in /var/www/html/forma_1.4.3/appLms/menu/menu_lat.php on line 107 Notice: Undefined index: id_module_sel in /var/www/html/forma_1.4.3/appLms/menu/menu_lat.php on line 107 Notice: Undefined index: id_module_sel in /var/www/html/forma_1.4.3/appLms/menu/menu_lat.php on line 107 Notice: Undefined index: id_module_sel in /var/www/html/forma_1.4.3/appLms/menu/menu_lat.php on line 107 Notice: Undefined index: id_module_sel in /var/www/html/forma_1.4.3/appLms/menu/menu_lat.php on line 107 Notice: Undefined index: id_module_sel in /var/www/html/forma_1.4.3/appLms/menu/menu_lat.php on line 107 Notice: Undefined index: id_module_sel in /var/www/html/forma_1.4.3/appLms/menu/menu_lat.php on line 107 Notice: Undefined index: id_module_sel in /var/www/html/forma_1.4.3/appLms/menu/menu_lat.php on line 107 Notice: Undefined index: id_module_sel in /var/www/html/forma_1.4.3/appLms/menu/menu_lat.php on line 107 Notice: Undefined index: id_module_sel in /var/www/html/forma_1.4.3/appLms/menu/menu_lat.php on line 107 Notice: Undefined index: id_module_sel in /var/www/html/forma_1.4.3/appLms/menu/menu_lat.php on line 107 Notice: Undefined index: id_module_sel in /var/www/html/forma_1.4.3/appLms/menu/menu_lat.php on line 107 Notice: Undefined index: id_module_sel in /var/www/html/forma_1.4.3/appLms/menu/menu_lat.php on line 107 Notice: Undefined index: id_module_sel in /var/www/html/forma_1.4.3/appLms/menu/menu_lat.php on line 107 Notice: Undefined index: id_module_sel in /var/www/html/forma_1.4.3/appLms/menu/menu_lat.php on line 107 Notice: Undefined variable: userid in /var/www/html/forma_1.4.3/appLms/menu/menu_lat.php on line 166 Fatal error: Class 'Choice_QuestionPollPollPoll' not found in /var/www/html/forma_1.4.3/appLms/modules/question_poll/question_poll.php(26) : eval()'d code on line 1

alfa24
Newbie
Posts: 4
Joined: Fri Nov 24, 2017 8:45 am
Version: forma.lms 1.4.2

Re: Blank Screen in Learning object - Survey

Postby alfa24 » Wed Dec 13, 2017 9:27 am

Could you post your /appLms/modules/question_poll/question_poll.php file content?

mahendkakde
FormaLms User
Posts: 58
Joined: Mon Jan 12, 2015 6:43 pm
Version: forma.lms 1.3

Re: Blank Screen in Learning object - Survey

Postby mahendkakde » Thu Dec 14, 2017 10:35 am

The contents of question_poll.php are

<?php defined("IN_FORMA") or die('Direct access is forbidden.');

/* ======================================================================== \
| FORMA - The E-Learning Suite |
| |
| Copyright (c) 2013 (Forma) |
| http://www.formalms.org |
| License http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt |
| |
| from docebo 4.0.5 CE 2008-2012 (c) docebo |
| License http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt |
\ ======================================================================== */

// XXX: quest_create
function quest_create($type_quest, $id_poll, $back_poll) {

$re_quest = sql_query("
SELECT type_file, type_class
FROM ".$GLOBALS['prefix_lms']."_quest_type_poll
WHERE type_quest = '".$type_quest."'");
if( !mysql_num_rows($re_quest) ) return;
list($type_file, $type_class) = sql_fetch_row($re_quest);

require_once($GLOBALS['where_lms'].'/modules/question_poll/'.$type_file);

$quest_obj = eval("return new $type_class( 0 );");
$quest_obj->create($id_poll, $back_poll);
}

// XXX: quest_edit
function quest_edit($type_quest, $id_quest, $back_poll) {

$re_quest = sql_query("
SELECT type_file, type_class
FROM ".$GLOBALS['prefix_lms']."_quest_type_poll
WHERE type_quest = '".$type_quest."'");
if( !mysql_num_rows($re_quest) ) return;
list($type_file, $type_class) = sql_fetch_row($re_quest);

require_once($GLOBALS['where_lms'].'/modules/question_poll/'.$type_file);

$quest_obj = eval("return new $type_class( $id_quest );");

$quest_obj->edit($back_poll);
}
// XXX: switch
switch($GLOBALS['op']) {
case "create" : {

$type_quest = importVar('type_quest');
$id_poll = importVar('id_poll', true, 0);
$back_poll = urldecode(importVar('back_poll'));

quest_create($type_quest, $id_poll, $back_poll);
};break;
case "edit" : {

$type_quest = importVar('type_quest');
$id_quest = importVar('id_quest', true, 0);
$back_poll = urldecode(importVar('back_poll'));

quest_edit($type_quest, $id_quest, $back_poll);
};break;
}

?>

alfa24
Newbie
Posts: 4
Joined: Fri Nov 24, 2017 8:45 am
Version: forma.lms 1.4.2

Re: Blank Screen in Learning object - Survey

Postby alfa24 » Thu Dec 14, 2017 11:52 am

I would debug the code, maybe you found a bug...
if you are not able to do this I can do it for you FOR FREE.
Contact me with a private message if interested.


Return to “Bug and errors”

Who is online

Users browsing this forum: No registered users and 1 guest