Caught exception in captiveportal::View::HTML->process "Can't call method "pnotes" on an undefined value at /usr/local/pf/html/captive-portal/lib/captiveportal/PacketFence/Model/Portal/Session.pm line 81." Stack Trace Package Line File captiveportal::PacketFence::Model::Portal::Session 81 /usr/local/pf/html/captive-portal/lib/captiveportal/PacketFence/Model/Portal/Session.pm 78: my $redirectURL; 79: my $uri = $request->uri; 80: my $options; 81: if( defined ( my $last_uri = $r->pnotes('last_uri') )) { 82: $options = { 83: 'last_uri' => $last_uri, 84: }; captiveportal 121 /usr/local/pf/html/captive-portal/lib/captiveportal.pm 118: 119: sub _build_portalSession { 120: my ($c) = @_; 121: return $c->model('Portal::Session'); 122: } 123: 124: has profile => ( captiveportal::View::HTML 17 /usr/local/pf/html/captive-portal/lib/captiveportal/View/HTML.pm 14: 15: before process => sub { 16: my ( $self, $c ) = @_; 17: my $include_path = $c->portalSession->templateIncludePath; 18: @{ $self->include_path } = @$include_path; 19: }; 20: Request bless({ _path => "captive-portal", action => "captive-portal", address => "10.1.1.246", arguments => [], base => bless(do{\(my $o = "https://sganbpf01.galenica.ch/")}, "URI::https"), body_parameters => {}, captures => [], cookies => { CGISESSION => bless({ name => "CGISESSION", path => "/", value => ["cdd1c4688323562a764ee0f6b03ffb71a3c8fb6c"], }, "CGI::Simple::Cookie"), }, env => {}, headers => bless({ "accept" => "text/html, application/xhtml+xml, */*", "accept-encoding" => "gzip, deflate", "accept-language" => "fr-CH,it-CH;q=0.8,de-CH;q=0.5,en-US;q=0.3", "connection" => "Keep-Alive", "cookie" => "CGISESSION=cdd1c4688323562a764ee0f6b03ffb71a3c8fb6c", "host" => "sganbpf01.galenica.ch", "https" => "on", "user-agent" => "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)", }, "HTTP::Headers"), match => "captive-portal", method => "GET", parameters => { destination_url => "http://intranet.galexis.com/" }, protocol => "HTTP/1.1", query_parameters => { destination_url => "http://intranet.galexis.com/" }, remote_user => undef, secure => 1, uploads => {}, uri => bless(do{\(my $o = "https://sganbpf01.galenica.ch/captive-portal?destination_url=http://intranet.galexis.com/")}, "URI::https"), }, "Catalyst::Request") Response bless({ body => undef, cookies => {}, finalized_headers => 0, headers => bless({ "content-type" => "text/html; charset=utf-8", "x-catalyst" => 5.90007, }, "HTTP::Headers"), status => 500, }, "Catalyst::Response") Stash { template => "error.html", txt_message => "Caught exception in captiveportal::Controller::Root->setupCommonStash \"Can't call method \"pnotes\" on an undefined value at /usr/local/pf/html/captive-portal/lib/captiveportal/PacketFence/Model/Portal/Session.pm line 81.\" Caught exception in captiveportal::Controller::Root->getLanguages \"Can't call method \"pnotes\" on an undefined value at /usr/local/pf/html/captive-portal/lib/captiveportal/PacketFence/Model/Portal/Session.pm line 81.\" Caught exception in captiveportal::Controller::Root->setupLanguage \"Can't use string (\"0\") as an ARRAY ref while \"strict refs\" in use at /usr/local/pf/html/captive-portal/lib/captiveportal/PacketFence/Controller/Root.pm line 123.\" Caught exception in captiveportal::Controller::CaptivePortal->validateMac \"Can't call method \"pnotes\" on an undefined value at /usr/local/pf/html/captive-portal/lib/captiveportal/PacketFence/Model/Portal/Session.pm line 81.\" Caught exception in captiveportal::Controller::CaptivePortal->nodeRecordUserAgent \"Can't call method \"pnotes\" on an undefined value at /usr/local/pf/html/captive-portal/lib/captiveportal/PacketFence/Model/Portal/Session.pm line 81.\" Caught exception in captiveportal::Controller::CaptivePortal->checkForViolation \"Can't call method \"pnotes\" on an undefined value at /usr/local/pf/html/captive-portal/lib/captiveportal/PacketFence/Model/Portal/Session.pm line 81.\" Caught exception in captiveportal::Controller::CaptivePortal->checkIfNeedsToRegister \"Can't call method \"pnotes\" on an undefined value at /usr/local/pf/html/captive-portal/lib/captiveportal/PacketFence/Model/Portal/Session.pm line 81.\" Caught exception in captiveportal::Controller::CaptivePortal->checkIfPending \"Can't call method \"pnotes\" on an undefined value at /usr/local/pf/html/captive-portal/lib/captiveportal/PacketFence/Model/Portal/Session.pm line 81.\" Caught exception in captiveportal::Controller::CaptivePortal->unknownState \"Can't call method \"pnotes\" on an undefined value at /usr/local/pf/html/captive-portal/lib/captiveportal/PacketFence/Model/Portal/Session.pm line 81.\"", } Config { "Action::RenderView" => { ignore_classes => [ "DBIx::Class::ResultSource::Table", "DBIx::Class::ResultSourceHandle", "DateTime", ], scrubber_func => sub { ... }, }, "default_view" => "HTML", "disable_component_resolution_regex_fallback" => 1, "home" => "/usr/local/pf/html/captive-portal", "name" => "captiveportal", "Plugin::ConfigLoader" => {}, "Plugin::I18N" => { installed_languages => {} }, "Plugin::Session" => { chi_args => { namespace => "httpd.portal" }, chi_class => "pf::CHI", cookie_name => "CGISESSION", expires => 600, verify_address => 0, verify_user_agent => 0, }, "root" => bless({ dirs => ["", "usr", "local", "pf", "html", "captive-portal", "root"], file_spec_class => undef, volume => "", }, "Path::Class::Dir"), "stacktrace" => { context => 3, verbose => 0 }, "static" => { debug => 1, dirs => [], ignore_dirs => [ "pfappserver", "templates", "t", "profile-templates", "lib", "script", ], ignore_extensions => ["cgi", "php", "inc", "tt", "html", "xml", "pl", "pm"], include_path => [ sub { ... }, "/usr/local/pf/html/captive-portal", "/usr/local/pf/html/common", "/usr/local/pf/html", ], mime_types => { woff => "font/woff" }, mime_types_obj => bless({}, "MIME::Types"), no_logs => 1, }, } Session ID "cdd1c4688323562a764ee0f6b03ffb71a3c8fb6c" Session { __created => 1401447731, __updated => 1401447731 } captiveportal on Catalyst 5.90007