That error is generated by the Carp Perl module. It is placed in the browser for you instead of in a log file. The only way to change the error is to change the code, in addbiblio.pl line 878, so that it checks the biblio loaded properly before calling the title function. There, if the biblio didn't load, you can redirect to whatever page you want.
Good luck. 2009/12/21 nitesh rijal <rijal...@gmail.com> > Hello all. > > I am having some problem with redirecting a standard KOHA Error to some > other page. Actually I've modified a function to navigate to next and > previous biblionumber within the records in KOHA. The problem is that if I > supply a existing biblionumber it works fine, but when I supply a > biblionumber that is not present then it gives the following error. > > Koha error >> >> The following fatal error has occurred: >> >> Can't call method "title" on an undefined value at >> /usr/share/koha/intranet/cgi-bin/cataloguing/addbiblio.pl line 878. >> >> Apache Server version: Apache/2.2.9 (Debian) Server built: Nov 14 2009 >> 20:23:49 Koha 3.00.02.012 Koha DB 3.0002012 MySQL mysql Ver 14.12 Distrib >> 5.0.51a, for debian-linux-gnu (i486) using readline 5.2 OS Linux >> koha.healthnet.org.np 2.6.26-2-686 #1 SMP Wed Nov 4 20:45:37 UTC 2009 >> i686 Perl 5.010000 > > > I just want to format that ERROR message to display something else or just > redirect to a "ADD New Record" form. I cannot find where the error is being > displayed from. Please if anyone knows where to change these things, help > me. > > Thank you. > -- > Nitesh Rijal > BE IT > email: rijal...@gmail.com > url: http://niteshrijal.com.np > facebook: http://facebook.com/openrijal > twitter: http://twitter.com/openrijal > +9779841458173 > > _______________________________________________ > Koha-devel mailing list > Koha-devel@lists.koha.org > http://lists.koha.org/mailman/listinfo/koha-devel >
_______________________________________________ Koha-devel mailing list Koha-devel@lists.koha.org http://lists.koha.org/mailman/listinfo/koha-devel