Discussion:
[Koha] Script to add Patron Records from another Database
Mutsikiwa Admire
2018-11-24 14:02:49 UTC
Permalink
Hi

I would like to add patrons from our Management Information System. I
have a script which use to work before on lower version of Koha. Now I am
running Koha version 17.11.11.000 and I am getting the following error:

unable to locate Koha configuration file koha-conf.xml at
/usr/share/koha/lib/C4/Context.pm line 245



I will appreciate any script that could run in the context of Koha i.e using
my $dbh = C4::Context->dbh;



Kind Regards,



Admire Mutsikiwa

ICT Projects Manager

Libraries

University of Zimbabwe

<Tel:+263-4-303276> Tel:+263-4-303276

"It is easy to dodge our responsibilities, but we cannot dodge the
consequences of dodging our responsibilities." Josiah Charles Stamp,
1880-1941, former director of the Bank of England



_______________________________________________
Koha mailing list http://koha-community.org
***@lists.katipo.co.nz
https://lists.katipo.co.nz
Andreas Roussos
2018-11-24 16:15:27 UTC
Permalink
Hi Admire,

Perhaps you've set the PERL5LIB environment variable, but not KOHA_CONF?

Or, you've set KOHA_CONF but it points to the wrong file?

Try running your script from within the shell set up by the command:

`koha-shell <INSTANCE_NAME>` (for the list of INSTANCE_NAMEs run
`koha-list`)

as that will take care of setting the correct environment variables for you.

I hope this helps.

Kind regards,
Andreas
Post by Mutsikiwa Admire
Hi
I would like to add patrons from our Management Information System. I
have a script which use to work before on lower version of Koha. Now I am
unable to locate Koha configuration file koha-conf.xml at
/usr/share/koha/lib/C4/Context.pm line 245
I will appreciate any script that could run in the context of Koha i.e using
my $dbh = C4::Context->dbh;
Kind Regards,
Admire Mutsikiwa
ICT Projects Manager
Libraries
University of Zimbabwe
<Tel:+263-4-303276> Tel:+263-4-303276
"It is easy to dodge our responsibilities, but we cannot dodge the
consequences of dodging our responsibilities." Josiah Charles Stamp,
1880-1941, former director of the Bank of England
_______________________________________________
Koha mailing list http://koha-community.org
https://lists.katipo.co.nz/mailman/listinfo/koha
Continue reading on narkive:
Loading...