I have recently updated my Catalyst installation from 5.71001 to version 5.80007 and have made one of my websites completely unusable. I followed the instructions in the tutorial (<a href="http://search.cpan.org/~hkclark/Catalyst-Manual-5.8000/lib/Catalyst/Manual/Tutorial/04_BasicCRUD.pod">http://search.cpan.org/~hkclark/Catalyst-Manual-5.8000/lib/Catalyst/Manual/Tutorial/04_BasicCRUD.pod</a>) to update the database to use load_components and have updated my schema files to match. However, when I go to my site I get the following error message:<br>
<br>DBIx::Class::ResultSet::next(): DBI Connection failed: Can't connect to data source 'HASH(0x9e139e0)' because I can't work out what driver to use (it doesn't seem to contain a 'dbi:driver:' prefix and the DBI_DRIVER env var is not set) at /home/me/local/share/perl/5.8.4/DBIx/Class/Storage/DBI.pm line 840<br>
<br>My connection string looks OK and matches the tutorial's example code:<br><br><span style="font-family: courier new,monospace;">__PACKAGE__->config(</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> schema_class => 'wppig::Schema',</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> connect_info => [</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> 'dbi:SQLite:wppig.db3',</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> ],</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">);</span><br><br>Debugging says the piece of code that it's hanging on looks like this:<br>
<br>
<span style="font-family: courier new,monospace;">my $result = $c->model('DB::Result::Tag')->search(</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
{ },</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
{ join => { 'items_tag' => 'tag' } }</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
);</span><br style="font-family: courier new,monospace;">
<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
while ( my $tag = $result->next ) {</span> # Hangs here<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
$tag_count{ $tag->tag }++;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
}<br></span><br>So it looks like the class is loading but I can't do anything with the ResultSet.<br><br>Any idea of why this is failing? Did I miss a step somewhere in the conversion? I'd be happy to provide more information if needed. <br>
<br>Thanks in advance for your help.<br><br clear="all">Collin Condray<br>@ccondray<br><a href="http://condray.net">condray.net</a><br>