Project

General

Profile

Bug #4870

learnpath::add_item() warning in learnpath item addition

Added by Yannick Warnier about 8 years ago. Updated almost 8 years ago.

Status:
Bug resolved
Priority:
Normal
Assignee:
Yoselyn Castillo
Category:
-
Target version:
Start date:
10/06/2012
Due date:
% Done:

80%

Estimated time:
Spent time:
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

Revision b414d334 (diff)
Added by Julio Montoya about 8 years ago

Should fix PHP warning when adding a LP using drag n drop see #4870

History

#1

Updated by Julio Montoya about 8 years ago

  • Status changed from New to Needs more info
  • % Done changed from 0 to 80

should be fixed

#2

Updated by Yoselyn Castillo almost 8 years ago

  • Assignee set to Yoselyn Castillo
#3

Updated by Yoselyn Castillo almost 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

Also available in: Atom PDF