Re: Mason Migration process
Hiram Gibbard <[email protected]> Mon, 4 Apr 2016 11:56:21 -0500
| Newsgroups | gmane.comp.web.mason.user |
|---|---|
| Message-ID | <CAGTmFdENucrhs-yFQNvzDkf4VgroON+YwPw3jhE-DwnNHnLtcw@mail.gmail.com> |
--===============5387935993238118248== Content-Type: multipart/alternative; boundary=047d7b3a7f70b6e316052fab9b21 --047d7b3a7f70b6e316052fab9b21 Content-Type: text/plain; charset=UTF-8 Thanks. I see what you are saying now. The "value" through me off, because its the same name as the var "value". I was just thinking value. Line 18? Not understanding where you see that line. On Thu, Mar 31, 2016 at 9:03 PM, Mark Grimes <[email protected]> wrote: > > 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; > > Apache2::Cookie->new() is returning undef instead of an object. Looking at > the source, I see it does that when name or value are undefined (line 18). > I would check $name and $value. > -- Hiram Gibbard [email protected] http://hiramgibbard.com --047d7b3a7f70b6e316052fab9b21 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">Thanks. I see what you are saying now. The "value&quo= t; through me off, because its the same name as the var "value". = I was just thinking value.=C2=A0<div><br></div><div>Line 18? Not understand= ing where you see that line.</div></div><div class=3D"gmail_extra"><br><div= class=3D"gmail_quote">On Thu, Mar 31, 2016 at 9:03 PM, Mark Grimes <span d= ir=3D"ltr"><<a href=3D"mailto:[email protected]" target=3D"_blank">mvgr= [email protected]</a>></span> wrote:<br><blockquote class=3D"gmail_quote" s= tyle=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p d= ir=3D"ltr">> Can't call method "bake" on an undefined valu= e at /opt/cloudhost/apache/www/dworks/lib/DWorks/User.pm line 234, <>= line 1.<br> ><br> >=C2=A0=C2=A0=C2=A0=C2=A0 =C2=A0<br> ><br> >=C2=A0=C2=A0=C2=A0 # Currently, we're storing our user state in coo= kies.<br> ><br> >=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Apache2::Cookie->ne= w(<br> >=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 $m->apache_req,<br> >=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 name=C2=A0=C2=A0=C2=A0 =3D> $name,<br> >=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 value=C2=A0=C2=A0 =3D> $value,<br> >=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 expires =3D> ($expires || ''), # Default: when browser is cl= osed.<br> >=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 path=C2=A0=C2=A0=C2=A0 =3D> '/',<br> >=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 secure=C2=A0 =3D> ($data->{cookie}->{secure} ? 1 : 0),<br> >=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 )->bake;</p> <p dir=3D"ltr">Apache2::Cookie->new() is returning undef instead of an o= bject. Looking at the source, I see it does that when name or value are und= efined (line 18). I would check $name and $value. <br> </p> </blockquote></div><br><br clear=3D"all"><div><br></div>-- <br><div class= =3D"gmail_signature"><div dir=3D"ltr"><div>Hiram Gibbard<br><a href=3D"mail= to:[email protected]" target=3D"_blank">[email protected]</a></div><div><= a href=3D"http://hiramgibbard.com" target=3D"_blank">http://hiramgibbard.co= m</a></div><div><br><div style=3D"display:inline"></div></div></div></div> </div> --047d7b3a7f70b6e316052fab9b21-- --===============5387935993238118248== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------------ --===============5387935993238118248== 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 --===============5387935993238118248==--