Subject: | Error when requesting table |
Perl Version: perl 5, version 14, subversion 2 (v5.14.2) built for
i686-linux
Catalyst::Plugin::AutoCRUD version 2.113450
I was trying to set up a simple app using AutoCRUD with an external DBIC
schema. I can get the db table list when I go to my app with /autocrud
added to the url. But when I click on one of the table names, I get the
errors you see below.
[debug] "GET" request for "autocrud/madisondb/event"
[debug] Path is "/autocrud/root/table"
[debug] Arguments are "event"
[debug] autocrud: retrieving cached config for site [default]
[debug] autocrud: forwarding to f/end AutoCRUD::DisplayEngine::ExtJS2
[debug] Rendering template "list.tt"
[error] Caught exception in
DatabaseViewer::Model::AutoCRUD::StorageEngine::DBIC->schema_metadata
"Error with filter 1 : Can't call method "extra" on an undefined value
at
/var/opt/madison/dev_amyc/catalyst_perl/lib/site_perl/5.14.2/SQL/Translator/Filter/AutoCRUD/StorageEngine/DBIC/ViewsAsTables.pm
line 43."
[error] Caught exception in
DatabaseViewer::Controller::AutoCRUD::Root->do_meta "Can't bless
non-reference value at
/var/opt/madison/dev_amyc/catalyst_perl/lib/site_perl/5.14.2/SQL/Translator/AutoCRUD/Quick.pm
line 31."
[error] Caught exception in
DatabaseViewer::Controller::AutoCRUD::Root->bootstrap "Can't call method
"t" on an undefined value at
/var/opt/madison/dev_amyc/catalyst_perl/lib/site_perl/5.14.2/Catalyst/Plugin/AutoCRUD/Controller/Root.pm
line 191."
[debug] Response Code: 500; Content-Type: text/html; charset=utf-8;
Content-Length: 257529
[info] Request took 4.670589s (0.214/s)
.------------------------------------------------------------+-----------.
| Action | Time |
+------------------------------------------------------------+-----------+
| /autocrud/root/base | 0.000534s |
| /autocrud/root/db | 0.001046s |
| -> /autocrud/root/schema | 0.000489s |
| /autocrud/root/table | 4.102379s |
| -> /autocrud/root/source | 4.101853s |
| -> /autocrud/root/bootstrap | 4.090587s |
| -> /autocrud/root/build_site_config | 0.010152s |
| -> /autocrud/root/acl | 0.000615s |
| -> /autocrud/root/do_meta | 4.077958s |
| -> DatabaseViewer::Model::AutoCRUD::StorageEngine::DB- | 4.076052s |
| IC->schema_metadata | |
| -> /autocrud/displayengine/extjs2/process | 0.000511s |
| /autocrud/root/end | 0.023455s |
| -> DatabaseViewer::View::AutoCRUD::TT->process | 0.021753s |
'------------------------------------------------------------+-----------'
The contents of the Model .pm file (the authentication details are
dummies here - I know I can connect to the db, that's not the issue):
package DatabaseViewer::Model::MadisonDB;
no strict refs;
use base 'Catalyst::Model::DBIC::Schema';
$ENV{SYBASE}='/opt/sybase-15.5';
$ENV{SYBASE_OCS}='OCS';
__PACKAGE__->config(
schema_class => 'MadisonDB::Schema',
connect_info => {
dsn => "dbi:Sybase:server=$server;database=$db",
user => "user",
password => "1234",
}
);
Any idea why I would be getting these errors? Let me know if other
information would be helpful.