Skip Menu |

This queue is for tickets about the Handel CPAN distribution.

Report information
The Basics
Id: 31166
Status: resolved
Priority: 0/
Queue: Handel

People
Owner: claco [...] cpan.org
Requestors: m.e [...] acm.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: store_session_data not found
I get this error [error] Caught exception in engine "Can't locate object method "store_session_data" via package "myapp" at /usr/lib/perl5/site_perl/5.8.8/Catalyst/Plugin/Session.pm line 136."
From: m.e [...] acm.org
I get the impression that I need to install Catalyst::Plugin::Session::Store::DBIC and then do some configuration. Do I need to create a Session table? A Session.pm object? What? And where is this documented?
Subject: Re: [rt.cpan.org #31166] store_session_data not found
Date: Mon, 03 Dec 2007 10:41:54 -0500
To: bug-Handel [...] rt.cpan.org
From: Christopher Laco <claco [...] chrislaco.com>
Martin via RT wrote: Show quoted text
> Queue: Handel > Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=31166 > > > I get the impression that I need to install > Catalyst::Plugin::Session::Store::DBIC and then do some configuration. > Do I need to create a Session table? A Session.pm object? What? And > where is this documented? > >
http://search.cpan.org/~claco/Handel-1.00006/lib/Handel/Manual/QuickStart.pod#NEW_CATALYST_APPLICATIONS "Edit MyApp.pm and load the Session plugins and a Session::Store/State plugins of your choosing." I really need to at least put Catalyst::Plugin::Session into the optional requirements. -=Chris
Download signature.asc
application/pgp-signature 249b

Message body not shown because it is not plain text.

From: m.e [...] acm.org
On Mon Dec 03 10:42:49 2007, claco@chrislaco.com wrote: Show quoted text
> http://search.cpan.org/~claco/Handel- > 1.00006/lib/Handel/Manual/QuickStart.pod#NEW_CATALYST_APPLICATIONS > > "Edit MyApp.pm and load the Session plugins and a Session::Store/State > plugins of your choosing." > > I really need to at least put Catalyst::Plugin::Session into the > optional requirements.
I saw that and I installed Session, Session::State, Session::Store and Session::Store::DBIC; and I put them into my use Catalyst list in my application module. That was before I got the error. Do I need any more modules? And 'of your choosing': I am a Catalyst and Handel total newbie. Please advise.
Subject: Re: [rt.cpan.org #31166] store_session_data not found
Date: Mon, 03 Dec 2007 12:34:10 -0500
To: bug-Handel [...] rt.cpan.org
From: Christopher Laco <claco [...] chrislaco.com>
Martin via RT wrote: Show quoted text
> Queue: Handel > Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=31166 > > > On Mon Dec 03 10:42:49 2007, claco@chrislaco.com wrote:
>> http://search.cpan.org/~claco/Handel- >> 1.00006/lib/Handel/Manual/QuickStart.pod#NEW_CATALYST_APPLICATIONS >> >> "Edit MyApp.pm and load the Session plugins and a Session::Store/State >> plugins of your choosing." >> >> I really need to at least put Catalyst::Plugin::Session into the >> optional requirements.
> > I saw that and I installed Session, Session::State, Session::Store and > Session::Store::DBIC; and I put them into my use Catalyst list in my > application module. That was before I got the error. Do I need any more > modules? And 'of your choosing': I am a Catalyst and Handel total > newbie. Please advise. > >
You need to pick a specific session stt and session tore module aond configure those. I use State:Cookie and Store::File. Your MyApp.pm is going to have some variation of: use Catalyst qw/ Session Session::Store::File Session::State::Cookie /; The DBIC store isn't used for Handel, so if you want to use that, I can't help since I never use it. http://search.cpan.org/~nuffin/Catalyst-Plugin-Session-0.19/lib/Catalyst/Plugin/Session.pm
Download signature.asc
application/pgp-signature 249b

Message body not shown because it is not plain text.

From: m.e [...] acm.org
On Mon Dec 03 12:34:50 2007, claco@chrislaco.com wrote: Show quoted text
> You need to pick a specific session stt and session tore module aond > configure those. I use State:Cookie and Store::File. > > Your MyApp.pm is going to have some variation of: > > > use Catalyst qw/ > Session > Session::Store::File > Session::State::Cookie > /;
OK, I put in those modules (and installed them) and now it is working thanks. (I still have a minor problem in that it is not recognizing my '.tt' extensions for templates and insisting on looking for cart/default and not cart/default.tt, but I will investigate this later; if all else fails I can rename the templates back to remove the '.tt' extension).
Subject: Re: [rt.cpan.org #31166] store_session_data not found
Date: Mon, 03 Dec 2007 13:39:44 -0500
To: bug-Handel [...] rt.cpan.org
From: Christopher Laco <claco [...] chrislaco.com>
Martin via RT wrote: Show quoted text
> Queue: Handel > Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=31166 > > > On Mon Dec 03 12:34:50 2007, claco@chrislaco.com wrote:
>> You need to pick a specific session stt and session tore module aond >> configure those. I use State:Cookie and Store::File. >> >> Your MyApp.pm is going to have some variation of: >> >> >> use Catalyst qw/ >> Session >> Session::Store::File >> Session::State::Cookie >> /;
> > OK, I put in those modules (and installed them) and now it is working > thanks. (I still have a minor problem in that it is not recognizing my > '.tt' extensions for templates and insisting on looking for cart/default > and not cart/default.tt, but I will investigate this later; if all else > fails I can rename the templates back to remove the '.tt' extension). > >
have a look at the TEMPLATE_EXTENSION setting in Catalyst::View:TT
Download signature.asc
application/pgp-signature 249b

Message body not shown because it is not plain text.

From: m.e [...] acm.org
On Mon Dec 03 13:40:27 2007, claco@chrislaco.com wrote: Show quoted text
> Martin via RT wrote:
> > thanks. (I still have a minor problem in that it is not recognizing my > > '.tt' extensions for templates and insisting on looking for cart/default > > and not cart/default.tt, but I will investigate this later; if all else > > fails I can rename the templates back to remove the '.tt' extension).
> > have a look at the TEMPLATE_EXTENSION setting in Catalyst::View:TT >
I have that, but it is not having any effect: TEMPLATE_EXTENSION => '.tt', Also, for the templates to work, I need to have: CATALYST_VAR => 'c',
From: m.e [...] acm.org
On Tue Dec 04 00:30:12 2007, m.e wrote: Show quoted text
> On Mon Dec 03 13:40:27 2007, claco@chrislaco.com wrote:
> > Martin via RT wrote:
> > > thanks. (I still have a minor problem in that it is not recognizing my > > > '.tt' extensions for templates and insisting on looking for
cart/default Show quoted text
> > > and not cart/default.tt, but I will investigate this later; if all
else Show quoted text
> > > fails I can rename the templates back to remove the '.tt' extension).
> > > > have a look at the TEMPLATE_EXTENSION setting in Catalyst::View:TT > >
> I have that, but it is not having any effect: > TEMPLATE_EXTENSION => '.tt',
Sorry, newbie thing. The template extension does not work for templates where one sets $c->stash->{template} explicitly, only for templates generated automatically from path names. So I went through the helper-generated code and updated all the template names. Then it worked.
Added Session, Session::Store::File, Session::State::Cookie into Catalyst support prereqs and added a reminder when running create.pl to add session to MyApp.pm