You should be getting a line number and script name with that message. Find the line specified in the script specified and see what you have there. My post (which you say you altered) works per your request.