[Koha] [Koha 3.00.02] 'use C4::Circulation' test fails

Joe Atzberger ohiocore at gmail.com
Thu Jun 11 05:35:37 NZST 2009


Marc --

Looks like a common error on the
web<http://www.google.com/search?q=DBD%3Amysql+autocommit&ie=utf-8&oe=utf-8>.


The DBD:mysql perldoc says:

   - You should never change the server variable autocommit manually, unless
   you are ignoring DBI's transaction support.
   - Switching AutoCommit mode from on to off or vice versa may fail. You
   should always check for errors, when changing AutoCommit mode. The suggested
   way of doing so is using the DBI flag RaiseError. If you don't like
   RaiseError, you have to use code like the following:

     $dbh->{'AutoCommit'} = 0;
     if ($dbh->{'AutoCommit'}) {
       # An error occurred!
     }

   - If you detect an error while changing the AutoCommit mode, you should
   no longer use the database handle. In other words, you should disconnect and
   reconnect again, because the transaction mode is unpredictable.
   Alternatively you may verify the transaction mode by checking the value of
   the server variable autocommit. However, such behaviour isn't portable.

So we probably need to check for potential failure in setting the variable.
This may be related to perl 5.10 in underlying ways.

--Joe


2009/6/10 Marc Nürnberger <marc.nuernberger at gmx.de>

> Dear all,
>
> When I try to install the latest 3.0.2 the 'make test' returns:
>
> ###########################################
>
> t/Circulation_barcodedecode....NOK 1/16
> #   Failed test 'use C4::Circulation;'
> #   at t/Circulation_barcodedecode.t line 10.
> #     Tried to use 'C4::Circulation'.
> #     Error:  DBD driver has not implemented the AutoCommit attribute
> at /usr/lo
>                  cal/lib/perl/5.10.0/DBI.pm line 705.
> # Compilation failed in require at
> /home/koha/koha-3.00.02/blib/PERL_MODULE_DIR/
>                                                     C4/Circulation.pm
> line 25.
> # BEGIN failed--compilation aborted at t/Circulation_barcodedecode.t
> line 10.
> # Compilation failed in require at (eval 3) line 2.
> # BEGIN failed--compilation aborted at (eval 3) line 2.
> Undefined subroutine &C4::Circulation::barcodedecode called at
> t/Circulation_bar
>                         codedecode.t line 31.
> # Looks like you planned 16 tests but only ran 1.
> # Looks like you failed 1 test of 1 run.
> # Looks like your test died just after 1.
> t/Circulation_barcodedecode....dubious
>         Test returned status 255 (wstat 65280, 0xff00)
> DIED. FAILED tests 1-16
>         Failed 16/16 tests, 0.00% okay
>
> ###########################################
>
> If I try to ignore this, the webinstaller won't start, but complain:
>
> ###########################################
>
> DBD driver has not implemented the AutoCommit attribute at
> /usr/local/lib/perl/5.10.0/DBI.pm line 705.
> Compilation failed in require at /usr/share/koha/lib/C4/Circulation.pm
> line 25.
> BEGIN failed--compilation aborted at
> /usr/share/koha/lib/C4/Circulation.pm line 25.
> Compilation failed in require at /usr/share/koha/lib/C4/Overdues.pm
> line 24.
> BEGIN failed--compilation aborted at
> /usr/share/koha/lib/C4/Overdues.pm line 24.
> Compilation failed in require at /usr/share/koha/lib/C4/Members.pm
> line 27.
> BEGIN failed--compilation aborted at /usr/share/koha/lib/C4/Members.pm
> line 27.
> Compilation failed in require at /usr/share/koha/lib/C4/Auth.pm line 27.
> BEGIN failed--compilation aborted at /usr/share/koha/lib/C4/Auth.pm
> line 27.
> Compilation failed in require at
> /usr/share/koha/opac/cgi-bin/opac/opac-main.pl line 22.
> BEGIN failed--compilation aborted at
> /usr/share/koha/opac/cgi-bin/opac/opac-main.pl line 22.
>
> ###########################################
>
> I am using DBD:mysql 4.007 (couldn't install 4.011) on Perl 5.10 on Lenny.
>
> Has anyone experienced the same error? Any ideas what I messed up?
>
> Best regards,
> Marc
>
>
>
>
>
> _______________________________________________
> Koha mailing list
> Koha at lists.katipo.co.nz
> http://lists.katipo.co.nz/mailman/listinfo/koha
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.katipo.co.nz/pipermail/koha/attachments/20090610/07acd12b/attachment-0001.htm 


More information about the Koha mailing list