Re: Mason Migration process
Dystan Hays <[email protected]> Thu, 31 Mar 2016 19:40:02 -0700
| Newsgroups | gmane.comp.web.mason.user |
|---|---|
| Message-ID | <CAOiQjD=L04M1E2dRx14Nm4vttGxVOuMxFMu4hDk8mob2J72xMw@mail.gmail.com> |
--===============0312982338041112843== Content-Type: multipart/alternative; boundary=089e01634b8ab83175052f634bd4 --089e01634b8ab83175052f634bd4 Content-Type: text/plain; charset=UTF-8 Hi Hiram, On Thu, Mar 31, 2016 at 2:48 PM, Hiram Gibbard <[email protected]> wrote: > ... I'm making an effort to move a Perl application PREVIOUSLY > leveraging Mason on Apache 1.3 (w/ statically linked modules), and Perl > version 5.8.5 to Apache 2 (DSO) / Perl 5.10.1 ( i realize that is not the > current version, but it is what we have bench-marked from Redhat as a > "supportable version" on RHEL 6.7). I've gotten the application over and > started, but there is a a error that I'm having issue with. Wondering if > anyone can help me. This code appears to generate the following: > > Can't call method "bake" on an undefined value at /opt/cloudhost/apache/www/dworks/lib/DWorks/User.pm line 234, <> line 1. > > > > # Currently, we're storing our user state in cookies. > > Apache2::Cookie->new( > $m->apache_req, > name => $name, > value => $value, > expires => ($expires || ''), # Default: when browser is closed. > path => '/', > secure => ($data->{cookie}->{secure} ? 1 : 0), > )->bake; > > User.pm line 234 is the bake-> > > I don't understand what needs to be updated. based on the cpan docs for Apache2::Cookie, this appears to be valid. > > I can't answer your questions, but I gather you aren't picking up that the Perl error message seems to be saying that the Apache2::Cookie->new(...) is returning undef, so the ->bake can't very well be a method of that. I hope this tiny snippet of a response is of some help. regards, -- John Kirk --089e01634b8ab83175052f634bd4 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">Hi Hiram,<br><div><div class=3D"gmail_extra"><br><div clas= s=3D"gmail_quote">On Thu, Mar 31, 2016 at 2:48 PM, Hiram Gibbard <span dir= =3D"ltr"><<a href=3D"mailto:[email protected]" target=3D"_blank">hgibba= [email protected]</a>></span> wrote:<br><blockquote class=3D"gmail_quote" sty= le=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div d= ir=3D"ltr">=C2=A0=C2=A0=C2=A0=C2=A0 ... I'm making an effort to move a = Perl application PREVIOUSLY leveraging Mason on Apache 1.3 (w/ statically l= inked modules), and Perl version 5.8.5 to Apache 2 (DSO) / Perl 5.10.1 ( i = realize that is not the current version, but it is what we have bench-marke= d from Redhat as a "supportable version" on RHEL 6.7). I've g= otten the application over and started, but there is a a error that I'm= having issue with. Wondering if anyone can help me. This code appears to g= enerate the following:<div><br></div><div><pre>Can't call method "= bake" on an undefined value at /opt/cloudhost/apache/www/dworks/lib/DW= orks/User.pm line 234, <> line 1. </pre></div><div><pre> =C2=A0</pre><pre><span style=3D"font-family:arial= ,sans-serif"> # Currently, we're storing our user state in cookies.</= span><br></pre><pre> Apache2::Cookie->new( $m->apache_req, name =3D> $name, value =3D> $value, expires =3D> ($expires || ''), # Default: when brows= er is closed. path =3D> '/', secure =3D> ($data->{cookie}->{secure} ? 1 : 0), )->bake; </pre></div><div><pre>User.pm line 234 is the bake-></pre><pre>I don'= ;t understand what needs to be updated. based on the cpan docs for Apache2:= :Cookie, this appears to be valid.</pre></div></div></blockquote><div><br><= /div><div>=C2=A0 I can't answer your questions, but I gather you aren&#= 39;t picking up that the Perl error message seems to be saying that the Apa= che2::Cookie->new(...) is returning undef, so the ->bake can't ve= ry well be a method of that.<br><br></div><div>=C2=A0 I hope this tiny snip= pet of a response is of some help.<br><br><br></div><div><br></div><div>=C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0 regards, = =C2=A0 =C2=A0=C2=A0 --=C2=A0 John=C2=A0 Kirk <br></div><br></div></div></di= v></div> --089e01634b8ab83175052f634bd4-- --===============0312982338041112843== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------------ Transform Data into Opportunity. Accelerate data analysis in your applications with Intel Data Analytics Acceleration Library. Click to learn more. http://pubads.g.doubleclick.net/gampad/clk?id=278785471&iu=/4140 --===============0312982338041112843== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Mason-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mason-users --===============0312982338041112843==--