First off, make sure you are running:
git pullperl Makefile.PL; makemake test, I get an error "no schema has been selected"DBIx::Class::Schema::deploy(): DBI Exception: DBD::Pg::db
do failed: ERROR: no schema has been selected to create in
A. This happens if you use PostgreSQL and there is no public schema in the search_path. To fix that, make sure your username's rolconfig doesn't exclude public from the search_path:
select rolname,rolconfig from pg_roles;
make test, I get an error about jpeg not supported:format 'jpeg' not supported - formats bmp, ico, pnm, raw, sgi, tga available for reading
at /root/.cpan/build/MojoMojo-0.999027-NEjeWE/lib/MojoMojo/Schema/Result/Photo.pm line 177.
A: Means Imager was built without support for jpeg pictures. Install libjpeg and libpng dev packages, and reinstall Imager from cpan (You can do this with force install Imager).
script/mojomojo\*.pl, gives and error that DBIC couldn't be instantiated:Couldn't instantiate component "MojoMojo::Model::DBIC", "Either ->config->{connect_info}
must be defined for MojoMojo::Model::DBIC or MojoMojo::Schema must have connect info defined on it.
A: make sure Makefile.PL is in the root directory of the application. In other words, don't run mojomojo_*.pl from an absolute path; cd first to the MojoMojo root directory, where Makefile.PL resides.
A: Replace the password in the database:
perl -Ilib -MMojoMojo -le'MojoMojo->model("DBIC::Person")->find({login=>"admin"})->update({pass=>"wonky"});'
Couldn't render template "undef error - Error while inflating 0 for created on
MojoMojo::Schema::Result::Content: Invalid date format: 0 at
/usr/local/lib/perl/5.10.0/Template/Service.pm line 91
A: You probably have an version of {{DBIx::Class::DateTime::Epoch}} < 0.04
You must configure a default store type unless you use exactly one store plugin.
at /usr/local/share/perl/5.10.0/Catalyst/Plugin/Authentication.pm line 203
A: Update both Catalyst::Plugin::Authentication and Catalyst::Plugin::Cache
A: A main_formatter must be specified in the 'Site Settings'.1
If you see something like:
Failed test 'use Catalyst::Test;'
# at t/01app.t line 7.
# Tried to use 'Catalyst::Test'.
Error: Could not load class (MojoMojo) because :
Invalid Args('') for action attachment/defaultaction
(use 'Args' or 'Args(<number>)'Compilation failed
in require at /usr/local/lib/perl/5.10.0/Class/MOP.pm line 135.
What was once interpreted as Args(0) when writing Args('') now2 throws an error with Catalyst. The MojoMojo code base was patched in version 0.999030. You can update you version of MojoMojo or directly patch with
sub defaultaction : PathPart('') Chained('attachment') Args(0) { my ( $self, $c ) = @_; $c->forward('view'); }
in your Attachment Controller.