in reply to [Resolved]FormBuilder fails in "Multi screen mode"

It just dies with error: Thu Aug 23 12:29:04 2012] [error] [client 127.0.0.1] Premature end of +script headers: adder.cgi

Well, there should be something more in the log, either following or preceeding that -- what does the program output when you run it outside of browser ,from bash or other shell?

See CGI Help Guide and Troubleshooting Perl CGI scripts

Replies are listed 'Best First'.
Re^2: FormBuilder fails in "Multi screen mode"
by kazak (Beadle) on Aug 23, 2012 at 10:56 UTC
    Well it's the reason why I'm here - nothing more in an error.log and nothing is preceding this error. As you see I've added "use DataDumper" into my code in order to see what may be wrong with variables, in particular with "$mode" but for me, it seems correct: "mode=servers" or "mode=env" but please correct me if I wrong.

      As you see I've added "use DataDumper" into my code in order to see what may be wrong with variables, in particular with "$mode" but for me, it seems correct: "mode=servers" or "mode=env" but please correct me if I wrong.

      Sorry, I can't. I don't have a mysql database .... the idea is for you to use Dumper to generate sample data, so you can run the program without a database , I mean I can run the program without a database

        You see, the idea was to import list of fields in certain table of DB and make a form in order to populate this table, when form submited cgi adds data to proper table and triggers proper script. That's why it's crucial, but if running script without DB interaction will help to clarify this situation, sure you can just use any field names you see fit, DBI used only for searching of

        - environment types (e.g. app, db, ha)

        - field names (e.g. serverID, status, environment)

        I may wrong again but queries I've mentioned before may be replaced with:
        my @keys = qw (serverID status environment); my @env_types = qw (app db ha);
        Also you can comment out anything you see fit.