Welcome, Guest. Please login or register.
Did you miss your activation email?


Login with username, password and session length

Search

 
Advanced search

8043 Posts in 1856 Topics- by 2099 Members - Latest Member: roi
Calendar Script CommunitySetup and InstallationInstallation and Setup (Moderators: scott, DanO, Marty)Debug.pl runs great, but getting Internal 500
Pages: [1]   Go Down
Print
Author Topic: Debug.pl runs great, but getting Internal 500  (Read 318 times)
0 Members and 1 Guest are viewing this topic.
JamesGD
Guest
« on: July 23, 2004, 02:52:00 PM »

The debug.pl returns a successful installation, but I cannot get the calendar apps to run?

Below is my system config.  I have checked the exec and write priv on the files and everything is ok.  I have changed the basedir variable, as I said, the debug.pl runs great.

Thanks for the help

You are running Perl version 5.006001 with linux
Query String:  
Server Addr:  [hidden for this message]
Http Accept Language:  en-us
Server Protocol:  HTTP/1.0
Http Connection:  Keep-Alive
Remote Port:  63691
Http Accept:  image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, application/x-shockwave-flash, */*
Http User Agent:  Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.0.3705; .NET CLR 1.1.4322)
Gateway Interface:  CGI/1.1
Http Host:  www.conquestclubs.com  
Server Software:  Apache/1.3.31 (Unix) PHP/4.3.8 mod_ssl/2.8.18 OpenSSL/0.9.6b FrontPage/5.0.2.2635 mod_throttle/3.1.2
Server Admin:  webmaster@conquestclubs.com
Remote Addr:  [hidden]
Script Name:  /cgi-bin/help.cgi
Server Name:  conquestclubs.com
Document Root:  /hsphere/local/home/cywnus/conquestclubs.com
Request Uri:  /cgi-bin/help.cgi
Http Cookie:  calendarscriptdebug=1
Unique Id:  QQFohUARigEAAEMPfG8
Request Method:  GET
Script Filename:  /hsphere/local/home/cywnus/conquestclubs.com/cgi-bin/help.cgi
Path:  /usr/local/bin:/usr/bin:/bin
Server Port:  80
Referer:    
Remote Host:    
Remote Address:    
Remote User:    
Request Method:    GET
Authorization Type:    
Script Name:    /cgi-bin/help.cgi
Self URL:    http://www.conquestclubs.com/cgi-bin/help.cgi  
User Agent:    Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.0.3705; .NET CLR 1.1.4322)
User Name:    
Directories Searched:  /usr/lib/perl5/5.6.1/i386-linux
  /usr/lib/perl5/5.6.1
  /usr/lib/perl5/site_perl/5.6.1/i386-linux
  /usr/lib/perl5/site_perl/5.6.1
  /usr/lib/perl5/site_perl/5.6.0/i386-linux
  /usr/lib/perl5/site_perl/5.6.0
  /usr/lib/perl5/site_perl
  /usr/lib/perl5/vendor_perl/5.6.1/i386-linux
  /usr/lib/perl5/vendor_perl/5.6.1
  /usr/lib/perl5/vendor_perl
Paths to Perl:  /usr/bin/perl
  /usr/lib/perl.tgz
  /usr/lib/perl5.bak
  /usr/share/man/man1/perl.1.gz  
  often found in '/usr/bin/perl' or '/usr/local/bin/perl'
Paths to Sendmail:  /usr/sbin/sendmail.sendmail
  /usr/sbin/sendmail
  /usr/sbin/sendmail.postfix
  /etc/sendmail.cf
  /usr/lib/sendmail
  /usr/share/man/man1/sendmail.1.gz
  /usr/share/man/man8/sendmail.8.gz  
  often found in '/usr/sbin/sendmail' or '/usr/lib/sendmail'

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

Please don't PM me. Post in the open forum.


WWW
« Reply #1 on: July 24, 2004, 12:37:00 PM »

** I cannot get the calendar apps to run [getting a 500 server error] **

A 500 server error message could be caused by just about anything. Basically all it means is that the script failed to run but says nothing as to why.

The first thing you should do is check the server error logs to see if a more detailed error message was recorded. Failing that, try running the script from the shell (telnet, SSH, etc.) to see what error(s) Perl reports.

Once you have that, if you still can't figure out the cause, post the more detailed error message and we'll see if we can suggest what the problem may be and/or how to correct it.

Dan O.

------------------

Logged
Dirk
Guest
« Reply #2 on: May 04, 2005, 06:31:00 PM »

I have a problem in a pl file. It does nog write information into an txt file as it should do.

Can someone debug this because I cant find the error. The rest works!


Her is the file ...


#!/usr/local/bin/perl

use CGI;
$q = new CGI;
$keuze = $q->param('plannen');


print "Content-type:text/html\n\n";
print "<html><head>";
print "<link href=\"../css/hodena.css\" type=\"text/css\" rel=\"StyleSheet\">";
print "</head>";


##### resultaten ophalen #####
open (INPUTFILE, "d:/inetpub/clubroot/hodena/js/weekendpoll.txt");
   $plan1 = <INPUTFILE>;($plan1) = ($plan1 =~ /(.*)\W+/);   
   $vote1 = <INPUTFILE>;($vote1) = ($vote1 =~ /(.*)\W+/);
   $plan2 = <INPUTFILE>;($plan2) = ($plan2 =~ /(.*)\W+/);   
   $vote2 = <INPUTFILE>;($vote2) = ($vote2 =~ /(.*)\W+/);
   $plan3 = <INPUTFILE>;($plan3) = ($plan3 =~ /(.*)\W+/);   
   $vote3 = <INPUTFILE>;($vote3) = ($vote3 =~ /(.*)\W+/);
   $plan4 = <INPUTFILE>;($plan4) = ($plan4 =~ /(.*)\W+/);
   $vote4 = <INPUTFILE>;($vote4) = ($vote4 =~ /(.*)\W+/);
   $plan5 = <INPUTFILE>;($plan5) = ($plan5 =~ /(.*)\W+/);   
   $vote5 = <INPUTFILE>;($vote5) = ($vote5 =~ /(.*)\W+/);
close INPUTFILE;

### resultaten aanpassen met nieuwe vote ###
if ( $keuze eq $plan1 ) { $vote1++; }
if ( $keuze eq $plan2 ) { $vote2++; }
if ( $keuze eq $plan3 ) { $vote3++; }
if ( $keuze eq $plan4 ) { $vote4++; }
if ( $keuze eq $plan5 ) { $vote5++; }

### resultaten wegschrijven ###
open (DATAFILE, "> d:/inetpub/clubroot/hodena/js/weekendpoll.txt");
print DATAFILE $plan1; print DATAFILE "\n";
print DATAFILE $vote1; print DATAFILE "\n";
print DATAFILE $plan2; print DATAFILE "\n";
print DATAFILE $vote2; print DATAFILE "\n";
print DATAFILE $plan3; print DATAFILE "\n";
print DATAFILE $vote3; print DATAFILE "\n";
print DATAFILE $plan4; print DATAFILE "\n";
print DATAFILE $vote4; print DATAFILE "\n";
print DATAFILE $plan5; print DATAFILE "\n";
print DATAFILE $vote5; print DATAFILE "\n";
close DATAFILE;

### screenoutput berekenen ###
$total = $vote1 + $vote2 + $vote3 + $vote4 + $vote5;

$percent1 = ((int(($vote1 / $total) * 1000)) / 10);
   $percent1 = substr($percent1,0,4);
   if ($vote1 < 1) { $percent1 = "0";}
$width1 = int($percent1 * 1);
   if ($vote1 < 1) { $width1 = 2;}
$percent1 = "$percent1%";
$image_percent1 = "<IMG SRC=\"/hodena/figuren/bar.jpg\" Height=\"10\" Width=\"$width1\">";

$percent2 = ((int(($vote2 / $total) * 1000)) / 10);
   $percent2 = substr($percent2,0,4);
   if ($vote2 < 1) { $percent2 = "0";}
$width2 = int($percent2 * 1);
   if ($vote2 < 1) { $width2 = 2;}
$percent2 = "$percent2%";
$image_percent2 = "<IMG SRC=\"/hodena/figuren/bar.jpg\" Height=\"10\" Width=\"$width2\">";

$percent3 = ((int(($vote3 / $total) * 1000)) / 10);
   $percent3 = substr($percent3,0,4);
   if ($vote3 < 1) { $percent3 = "0";}
$width3 = int($percent3 * 1);
   if ($vote3 < 1) { $width3 = 2;}
$percent3 = "$percent3%";
$image_percent3 = "<IMG SRC=\"/hodena/figuren/bar.jpg\" Height=\"10\" Width=\"$width3\">";

$percent4 = ((int(($vote4 / $total) * 1000)) / 10);
   $percent4 = substr($percent4,0,4);
   if ($vote4 < 1) { $percent4 = "0";}
$width4 = int($percent4 * 1);
   if ($vote4 < 1) { $width4 = 2;}
$percent4 = "$percent4%";
$image_percent4 = "<IMG SRC=\"/hodena/figuren/bar.jpg\" Height=\"10\" Width=\"$width4\">";

$percent5 = ((int(($vote5 / $total) * 1000)) / 10);
   $percent5 = substr($percent5,0,4);
   if ($vote5 < 1) { $percent5 = "0";}
$width5 = int($percent5 * 1);
   if ($vote5 < 1) { $width5 = 2;}
$percent5 = "$percent5%";
$image_percent5 = "<IMG SRC=\"/hodena/figuren/bar.jpg\" Height=\"10\" Width=\"$width5\">";

print "<body bgcolor=#EFEFEF><p class=\"menu\">";
print "Stemming over de bestemming van het Hodena weekend 2004-05.<br><br>";

print "<table class=\"menu\">";
print "<tr><td>Kust<td>$image_percent1 $percent1</tr>";
print "<TR><td>Ardennen<td>$image_percent2 $percent2</tr>";
print "<TR><td>Kempen<td>$image_percent3 $percent3</tr>";
print "<TR><td>Voerstreek<td>$image_percent4 $percent4</tr>";
print "<TR><td>Brabant<td>$image_percent5 $percent5</tr>";
print "<TR><TD> </tr>";
print "<TR><TD>Total votes:<TD>$total</tr>";
print "</table>";
print "<\/body><\/html>";
exit;


Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

Please don't PM me. Post in the open forum.


WWW
« Reply #3 on: May 04, 2005, 09:27:00 PM »

** Can someone debug this **

I don't recognise any of that code as part of the CalendarScript program which this forum is in support of.

Dan O.

------------------

Logged
Dirk
Guest
« Reply #4 on: May 05, 2005, 03:53:00 AM »

I know, but i hoped someone on this forum could help me.

Greetz.

Logged
Pages: [1]   Go Up
Print
Jump to: