Not sure if this is a fix, or a work around, but I got past this error by
changing line 189 in ./pf/lib/pf/web/guest.pm to the following:
if ($source && (ref($source) ne 'ARRAY')) {
This simply ignores the source if it doesn't return an array reference. Yes,
I know, this is probably the wrong thing to do :^)
Then I get to the next hurdle, which is I no longer match the condition
"mark_as_sponsor". I've tried very combination I can think of. On the
profile, I have a rule to define the guest, and a rule to define the
authentication of the sponsor users, but NOT a rule that explicitly sets up the
"mark_as_sponsor". Do I now need to add this?
Thanks.
Don
From: Don Greer [mailto:[email protected]]
Sent: Tuesday, August 06, 2013 8:45 AM
To: [email protected]
Subject: [PacketFence-users] 4.0.4: Possible Bug in Sponsored Registration
(maybe other guest registration)
After upgrading to 4.0.4, when testing the Sponsored Registration, I get the
following error after entering my registration info:
[URL: https://pf.../signup?mode=guest-register]
Software Error:
Not a HASH reference at /usr/local/pf/lib/pf/web/guest.pm line 189
For help, please send mail to the webmaster ....
>From the portal_error_log:
[Tue Aug 06 08:34:56 2013] [error] [Tue Aug 6 08:34:56 2013] -e: Not a HASH
reference at /usr/local/pf/lib/pf/web/guest.pm line 189.\n
[Tue Aug 6 08:34:56 2013] -e: Constant subroutine
ModPerl::ROOT::ModPerl::PerlRun::usr_local_pf_html_captive_2dportal_guest_2dselfregistration_2ecgi::UCHAR_MAX
redefined at /usr/lib64/perl5/ModPerl/Util.pm line 69.
[Tue Aug 6 08:34:56 2013] -e: Constant subroutine
ModPerl::ROOT::ModPerl::PerlRun::usr_local_pf_html_captive_2dportal_guest_2dselfregistration_2ecgi::SIGQUIT
redefined at /usr/lib64/perl5/ModPerl/Util.pm line 69.
[Tue Aug 6 08:34:56 2013] -e: Constant subroutine
ModPerl::ROOT::ModPerl::PerlRun::usr_local_pf_html_captive_2dportal_guest_2dselfregistration_2ecgi::USHRT_MAX
redefined at /usr/lib64/perl5/ModPerl/Util.pm line 69.
[Tue Aug 6 08:34:56 2013] -e: Constant subroutine
ModPerl::ROOT::ModPerl::PerlRun::usr_local_pf_html_captive_2dportal_guest_2dselfregistration_2ecgi::SIG_IGN
redefined at /usr/lib64/perl5/ModPerl/Util.pm line 69.
[Tue Aug 6 08:34:56 2013] -e: Constant subroutine
ModPerl::ROOT::ModPerl::PerlRun::usr_local_pf_html_captive_2dportal_guest_2dselfregistration_2ecgi::SEEK_SET
redefined at /usr/lib64/perl5/ModPerl/Util.pm line 69.
Those last 5 lines are just the first of probably 50 or more similar messages
about ModPer/Util.pm line 69. Not sure if these are related or not to the hash
issue or not.
Any help on this would be appreciated.
Thanks!
Don
------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
PacketFence-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/packetfence-users