[Dancer-users] Cloning vars in Template::Abstract breaks Plugin::DBIC

alex knowles alex at alixandalex.com
Thu Aug 30 11:24:04 CEST 2012


Hi all,

We're using Dancer 1.3100 and Plugin::DBIC however if we call a method
on a DBIx::Class object that then makes a request from within the
templates we get the following error:

<DBIX::Class object->call()>: DBI _new_sth: DBI::db=HASH(0x7283538)
has no ImplementorClass at
/opt/perl-5.12.3/lib/site_perl/5.12.3/x86_64-linux-ld/DBD/mysql.pm
line 230

This can be fixed with the attached patch, basically not using cloning on vars.

Do vars need to be cloned?  are they not per request anyway?

Thanks

Alex
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dancer.patch
Type: application/octet-stream
Size: 615 bytes
Desc: not available
URL: <http://www.backup-manager.org/pipermail/dancer-users/attachments/20120830/4216c39c/attachment.obj>


More information about the Dancer-users mailing list