Antw: Re: [Koha] Problem with Koha-1.3.3

Arnold Graeub Arnold.Graeub at
Fri Jan 10 05:57:47 NZDT 2003

Verkehrs-Club der Schweiz VCS
Arnold Gräub
Leiter EDV/Informatik
Tel. 062 956 56 45
mailto:arnold.graeub at

>>> paul POULAIN <paul.poulain at> 09.01.03 15:30:02 >>>
Arnold Graeub a écrit:

>I have installed the new Version Koha-1.3.3. The script requires, so I downloaded HTML::Template from CPAN. When running, the following error messge occurs, koha-error.log:
>HTML::Template->new() : Cannot open included file /default/en/intranet-main.tmpl : file not found. at /usr/lib/perl5/site_perl/5.8.0/HTML/ line 1580
>        HTML::Template::_init_template('HTML::Template=HASH(0x81c4434)') called at /usr/lib/perl5/site_perl/5.8.0/HTML/ line 1177
>        HTML::Template::_init('HTML::Template=HASH(0x81c4434)') called at /usr/lib/perl5/site_perl/5.8.0/HTML/ line 1071
>        HTML::Template::new('HTML::Template','filename','/default/en/intranet-main.tmpl','die_on_bad_params',0,'global_vars',1,'path','ARRAY(0x857a180)',...) called at /usr/lib/perl5/site_perl/C4/ line 92
>        C4::Output::gettemplate('intranet-main.tmpl','intranet') called at /usr/lib/perl5/site_perl/C4/ line 105
>        C4::Auth::get_template_and_user('HASH(0x857a85c)') called at /usr/local/httpd/koha/intranet/cgi-bin/ line 11
>[Thu Jan  9 09:53:55 2003] [error] [client] Premature end of script headers: /usr/local/httpd/koha/intranet/cgi-bin/
>Where is the path to /default/en/intranet-main.tmpl defined ?
Strange indeed...
It means the path_to_template has not been set.

did you install koha from scratch or upgrade from a previous 1.3.x version ?
It means that the path_to_template is not defined.
To define it go to /etc/koha.conf and look at the line :
(that's mine).
where "/home/httpd/htlm/intra_133" is the root directory you've entered 
at 1st stage of installer.

Let us know if this helps.

Consultant indépendant en logiciels libres
responsable francophone de koha (SIGB libre

Bonsoir Paul,

Merci beaucoup de ton assistance!
The path intrahtdocs was not set.

The next problem is the following, koha-error.log:

DBD::mysql::st execute failed: Unknown column 'userid' in 'where clause' at /usr/lib/perl5/site_perl/C4/ line 387.
DBD::mysql::st fetchrow failed: fetch() without execute() at /usr/lib/perl5/site_perl/C4/ line 389.

On line 386 in string "my $sth=$dbh->prepare("select borrowernumber from borrowers where userid=?");"
In the mysql-tables there is no column "userid" but "usercode". Is this the problem?

Merci d'avance

More information about the Koha mailing list