Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Dancer-Plugin-SimpleCRUD CPAN distribution.

Report information
The Basics
Id: 87505
Status: resolved
Worked: 3 hours (180 min)
Priority: 0/
Queue: Dancer-Plugin-SimpleCRUD

People
Owner: msouth [...] gmail.com
Requestors: vincent.mc.li [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: simplecrud-example.pl: No DB settings for foo in /usr/local/share/perl/5.10.1/Dancer/Plugin/Database.pm
Date: Wed, 31 Jul 2013 21:35:33 -0700
To: bug-Dancer-Plugin-SimpleCRUD [...] rt.cpan.org
From: Vincent Li <vincent.mc.li [...] gmail.com>
Hi David, I am new to Dancer framework so pardon my ignorance, I used CPAN to install your Dancer::Plugin::SimpleCRUD 0.91 release and went into the example directory to run the simplecrud-example.pl, then after right after I login from browser, I got error log in console: [5575] error @0.002637> [hit #5]No DB settings for foo in /usr/local/share/perl/5.10.1/Dancer/Plugin/Database.pm l. 28 [5575] error @0.003183> [hit #5]request to GET /people crashed: Can't call method "column_info" on an undefined value at ../lib/Dancer/Plugin/SimpleCRUD.pm line 1242, <DATA> line 16. in /usr/local/share/perl/5.10.1/Dancer/Handler.pm l. 98 [5575] core @0.015243> [hit #5]response: 500 in /usr/local/share/perl/5.10.1/Dancer/Handler.pm l. 179 Am I miss anything to the DB setting for foo? this is stock installation and I didn't change anything. Regards, Vincent
I can reproduce this by using perl 5.10.1 I will look into this and see if I can figure out what is going on.
This is a red herring. What I did to reproduce wasn't because I was on 5.10, but because when I installed from 5.10 I got the latest Dancer::Plugin::Database. The problem does not manifest in D::P::Database 1.82, and it does in 2.07. On Mon Aug 05 09:35:07 2013, MSOUTH wrote: Show quoted text
> I can reproduce this by using perl 5.10.1 > > I will look into this and see if I can figure out what is going on.
OK I'm marking this resolved--the bug is in Dancer::Plugin::Database::Core . I've reported it here: https://github.com/bigpresh/Dancer-Plugin-Database/issues/41 A new version of Dancer::Plugin::Database::Core (0.03, I think) is on its way to CPAN now, according to abms on the #dancer channel of irc.perl.org. THANK YOU for your bug report--it's great to have this one fixed. In a few hours you should be able to cpan Dancer::Plugin::Database::Core and it will fix this issue for you.