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

Rick Welykochy rick at praxis.com.au
Tue Sep 11 09:53:22 CEST 2007


MJ Ray wrote:
	
> Hennie Rautenbach <hennie at sabinet.co.za> 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.






More information about the Koha-devel mailing list