Caught exception in kochiCP::Web::Controller::pb_material->get "Can't call method "file_name" on an undefined value at /kochiCP/app/current/script/../lib/kochiCP/Web/Controller/pb_material.pm line 51."

Request

bless({
  _path            => "pb_material/16",
  action           => "pb_material",
  address          => "18.213.110.162",
  arguments        => [16],
  base             => bless(do{\(my $o = "https://clinicalpath.kochi-iryo.net/")}, "URI::https"),
  body_parameters  => {},
  captures         => [],
  cookies          => {},
  headers          => bless({
                        "::std_case" => {
                          "cookie" => "Cookie",
                          "https" => "HTTPS",
                          "x-amzn-trace-id" => "X-AMZN-TRACE-ID",
                          "x-forwarded-port" => "X-FORWARDED-PORT",
                          "x-forwarded-proto" => "X-FORWARDED-PROTO",
                        },
                        "accept" => "*/*",
                        "host" => "clinicalpath.kochi-iryo.net",
                        "https" => "ON",
                        "referer" => "http://clinicalpath.kochi-iryo.net/pb_material/16",
                        "user-agent" => "claudebot",
                        "x-amzn-trace-id" => "Root=1-66059052-1fbf97f00ab3f68e1ec13690",
                        "x-forwarded-port" => 443,
                        "x-forwarded-proto" => "https",
                      }, "HTTP::Headers"),
  match            => "pb_material",
  method           => "GET",
  parameters       => {},
  protocol         => "HTTP/1.1",
  query_parameters => {},
  remote_user      => undef,
  secure           => 1,
  uploads          => {},
  uri              => bless(do{\(my $o = "https://clinicalpath.kochi-iryo.net/pb_material/16")}, "URI::https"),
  user             => undef,
}, "Catalyst::Request")

Response

bless({
  body => undef,
  cookies => {
    kochicp_web_session => {
      expires  => undef,
      httponly => 1,
      value    => "49f6e5c2e330417e59439dee279a233df0585c8c",
    },
  },
  finalized_headers => 0,
  headers => bless({
    "::std_case"   => { "x-catalyst" => "X-Catalyst" },
    "content-type" => "text/html; charset=utf-8",
    "x-catalyst"   => 5.80033,
  }, "HTTP::Headers"),
  status => 200,
}, "Catalyst::Response")

Stash

{ cond => undef }

Config

do {
  my $a = {
    "Action::RenderView" => {
      ignore_classes => [
                          "DBIx::Class::ResultSource::Table",
                          "DBIx::Class::ResultSourceHandle",
                          "DateTime",
                        ],
      scrubber_func  => sub { ... },
    },
    "default_view" => "Web",
    "home" => "/kochiCP/app/current",
    "kochiCP::Log" => {
      filepath => "/kochiCP/app/current/script/../log/kochicp.log",
      loglevel => 3,
    },
    "kochiCP::Model::Assets" => {
      base_dir => "root/static",
      dirs => ["css", "js", "images", "pdf", "documents"],
    },
    "Model::Entity" => {
      connect_info => {
                        dsn => "dbi:Pg:host=kochiqqdb.cluster-c1rytvmplj5c.ap-northeast-1.rds.amazonaws.com;dbname=kochiCP",
                        password => "postgres",
                        pg_enable_utf8 => 1,
                        user => "postgres",
                      },
      schema_class => "kochiCP::Entity",
    },
    "name" => "kochiCP::Web",
    "Plugin::Authentication" => {
      default => {
        credential => {
          class => "Password",
          password_field => "password",
          password_hash_type => "SHA-1",
          password_type => "clear",
        },
        store => {
          class => "DBIx::Class",
          ignore_fields_in_find => [],
          role_field => "function_id",
          role_relation => "user_auth",
          store_user_class => "Catalyst::Authentication::Store::DBIx::Class::User",
          use_userdata_from_session => 1,
          user_model => "Entity::UserAccount",
        },
        use_session => 1,
      },
      use_session => 1,
    },
    "Plugin::Session" => {
      cookie_expires    => 0,
      cookie_name       => "kochicp_web_session",
      dbic_class        => "Entity::Sessions",
      expires           => 259200,
      expiry_threshold  => 0,
      id_field          => "id",
      verify_address    => 0,
      verify_user_agent => 0,
    },
    "Plugin::Static::Simple" => {
      debug => 1,
      dirs => [],
      ignore_dirs => [],
      ignore_extensions => ["tmpl", "tt", "tt2", "html", "xhtml"],
      include_path => [
        bless({
          dirs => ["", "kochiCP", "app", "current", "root"],
          file_spec_class => undef,
          volume => "",
        }, "Path::Class::Dir"),
      ],
      mime_types => {},
      mime_types_obj => bless({}, "MIME::Types"),
      no_logs => 1,
    },
    "root" => 'fix',
    "static" => 'fix',
    "View::JSON" => {
      allow_callback => 1,
      callback_param => "callback",
      expose_stash   => "json",
    },
  };
  $a->{"root"} = $a->{"Plugin::Static::Simple"}{include_path}[0];
  $a->{"static"} = $a->{"Plugin::Static::Simple"};
  $a;
}

Session ID

"49f6e5c2e330417e59439dee279a233df0585c8c"

Session

{ __created => 1711640658, __updated => 1711640658 }

kochiCP::Web on Catalyst 5.80033