[Koha] ( Internal Server Error)

Mohamed Amin abo_amin at hotmail.com
Thu Apr 24 22:31:51 NZST 2003


>
>That all looks fine then.  Next test:
>
>
>This will test if just loading the Koha modules is causing an error:
>==========================================
>#!/usr/bin/perl
>use C4::Search;
>
>print "Content-type: text/html\n\n";
>
>print "Test.\n";
>==========================================


I've tried this script and it's ok , it worked through the browser .



>And, as another test try this:
>
>
>Edit /usr/local/koha/intranet/cgi-bin/search.pl, changing:
>
>my $query=new CGI;
>
>to
>
>my $query=new CGI('keyword=bear');
>
>Then at the bash prompt, type:
>
>export PERL5LIB=/usr/local/koha/intranet/modules
>perl /usr/local/koha/intranet/cgi-bin/search.pl >test.out 2>test.err
>
>Then send the contents of test.out and test.err again.  This time, the
>script will actually perform a search where keyword is bear (change it to
>something more relevant for your data).
>

Also I've did that and the output was the foloowing :


Set-Cookie: sessionID=; path=/; expires=Fri, 23-Apr-2004 08:06:37 GMT
Date: Thu, 24 Apr 2003 08:06:37 GMT
Content-Type: text/html; charset=ISO-8859-1

<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<!--Authored by rachel at katipo.co.nz 104:38 1/11/99-->
<!--updated by rachel at katipo.co.nz 12:24 12/01/00-->

<html>
<head>
<title>KOHA: INTRANET: Catalogue</title>


<style type="text/css">
<!--
select,option {font-size:12px}
-->

</style>

<SCRIPT LANGUAGE="JavaScript">
<!--

// go to page selected from options menu

function leapto(form) {
var myindex=form.dest.selectedIndex
parent.location.href=(form.dest.options[myindex].value);
}

function focusinput() {
    window.onerror=null;
    if (document.forms[0]) {
	document.forms[0].elements[0].focus();
    }
}

if (document.images){

menu=new Image;
menu.src ="/images/cat-cat.gif"

}

function messenger(url){
  
window1=window.open(url,"window1","height=250,width=350,left=150,top=50,350,screenY=50");

}

//-->

</script>

</head>
<body text="black" bgcolor="white" link="#0000ff"
vlink="#0000ff" "3366cc" Alink="#cc3300"
marginheight=0 marginwidth=0 leftmargin=0 topmargin=0
onLoad=focusinput()>




<!--HDL Colours

	Yellow = ffcc00
	light blue = ccccff
	bright blue links = 0000ff
	aubergine = 663266
	light green/grey = cccc99


-->

<!------------------------MENUS-------------------------------->

<table cellpadding=0 cellspacing=0 width="100%" border=0>
<tr bgcolor=663266 >

	<td  valign=top>
	<table cellpadding=0 cellspacing=0  border=0 height=29>
	<tr valign=top bgcolor=663266 >
	<td background="/images/catalogue-spot-1.gif" width="224"
	height="29"><font size=1 face="arial"><img src="/images/holder.gif" 
width=210 height=4 alt=" " hspace=0 vspace=0><br>
	<img src="/images/holder.gif"
	width=35 height=21 align=left alt=" " hspace=0 vspace=0><font 
size="+1">KOHA: <a href="/cgi-bin/koha/mainpage.pl">Main Menu</a></font><br>
	<img src="/images/holder.gif" width=210 height=1 alt=" " hspace=0 
vspace=0></FONT></td>

	</TR></TABLE> </td>


	<td  valign=bottom align=right>
<img src="/images/holder.gif"  WIDTH=1  HEIGHT=38 HSPACE=0 vspace=0></td>
<td  valign=bottom align=right>
	<table cellpadding=0 cellspacing=0  border=0 height=29><tr><td>
<img src=/images/cat-cat.gif border="0" name=menu usemap="#map" HSPACE=0 
vspace=0 ></td>

	</TR></TABLE></TD>
</tr>

