Found more than one record in fetch()!

Found more than one record in fetch()!

by ice yuki -
Number of replies: 3

I get this error after i upgrade from 2.1 to 2.2.

i create the new resource file in some course it will get this error, but in other course it doesn't have this error. Can pls help me, tell me what to do? i checked the database there is no duplication problem.

 

Found more than one record in fetch() !

More information about this error

Stack trace:
  • line 435 of \lib\setuplib.php: moodle_exception thrown
  • line 146 of \lib\grade\grade_object.php: call to print_error()
  • line 316 of \lib\grade\grade_item.php: call to grade_object::fetch_helper()
  • line 947 of \lib\grade\grade_item.php: call to grade_item::fetch()
  • line 1004 of \lib\gradelib.php: call to grade_item::fetch_course_item()
  • line 621 of \course\modedit.php: call to grade_regrade_final_grades()
Average of ratings: -
In reply to ice yuki

Re: Found more than one record in fetch()!

by ice yuki -

hmm, i just want to add a new resources, why it got related with grade_object, grade_item, grade_regrade_final_grades

---------------------------------------------------------------------------

 

i try to replace the code given as below but it get this error

http://moodle.org/mod/forum/search.php?search=in%20fetch%20grade_item&id=5&perpage=10&page=1


Unknown action!

More information about this error
Stack trace:

    line 435 of \lib\setuplib.php: moodle_exception thrown
    line 360 of \course\mod.php: call to print_error()

In reply to ice yuki

Re: Found more than one record in fetch()!

by ice yuki -

i checked my database there is no duplication data inside mdl_grade_categories and mdl_grade_items.

Inside this both of the table mdl_course_completion_aggr_methd and mdl_course_completion_criteria there is no contain any data

 

Can someone pls help me ? sad

In reply to ice yuki

Re: Found more than one record in fetch()!

by ice yuki -

i would like to add one more line,

i wonder why i get error but the database all run as normal in i adding the new resource course, no have anything bad impact, why the error will come out ?