Along with that error message, it should indicate which script is causing the error and which line in that script.
It would be more helpful if you could post the script that's causing that problem, or provide a link to a location where that script is available from, so that we can review the code.