You have posted your query in the Article / Source code section and I have moved it to Queries and Discussion section.

Also can you share the code which gives the above error.