Script to add Patron Records from another Database
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
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 On Sat, 24 Nov 2018 at 16:03, Mutsikiwa Admire <amutsikiwa@uzlib.uz.ac.zw> wrote:
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 Koha@lists.katipo.co.nz https://lists.katipo.co.nz/mailman/listinfo/koha
participants (2)
-
Andreas Roussos -
Mutsikiwa Admire