</tr>
<TR VALIGN=TOP BGCOLOR="000000"><TD  COLSPAN=3><img 
src="/images/blackdot.gif"  WIDTH=1  HEIGHT=2  HSPACE=0 vspace=0></TD></TR>

</table>


<map name="map">
<area shape="rect" coords="18,8,84,27" 
href="/cgi-bin/koha/catalogue-home.pl" alt="Catalogue" 
onMouseOver="if(document.images)document.menu.src='/images/cat-cat.gif'" 
onMouseOut="if(document.images)document.menu.src='/images/cat-cat.gif'">

<area shape="rect" coords="94,8,149,28" href="/cgi-bin/koha/members-home.pl" 
alt="Members" 
onMouseOver="if(document.images)document.menu.src='/images/cat-mem.gif'" 
onMouseOut="if(document.images)document.menu.src='/images/cat-cat.gif'">

<area shape="rect" coords="154,9,212,29" alt="Acquisitions"   
href="/cgi-bin/koha/loadmodules.pl?module=acquisitions" 
onMouseOver="if(document.images)document.menu.src='/images/cat-acq.gif'" 
onMouseOut="if(document.images)document.menu.src='/images/cat-cat.gif'">

<area  shape="rect"alt="Reports"  
coords="217,7,289,27"href="/cgi-bin/koha/reports-home.pl" 
onMouseOver="if(document.images)document.menu.src='/images/cat-rep.gif'" 
onMouseOut="if(document.images)document.menu.src='/images/cat-cat.gif'">

<area shape="rect" coords="306,8,352,27" 
href="/cgi-bin/koha/circ/circulation.pl" alt="Circulation" 
onMouseOver="if(document.images)document.menu.src='/images/cat-crc.gif'" 
onMouseOut="if(document.images)document.menu.src='/images/cat-cat.gif'">

<area  shape="rect" alt="Home" coords="374,9,419,29" 
href="/cgi-bin/koha/mainpage.pl" 
onMouseOver="if(document.images)document.menu.src='/images/cat-hom.gif'" 
onMouseOut="if(document.images)document.menu.src='/images/cat-cat.gif'">
<area shape="default" nohref>
</map>



<BLOCKQUOTE>


<center>


    <p align=left><a href=/cgi-bin/koha/userpage.pl>Log In</a> to Koha</p>




    You did not specify any seach criteria<br>


results found
<p>


    <!-- Row of numbers corresponding to search result pages -->

	<img src=/images/numbers/placeholder.gif border=0>



	<img src=/images/numbers/placeholder.gif border=0>


    <p>



<!-- Search Results Table -->


    Try another <a href=/cgi-bin/koha/catalogue-home.pl>search</a>



<br clear=all>
<p> &nbsp; </p>


</BLOCKQUOTE>

<table cellpadding=0 cellspacing=0 width="100%" border=0>
<TR VALIGN=TOP BGCOLOR="000000"><TD  COLSPAN=6><img 
src="/images/blackdot.gif"  WIDTH=1  HEIGHT=2  HSPACE=0 
vspace=0></TD></TR></TABLE>


<CENTER>
<FONT SIZE=2  face="arial, helvetica">
<A HREF="/cgi-bin/koha/mainpage.pl">Home</a> ||
<A HREF="/cgi-bin/koha/circ/circulation.pl">Circulation</a> ||
<A HREF="/cgi-bin/koha/catalogue-home.pl">Catalogue</a> ||
<A HREF="/cgi-bin/koha/members-home.pl">Members</a> ||
<A HREF="/cgi-bin/koha/loadmodules.pl?module=acquisitions">Acquisitions</a> 
||
<A HREF="/cgi-bin/koha/reports-home.pl">Reports</a> ||
<A HREF="/cgi-bin/koha/admin-home.pl">System Parameters</a> ||
<A HREF="/help/">Help</a>
</FONT>
</CENTER>
</BODY>

</HTML>


Mohamed Amin


_________________________________________________________________
Add photos to your e-mail with MSN 8. Get 2 months FREE*. 
http://join.msn.com/?page=features/featuredemail




More information about the Koha mailing list