Hello I am a final year student and interested in using PiLLoW in my project.
I have been trying a few of your example programs but with little success.
I am using Sicstus 3.7 and have tried some of the suggestions made already such as changing the html.pl (Alexander Serebrenik 06/13/99) and used a shell script to control my programs.
I have run the make file as instructed in the README.
When I try to access the cgi script via a browser I get an Internal Server Error. When I run the files in a shell tool I get the following
hades{c9651239}6: html_forms.cgi SICStus 3.7: Tue Sep 08 19:55:50 MET DST 1998 Licensed to hud.ac.uk {SICStus state restored from /stud/yrf/bsccsd4/c9651239/pillow/pillow/examples/html_forms.cgi} Content-type: text/html
<html><title>html.pl Error Report</title> <hr> <img src="http://www.clip.dia.fi.upm.es/images/warning_large.gif"><h1>html_pl Error Report</h1> <hr> <b>The following error was encountered: </b>existence_error(main,0,procedure,:(user,/(main,0)),0) <hr> </html>
I have checked everything I can think so I wondered if anyone had any ideas.
Thanks Dan
} <b>The following error was encountered: } </b>existence_error(main,0,procedure,:(user,/(main,0)),0)
It seems that SICStus does no find the main/0 predicate (in module user). You either has misspelled the name or you have compiled the file as a module instead of a user file.
.......................................................................... : : Facultad de Informatica : : Daniel Cabeza Gras : Universidad Politecnica de Madrid : : CLIP Group : 28660-Boadilla del Monte, MADRID : : dcabeza(a)dia.fi.upm.es : SPAIN : ..........................................................................
When I try to access the cgi script via a browser I get an Internal Server Error. When I run the files in a shell tool I get the following
It seem that you have two problems:
(1) The "Internal server error" arise when you script does not print the Content-Type line as a first line. In order to solve this problem you should redirect the stderr to /dev/null when you run html_forms.cgi, so sicstus loading messages ignored and your browser see "Content-Type text/html" first.
(2) The existence of main/0 you already got an answer from daniel for this.
hades{c9651239}6: html_forms.cgi SICStus 3.7: Tue Sep 08 19:55:50 MET DST 1998 Licensed to hud.ac.uk {SICStus state restored from /stud/yrf/bsccsd4/c9651239/pillow/pillow/examples/html_forms.cgi} Content-type: text/html
<html><title>html.pl Error Report</title> <hr> <img src="http://www.clip.dia.fi.upm.es/images/warning_large.gif"><h1>html_pl Error Report</h1> <hr> <b>The following error was encountered: </b>existence_error(main,0,procedure,:(user,/(main,0)),0) <hr> </html>
I have checked everything I can think so I wondered if anyone had any ideas.
Thanks Dan