koha-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Koha-devel] Re: FAQ: Why am I prompted to save a .pl file? was: Problem


From: Rick Welykochy
Subject: [Koha-devel] Re: FAQ: Why am I prompted to save a .pl file? was: Problems adding a biblio...
Date: Tue, 11 Sep 2007 17:53:22 +1000
User-agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8.1.6) Gecko/20070802 SeaMonkey/1.1.4

MJ Ray wrote:
        
Hennie Rautenbach <address@hidden> wrote: [...]
trying to add a "biblio" manually. We are prompted to save the "addbiblio.pl" file. I see this has happened to other users before (google search), but I am unable to find a reference to a fix for it.

This has happened because the script has crashed without producing any
output, so apache has guessed (incorrectly) what headers to send and
your browser interpreted it as a file download.

To stop it, fix the crash.  To fix the crash, find out the error.  To
find out the error, look in koha-error_log for the time of the crash.
(To find koha-error_log, see the ErrorLog line in koha-httpd.conf)

The developers can go a long way towards stopping this situation
from every happening again.

To stop this problem once and for all from ever occurring again,
catch all errors. To catch all errors and thus produce the correct
headers for EVERY Koha script, use exception handling. Works a treat :)

cheers
rickw



--
_________________________________
Rick Welykochy || Praxis Services

The idea that Bill Gates has appeared like a knight in shining armour to lead 
all
customers out of a mire of technological chaos neatly ignores the fact that it 
was
he who, by peddling second-rate technology, led them into it in the first place.
     -- Douglas Adams on Windows '95.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]