as
shmem said, you have to post code.
additionally, you forgot to post the complete error message.
normally such an error message shows the file and line where it occurred.
you wouldn't go to the doctor and say "it hurts" without
telling the doctor *where* it hurts, right?