If you still can't trace the bug, disable all the options by entering 'no' in the customization section. Insert the following code in various places in the script. Once you get the script working, move the break code to a later spot in the script and run it again. This way you can isolate the code that is causing the problem. Logistic errors are the worst kind.
Syntax is easy.
This appears when the script does not return any information to the browser. Often it happens when the script tries to access a nonexistent file and then return information from that file. Check that the filepaths are correct. Viewing Environment Variables Environment.cgi is a handy little utility allows you to see all of the Environment variables that are active on your particular server.