We have had a strange problem with Essay type questions not saving. When the a student goes to submit their exam, they get an error. Upon looking at the questions you can isolate the error to a some of the essay type questions, however the failure is random. A given question will work sometimes but not others, with no apparent pattern.
The background: this is on a new install of moodle 2.0 (2.0.1+ (Build: 20101229) ) using a postgres database. We are using a hardware load balancer for the application, and the database is on 2 servers using a “master-slave” setup.
Our first guess was issues with the questions, since they had been imported from a course in blackboard CE 8 using a bit of a convoluted procedure. But we re-created the questions (created them 1 at a time) in the question bank, but this didn't help.
We then looked at the database and found it was throwing errors like the following
2011-02-04 15:55:25 MST ERROR: invalid input syntax for integer: "random8010- [text of the students response to the question]”
Which suggests that the system is trying to stuff text data into an integer field of the database. We think this could be a corruption issue, or a more systemic one, but are at a loss as to what to check next.
Any help would be appreciated.