貼文的作者是 Joseph Rézeau

Core developers的相片 Plugin developers的相片 Testers的相片 Translators的相片

Hi Tomek,

Here are the full error messages output when I try to import a matching question into Flashcard module, with full debug mode ON:

ERROR: Incorrect number of query parameters. Expected 1, got 0.

More information about this error

Stack trace:
  • line 706 of \lib\dml\moodle_database.php: dml_exception thrown
  • line 789 of \lib\dml\mysqli_native_moodle_database.php: call to moodle_database->fix_sql_params()
  • line 1097 of \lib\dml\moodle_database.php: call to mysqli_native_moodle_database->get_records_sql()
  • line 372 of \mod\flashcard\locallib.php: call to moodle_database->get_records_select()
  • line 87 of \mod\flashcard\lib.php: call to flashcard_import()
  • line 327 of \course\modedit.php: call to flashcard_update_instance()
Output buffer: Notice: Trying to get property of non-object in C:\server\htdocs\moodlegit20\moodle\mod\flashcard\locallib.php on line 371

PS.- I agree that this feature is not very useful. What would be useful would be a feature to import into Flashcard all of the correct matches of all of the match questions from one category.