[Maypole] another problems ?

raptor raptor@tvskat.net
Tue, 25 Jan 2005 22:12:38 +0200


I seem to be unable to make Maypole work under Apache2, so I  donwgraded 
to 1.33.
Now i get more errors.. sometimes I see the list of the TEST table sometimes not.
I cant see the Classifieds table 

>>>>>
Loaded tables: classifieds,test at /usr/lib/perl5/site_perl/5.8.2/Maypole/Model/CDBI.pm line 240.
caught view error: Can't fetch data as class method at /usr/lib/perl5/site_perl/5.8.2/Maypole/View/Base.pm line 40
Can't fetch data as class method at /usr/lib/perl5/site_perl/5.8.2/Maypole/View/Base.pm line 40
:  at /usr/lib/perl5/site_perl/5.8.2/Maypole.pm line 128
Use of uninitialized value in length at /usr/lib/perl5/site_perl/5.8.2/Apache/MVC.pm line 64.
Use of uninitialized value in subroutine entry at /usr/lib/perl5/site_perl/5.8.2/Apache/MVC.pm line 73.
[Tue Jan 25 21:36:25 2005] [error] [client x.x.x.x] File does not exist: /arh/sites/alo/site/classifieds/list/
<<<<<<

If I try to ADD something... I keep seeing ADD again (w/o any link to go to home page or something),
 so then I try to go directly to http://www.blah.com/test/list/ and getting 

>>>>>
File does not exist: /arh/sites/alo/site/test/list/
caught model error: Alo::Test can't SELECT id
FROM   test
: DBD::Pg::st execute failed: ERROR:  current transaction is aborted, commands ignored until end of transaction block [for Statement "SELECT id
FROM   test
"] at /usr/lib/perl5/site_perl/5.8.2/DBIx/ContextualFetch.pm line 51.
 at /usr/lib/perl5/site_perl/5.8.2/Class/DBI/Plugin/RetrieveAll.pm line 85
Alo::Test can't SELECT id
FROM   test
: DBD::Pg::st execute failed: ERROR:  current transaction is aborted, commands ignored until end of transaction block [for Statement "SELECT id
FROM   test
"] at /usr/lib/perl5/site_perl/5.8.2/DBIx/ContextualFetch.pm line 51.
 at /usr/lib/perl5/site_perl/5.8.2/Class/DBI/Plugin/RetrieveAll.pm line 85
:  at /usr/lib/perl5/site_perl/5.8.2/Maypole.pm line 118
Use of uninitialized value in concatenation (.) or string at /usr/lib/perl5/site_perl/5.8.2/Apache/MVC.pm line 58.
Use of uninitialized value in length at /usr/lib/perl5/site_perl/5.8.2/Apache/MVC.pm line 64.
Use of uninitialized value in subroutine entry at /usr/lib/perl5/site_perl/5.8.2/Apache/MVC.pm line 73.
[Tue Jan 25 21:42:23 2005] [error] [client x.x.x.x] File does not exist: /arh/sites/alo/site/test/list
<<<<<

any further ideas whats wrong...


apache config :

NameVirtualHost x.x.x.x:84
<VirtualHost x.x.x.x:84>
    ServerName www.blahx.com
    DocumentRoot /arh/sites/alo/site
    LogLevel debug
    ErrorLog /var/log/apache/alo.log
    PerlSetEnv PERL5LIB /arh/sites/alo/lib
#    PerlRequire "/arh/sites/alo/lib/startup.pl"

    <Location /css>
        Order allow,deny
        Allow from all
        AllowOverride None
    </Location>
    <Directory /arh/sites/alo/site>
        Order allow,deny
        Allow from all
        AllowOverride None
        SetHandler perl-script
        PerlHandler Alo
    </Directory>
</VirtualHost>


Alo.pm is :
---------------
package Alo;
use base 'Apache::MVC';
#use base 'Maypole::Application';
#use CGI::Maypole;

Alo->setup('dbi:Pg:dbname=alodb','user', 'pass');
Alo->config->{uri_base} = "http://x.x.x.x:84";
Alo->config->{rows_per_page} = 10;
Alo->config->{application_name} = 'Alooo';

Alo->config->{display_tables} =  [qw(classifieds test)] ;
Alo->config->{template_root} = "/arh/sites/alo/tpl";

Alo::Classifieds->untaint_columns( printable => [qw(description xyz)] );
Alo::Test->untaint_columns( printable => [qw(more)] );

sub debug {1};

1;