Caught exception in captiveportal::View::HTML->process "Can't use string ("0") as a HASH ref while "strict refs" in use at /usr/local/pf/lib/pf/Portal/ProfileFactory.pm line 52."

Stack Trace

Package Line File
captiveportal::PacketFence::Model::Portal::Session 157 /usr/local/pf/html/captive-portal/lib/captiveportal/PacketFence/Model/Portal/Session.pm

154: 155: sub _build_profile { 156: my ($self) = @_; 157: return pf::Portal::ProfileFactory->instantiate( $self->clientMac ); 158: } 159: 160: sub templateIncludePath {

captiveportal::PacketFence::Model::Portal::Session 162 /usr/local/pf/html/captive-portal/lib/captiveportal/PacketFence/Model/Portal/Session.pm

159: 160: sub templateIncludePath { 161: my ($self) = @_; 162: my $profile = $self->profile; 163: my @paths = ( $CAPTIVE_PORTAL{'TEMPLATE_DIR'} ); 164: if ( $profile->getName ne 'default' ) { 165: unshift @paths,

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({
  _log             => bless({ abort => 0, autoflush => 0, watch_delay => 300 }, "Log::Log4perl::Catalyst"),
  _path            => "captive-portal",
  _read_length     => 0,
  _read_position   => 0,
  action           => "captive-portal",
  address          => "192.168.50.12",
  arguments        => [],
  base             => bless(do{\(my $o = "http://gateway.funbeach.nl/")}, "URI::http"),
  body_parameters  => {},
  captures         => [],
  cookies          => {
                        __utma => bless({
                                    name  => "__utma",
                                    path  => "/",
                                    value => ["237976343.1508808461.1385030901.1400493369.1400659559.43"],
                                  }, "CGI::Simple::Cookie"),
                        __utmz => bless({
                                    name  => "__utmz",
                                    path  => "/",
                                    value => [
                                               "237976343.1400493369.42.17.utmcsr=groepsuitjes.funbeach.nl|utmccn=(referral)|utmcmd=referral|utmcct=/",
                                             ],
                                  }, "CGI::Simple::Cookie"),
                      },
  env              => {
                        "DOCUMENT_ROOT"        => "/usr/local/pf/html/captive-portal/lib",
                        "GATEWAY_INTERFACE"    => "CGI/1.1",
                        "HTTP_ACCEPT"          => "text/html, application/xhtml+xml, */*",
                        "HTTP_ACCEPT_ENCODING" => "gzip, deflate",
                        "HTTP_ACCEPT_LANGUAGE" => "nl-NL",
                        "HTTP_CONNECTION"      => "Keep-Alive",
                        "HTTP_COOKIE"          => "__utma=237976343.1508808461.1385030901.1400493369.1400659559.43; __utmz=237976343.1400493369.42.17.utmcsr=groepsuitjes.funbeach.nl|utmccn=(referral)|utmcmd=referral|utmcct=/",
                        "HTTP_DNT"             => 1,
                        "HTTP_HOST"            => "gateway.funbeach.nl",
                        "HTTP_USER_AGENT"      => "Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko",
                        "MOD_PERL"             => "mod_perl/2.0.4",
                        "MOD_PERL_API_VERSION" => 2,
                        "PATH"                 => "/sbin:/bin:/usr/bin:/usr/sbin",
                        "PATH_INFO"            => "/captive-portal",
                        "psgi.errors"          => *main::STDERR,
                        "psgi.input"           => bless(do{\(my $o = 140661761433608)}, "Apache2::RequestRec"),
                        "psgi.multiprocess"    => 1,
                        "psgi.multithread"     => "",
                        "psgi.nonblocking"     => "",
                        "psgi.run_once"        => "",
                        "psgi.streaming"       => 1,
                        "psgi.url_scheme"      => "http",
                        "psgi.version"         => [1, 1],
                        "QS_AllConn"           => 12,
                        "QS_ConnectionId"      => "14011846853350725401952",
                        "QS_SrvConn"           => 12,
                        "QUERY_STRING"         => "destination_url=http://tweakers.net/",
                        "REMOTE_ADDR"          => "192.168.50.12",
                        "REMOTE_PORT"          => 2329,
                        "REQUEST_METHOD"       => "GET",
                        "REQUEST_URI"          => "/captive-portal?destination_url=http://tweakers.net/",
                        "SCRIPT_FILENAME"      => "/usr/local/pf/html/captive-portal/redir.cgi",
                        "SCRIPT_NAME"          => "/",
                        "SCRIPT_URI"           => "http://gateway.funbeach.nl/captive-portal",
                        "SCRIPT_URL"           => "/captive-portal",
                        "SERVER_ADDR"          => "192.168.50.254",
                        "SERVER_ADMIN"         => "gateway\@funbeach.nl",
                        "SERVER_NAME"          => "gateway.funbeach.nl",
                        "SERVER_PORT"          => 80,
                        "SERVER_PROTOCOL"      => "HTTP/1.1",
                        "SERVER_SIGNATURE"     => "",
                        "SERVER_SOFTWARE"      => "Apache",
                      },
  headers          => bless({
                        "accept" => "text/html, application/xhtml+xml, */*",
                        "accept-encoding" => "gzip, deflate",
                        "accept-language" => "nl-NL",
                        "connection" => "Keep-Alive",
                        "cookie" => "__utma=237976343.1508808461.1385030901.1400493369.1400659559.43; __utmz=237976343.1400493369.42.17.utmcsr=groepsuitjes.funbeach.nl|utmccn=(referral)|utmcmd=referral|utmcct=/",
                        "dnt" => 1,
                        "host" => "gateway.funbeach.nl",
                        "user-agent" => "Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko",
                      }, "HTTP::Headers"),
  match            => "captive-portal",
  method           => "GET",
  parameters       => { destination_url => "http://tweakers.net/" },
  protocol         => "HTTP/1.1",
  query_parameters => { destination_url => "http://tweakers.net/" },
  remote_user      => undef,
  secure           => 0,
  uploads          => {},
  uri              => bless(do{\(my $o = "http://gateway.funbeach.nl/captive-portal?destination_url=http://tweakers.net/")}, "URI::http"),
}, "Catalyst::Request")

Response

bless({
  _log => bless({ abort => 0, autoflush => 0, watch_delay => 300 }, "Log::Log4perl::Catalyst"),
  _response_cb => sub { ... },
  body => undef,
  cookies => {},
  finalized_headers => 0,
  headers => bless({
    "content-type" => "text/html; charset=utf-8",
    "x-catalyst"   => 5.90011,
  }, "HTTP::Headers"),
  status => 500,
}, "Catalyst::Response")

Stash

{
  current_model_instances => {
    "captiveportal::Model::Portal::Session" => bless({
      clientIp      => "192.168.50.12",
      clientMac     => "3c:97:0e:2d:d6:8f",
      forwardedFor  => undef,
      remoteAddress => "192.168.50.12",
    }, "captiveportal::Model::Portal::Session"),
  },
  template => "error.html",
  txt_message => "Caught exception in captiveportal::Controller::Root->setupCommonStash \"Can't use string (\"0\") as a HASH ref while \"strict refs\" in use at /usr/local/pf/lib/pf/Portal/ProfileFactory.pm line 52.\" Caught exception in captiveportal::Controller::Root->getLanguages \"Can't use string (\"0\") as a HASH ref while \"strict refs\" in use at /usr/local/pf/lib/pf/Portal/ProfileFactory.pm line 52.\" 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 117.\" Caught exception in captiveportal::Controller::CaptivePortal->checkIfNeedsToRegister \"Can't use string (\"0\") as a HASH ref while \"strict refs\" in use at /usr/local/pf/lib/pf/Portal/ProfileFactory.pm line 52.\" Caught exception in captiveportal::Controller::CaptivePortal->checkIfPending \"Can't use string (\"0\") as a HASH ref while \"strict refs\" in use at /usr/local/pf/lib/pf/Portal/ProfileFactory.pm line 52.\"",
  unreg => {
    bypass_vlan      => "",
    computername     => "W530",
    detect_date      => "2014-04-25 12:46:03",
    dhcp_fingerprint => "1,15,3,6,44,46,47,31,33,121,249,43",
    last_arp         => "0000-00-00 00:00:00",
    last_dhcp        => "2014-04-25 12:49:18",
    lastskip         => "0000-00-00 00:00:00",
    mac              => "3c:97:0e:2d:d6:8f",
    notes            => "",
    pid              => "han\@alfion.nl",
    regdate          => "0000-00-00 00:00:00",
    status           => "unreg",
    unregdate        => "0000-00-00 00:00:00",
    user_agent       => "Mozilla/5.0 (compatible; IE 11.0; Win32; Trident/7.0)",
    voip             => "no",
  },
}

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,
  },
}

captiveportal on Catalyst 5.90011