mojomojo.org
/troubleshooting
Troubleshooting
- Do this first
- Q: When I run make test, I get an error "no schema has been selected"
- Q: When I run make test, I get an error about jpeg not supported:
- Q: Running script/mojomojo\*.pl, gives and error that DBIC couldn't be instantiated:
- Q: How can I recover my password if I have access to the database?
- Q: I get a message about "Invalid date format" that looks like:
- Q: I get an error about a default store type such as:
- Q: After updating MojoMojo it starts fine, but I don't see any pages anymore.
- Q: Invalid Args('') - Failure of Test t/01app.t
Do this first
First off, make sure you are running:
- the latest code -
git pull - the latest CPAN modules (because even days old modules have caused subtle failures) -
perl Makefile.PL; make
Q: When I run make 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;
Q: When I run 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).
Q: Running 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.
Q: How can I recover my password if I have access to the database?
A: Replace the password in the database:
perl -Ilib -MMojoMojo -le'MojoMojo->model("DBIC::Person")->find({login=>"admin"})->update({pass=>"wonky"});'
Q: I get a message about "Invalid date format" that looks like:
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
Q: I get an error about a default store type such as:
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
Q: After updating MojoMojo it starts fine, but I don't see any pages anymore.
A: A main_formatter must be specified in the 'Site Settings'.1
Q: Invalid Args('') - Failure of Test t/01app.t
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.
A: Your version of Catalyst is too smart ;)
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.