Found more than one record in fetch() !

Found more than one record in fetch() !

od Ricardo Caiado -
Število odgovorov: 1
Slika Particularly helpful Moodlers
Hi,

Whenever I try to backup the frontpage I got this error message: "Found more than one record in fetch() !"

------------------
Creating temporary structures
Deleting old data
Creating XML file
Writing header
Writing general info
Writing course data
Course info
Blocks
Sections
Writing users info
Writing categories and questions
Writing scales info
Writing groups info
Writing groupings info
Writing groupings-groups info
Writing events info
Writing gradebook info

Found more than one record in fetch() !
------------------

I've read the thread "http://moodle.org/mod/forum/discuss.php?d=78622" but the "health.php" didn't worked.

Any idea?

My setup:
Moodle 1.9.11+ (Build: 20110413)
Debian Lenny
PostgresSQL 8.3.14
PHP 5
Apache2

I've got a couple of Moodle sites on the same server and the backup ends successfully.

All the baest,

Ricardo

V odgovor na Ricardo Caiado

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

od jack liou -

I had same problem when I click grad link and execute backup.

After I trace code and query database(use below sql) than I got duplicate record.

SELECT * FROM mdl_grade_items where courseid= xxxx and itemtype= "course"
SELECT * FROM mdl_grade_categories where courseid= xxxx;

I have no idea where did they come from ? So I just delete it, and it's work for me.

My Moodle versin is Moodle 1.9.9 (Build: 20100609)

I Hope that this is going to help you.