Bug #4870
learnpath::add_item() warning in learnpath item addition
Complexity:
Normal
SCRUM pts - complexity:
?
Description
When adding learnpath items through drag and drop, I get the following warnings:
[Sat Jun 09 20:21:58 2012] [error] [client 127.0.0.1] New LP - scorm_api - Could not load oItem item, referer: http://my.chamilo.net/main/newscorm/lp_controller.php?cidReq=INTRODUCCIONACHAMILO&id_session=0&gidReq=0&action=view&lp_id=1 [Sat Jun 09 20:22:12 2012] [error] [client 127.0.0.1] PHP Warning: Missing argument 6 for learnpath::add_item(), called in /var/www/chamilo/main/inc/ajax/lp.ajax.php on line 20 and defined in /var/www/chamilo/main/newscorm/learnpath.class.php on line 375, referer: http://my.chamilo.net/main/newscorm/lp_controller.php?cidReq=INTRODUCCIONACHAMILO&id_session=0&gidReq=0&gradebook=&action=add_item&type=step&lp_id=1 [Sat Jun 09 20:22:12 2012] [error] [client 127.0.0.1] PHP Stack trace:, referer: http://my.chamilo.net/main/newscorm/lp_controller.php?cidReq=INTRODUCCIONACHAMILO&id_session=0&gidReq=0&gradebook=&action=add_item&type=step&lp_id=1 [Sat Jun 09 20:22:12 2012] [error] [client 127.0.0.1] PHP 1. {main}() /var/www/chamilo/main/inc/ajax/lp.ajax.php:0, referer: http://my.chamilo.net/main/newscorm/lp_controller.php?cidReq=INTRODUCCIONACHAMILO&id_session=0&gidReq=0&gradebook=&action=add_item&type=step&lp_id=1 [Sat Jun 09 20:22:12 2012] [error] [client 127.0.0.1] PHP 2. learnpath->add_item() /var/www/chamilo/main/inc/ajax/lp.ajax.php:20, referer: http://my.chamilo.net/main/newscorm/lp_controller.php?cidReq=INTRODUCCIONACHAMILO&id_session=0&gidReq=0&gradebook=&action=add_item&type=step&lp_id=1
These are warning messages logged into my error_log but not seen on screen. I guess this is something that has been overlooked in the JS element to create an item and it should be easily fix-able.
Nice feature, by the way.
Associated revisions
History
Updated by Julio Montoya over 8 years ago
- Status changed from New to Needs more info
- % Done changed from 0 to 80
should be fixed
Updated by Yoselyn Castillo over 8 years ago
- Status changed from Needs more info to Bug resolved
I don't get any error in error_log when adding an item in learning path. Fixed
Should fix PHP warning when adding a LP using drag n drop see #4870