Hey there ALL!
I have almost completed my cgi script. It seems to be working 100% and is just going through some final testing. Then I decide to check the httpd error logs. And I was supprised to find about 95000 errors. I deleted them all and then ran my webpage once and then I saw there was only 200 errors. This is still unacceptable, I can't have 200 error messages popping up every time the web page is processed.
I see that about 90% of the error messages are similiar to these:
Here is a snippet of my code around line 67:
All of my sub procedures are defined at the bottom of the page, here is an eg of my omailConfigForm() sub procedure:
Does anybody out there know what these errors mean and how to get rid of them?
Any and all help is greatly appreciated.
Sean.
I have almost completed my cgi script. It seems to be working 100% and is just going through some final testing. Then I decide to check the httpd error logs. And I was supprised to find about 95000 errors. I deleted them all and then ran my webpage once and then I saw there was only 200 errors. This is still unacceptable, I can't have 200 error messages popping up every time the web page is processed.
I see that about 90% of the error messages are similiar to these:
Code:
[Fri Jan 30 11:23:59 2004] test.cgi: main::omailConfigForm() called too early to check prototype at /home/httpd/cgi-bin/test.cgi line 67.
main::newDomainForm() called too early to check prototype at
/home/httpd/cgi-bin/test.cgi line 160 (#1)
Code:
if($menuoption == 20){ #############--MAIN MENU - CONFIGURATION FOR OMAIL ADMIN
$submit = $query->param('SubmitOmailConfig');
if(!$submit){
omailConfigForm();
}
else{
$omailconfig = $query->param('omailconfig');
system("cp /etc/vmailmgr/vmailmgrquotas /tmp/vmailmgrquotas_old");
open(DAT,">/etc/vmailmgr/vmailmgrquotas");
print DAT "$omailconfig";
close(DAT);
print "$TXT{'update_of_omail_config_successful'}<P>";
}
}
All of my sub procedures are defined at the bottom of the page, here is an eg of my omailConfigForm() sub procedure:
Code:
sub omailConfigForm(){
open(DAT,"/tmp/vmailmgrquotas");
@raw_data = <DAT>;
close(DAT);
print <<EOHTML;
<CENTER>
<H3>$TXT{'menu_omail_admin_configuration'}</H3>
<form name="omailConfiguration_form" method="post" action="cadmin.cgi">
<TEXTAREA name="omailconfig" rows="20" cols="80">
EOHTML
foreach $line(@raw_data){
print "$line";
}
print <<EOHTML;
</TEXTAREA><P>
<input type="hidden" name="menuoption" value="20">
<input type="submit" name="SubmitOmailConfig" value="$TXT{'submit_omail_configuration_button'}">
</form>
EOHTML
}
Does anybody out there know what these errors mean and how to get rid of them?
Any and all help is greatly appreciated.
Sean.