[jifty-devel] Errors when running through the tutorial
jarich at perltraining.com.au
Fri Jan 26 22:51:25 EST 2007
I'm new to Jifty, so I thought I'd work through the tutorial on CPAN for the
blog. Unfortunately I encounter an error at the Viewing stage. If I pick the
"quick and dirty way":
I get the following error:
Error in template /index.html line 3
Can't locate object method "new" via package "MyWeblog::Model::PostCollection"
(perhaps you forgot to load "MyWeblog::Model::PostCollection"?) at
/home/jarich/jifty/Test/share/web/templates/index.html line 3.
Picking the "complex way":
of course generates the same error on the index page, but not at /post (although
it does if I post a blog entry). The tutorial suggests that Jifty::ClassLoader
should be taking care of this, but it clearly isn't. I'm not sure where I
should be initialising ClassLoader to solve this problem.
Another interesting thing was that the error page after posting the tutorial
Error in template /fragments/page_of_posts line 3
with the template being a link. If I attempt to follow the link though I get a
404: "You got to a page that we don't think exists. Anyway, the software has
logged this error. Sorry about this."
All the best,
More information about the jifty-devel