[Maypole] Maypole 2.09 (mandrake 10.1) problem

From: Marcello (m.romani at spinsoft.it)
Date: Thu Jan 27 2005 - 16:37:51 GMT


Hi,
     I've installed Maypole 2.09 under mandrake 10.1,
apache-1.3.31/mod_perl 1.29 (.
To test the installation, I've created the sample BeerDB application.
I get the following error:

Can't call method "_table2class" on an undefined value at
/usr/lib/perl5/site_perl/5.8.5/Maypole/Model/CDBI.pm line 250.\n

The relevant code is:

     248 sub class_of {
     249 my ( $self, $r, $table ) = @_;
     250 return $r->config->loader->_table2class($table);
     251 }

In BeerDB.pm, I've commented out almost everything, to see where the
error came from:

<code filename="BeerDB.pm">
package BeerDB;
use strict;
use warnings;

use Maypole::Application;
sub debug { 1; }
BeerDB->setup("dbi:mysql:beerdb", "root");
1;
</code>

My Apache configuration is:
     <Location /perl/beerdb>
         SetHandler perl-script
         PerlHandler +BeerDB
     </Location>

I'm sure I'm doing something silly, but I can't figure it out.

Thanks in advance.

Marcello

_______________________________________________
maypole mailing list
maypole at lists.netthink.co.uk
http://lists.netthink.co.uk/listinfo/maypole



This archive was generated by hypermail 2.1.3 : Thu Feb 24 2005 - 22:25:57 GMT