I would search the source code for that specific error and look at the routine that is causing it to come up. If your lucky, that error message only occurs once in the source. Once you narrow it down you can start var_dump()'ing variables line by line leading up to the error. You'll probably find that something didn't get handled the way the programmer expected it too.