Can you provide some more details please.
what are the steps you are taking to reproduce this error?
What Extensions, including the version numbers are installed?
What is your OS?
can you attach a copy of the PHP page in a zip file so I can see the code.