Trying to add a new LTI in a course

Trying to add a new LTI in a course

by Eric Katchan -
Number of replies: 0

Got the following error when I attempted to add an lti activity to a course.  It seems to occur in one course only.  It is an old test course.

Did you remember to make the first column something unique in your call to get_records? Duplicate value 'icon' found in column 'name'.

  • line 885 of /lib/dml/pgsql_native_moodle_database.php: call to debugging()
  • line 1438 of /mod/lti/locallib.php: call to pgsql_native_moodle_database->get_records_sql()
  • line 134 of /mod/lti/mod_form.php: call to lti_get_type_config()
  • line 204 of /lib/formslib.php: call to mod_lti_mod_form->definition()
  • line 99 of /course/moodleform_mod.php: call to moodleform->__construct()
  • line 141 of /course/modedit.php: call to moodleform_mod->__construct()


It is executing this query:

SELECT name, value FROM mdl_lti_types_config WHERE typeid = 1 

UNION ALL SELECT 'toolurl' AS name, baseurl AS value FROM mdl_lti_types WHERE id = 1 

UNION ALL SELECT 'icon' AS name, icon AS value FROM mdl_lti_types WHERE id = 1 

UNION ALL SELECT 'secureicon' AS name, secureicon AS value FROM mdl_lti_types WHERE id = 1;


It does not seem to affect adding an lti to another random course.  

Any Ideas?



Average of ratings: -