Error 500 - Internal Server Error

Runtime Error

Can't call method "shuttle_route_places" on an undefined value at /data/Spanjeliner/bin/../lib/Liners/Controllers/Destination.pm line 72.
/data/Spanjeliner/bin/../lib/Liners/Controllers/Destination.pm around line 72
67 my $min_price;
68 my $prices;
69 my $routes;
70 my @routes;
71
72 foreach my $shuttle_place ( $destination->shuttle_route_places ) {
73
74 foreach my $price ( $shuttle_place->shuttle_route_place_prices->search(
75 {
76 'shuttle_route.to_date' => { '>=' => DateTime->now->ymd }
77 },
Stack
main in /data/Spanjeliner/local/bin/starman l. 38
Plack::Runner in /data/Spanjeliner/local/lib/perl5/Plack/Runner.pm l. 279
Plack::Loader::Delayed in /data/Spanjeliner/local/lib/perl5/Plack/Loader/Delayed.pm l. 20
Plack::Handler::Starman in /data/Spanjeliner/local/lib/perl5/Plack/Handler/Starman.pm l. 25
Starman::Server in /data/Spanjeliner/local/lib/perl5/Starman/Server.pm l. 94
Net::Server in /data/Spanjeliner/local/lib/perl5/Net/Server.pm l. 58
Net::Server::PreFork in /data/Spanjeliner/local/lib/perl5/Net/Server/PreFork.pm l. 109
Starman::Server in /data/Spanjeliner/local/lib/perl5/Starman/Server.pm l. 164
Net::Server::PreFork in /data/Spanjeliner/local/lib/perl5/Net/Server/PreFork.pm l. 327
Net::Server::PreFork in /data/Spanjeliner/local/lib/perl5/Net/Server/PreFork.pm l. 373
Net::Server::PreFork in /data/Spanjeliner/local/lib/perl5/Net/Server/PreFork.pm l. 183
Net::Server::PreFork in /data/Spanjeliner/local/lib/perl5/Net/Server/PreFork.pm l. 225
Net::Server::PreFork in /data/Spanjeliner/local/lib/perl5/Net/Server/PreFork.pm l. 225
Net::Server in /data/Spanjeliner/local/lib/perl5/Net/Server.pm l. 72
Starman::Server in /data/Spanjeliner/local/lib/perl5/Starman/Server.pm l. 298
Starman::Server in /data/Spanjeliner/local/lib/perl5/Starman/Server.pm l. 195
Plack::Util in /data/Spanjeliner/local/lib/perl5/Plack/Util.pm l. 145
Plack::Util in /data/Spanjeliner/local/lib/perl5/Plack/Util.pm l. 145
Plack::Component in /data/Spanjeliner/local/lib/perl5/Plack/Component.pm l. 50
Plack::Middleware::AccessLog in /data/Spanjeliner/local/lib/perl5/Plack/Middleware/AccessLog.pm l. 27
Plack::Component in /data/Spanjeliner/local/lib/perl5/Plack/Component.pm l. 50
Plack::Middleware::StackTrace in /data/Spanjeliner/local/lib/perl5/Plack/Middleware/StackTrace.pm l. 42
Try::Tiny in /data/Spanjeliner/local/lib/perl5/Try/Tiny.pm l. 93
Try::Tiny in /data/Spanjeliner/local/lib/perl5/Try/Tiny.pm l. 97
Plack::Middleware::StackTrace in /data/Spanjeliner/local/lib/perl5/Plack/Middleware/StackTrace.pm l. 38
Plack::Component in /data/Spanjeliner/local/lib/perl5/Plack/Component.pm l. 50
Plack::Middleware::Lint in /data/Spanjeliner/local/lib/perl5/Plack/Middleware/Lint.pm l. 24
Plack::Component in /data/Spanjeliner/local/lib/perl5/Plack/Component.pm l. 50
Plack::Middleware::Head in /data/Spanjeliner/local/lib/perl5/Plack/Middleware/Head.pm l. 9
Plack::Component in /data/Spanjeliner/local/lib/perl5/Plack/Component.pm l. 50
Plack::Middleware::FixMissingBodyInRedirect in /data/Spanjeliner/local/lib/perl5/Plack/Middleware/FixMissingBodyInRedirect.pm l. 50
Plack::Component in /data/Spanjeliner/local/lib/perl5/Plack/Component.pm l. 50
Plack::Middleware::Conditional in /data/Spanjeliner/local/lib/perl5/Plack/Middleware/Conditional.pm l. 16
Dancer2::Core::App in /data/Spanjeliner/local/lib/perl5/Dancer2/Core/App.pm l. 1392
Dancer2::Core::App in /data/Spanjeliner/local/lib/perl5/Dancer2/Core/App.pm l. 1390
Dancer2::Core::App in /data/Spanjeliner/local/lib/perl5/Dancer2/Core/App.pm l. 35
Dancer2::Core::App in /data/Spanjeliner/local/lib/perl5/Dancer2/Core/App.pm l. 1390
Dancer2::Core::App in /data/Spanjeliner/local/lib/perl5/Dancer2/Core/App.pm l. 1503
Dancer2::Core::App in /data/Spanjeliner/local/lib/perl5/Dancer2/Core/App.pm l. 1626
Dancer2::Core::App in /data/Spanjeliner/local/lib/perl5/Dancer2/Core/App.pm l. 1658
Dancer2::Core::Error in /data/Spanjeliner/local/lib/perl5/Dancer2/Core/Error.pm l. 313
Method::Generate::Accessor::_Generated in (eval 211) l. 18
Dancer2::Core::Error in /data/Spanjeliner/local/lib/perl5/Dancer2/Core/Error.pm l. 300
Dancer2::Core::Error in /data/Spanjeliner/local/lib/perl5/Dancer2/Core/Error.pm l. 111
Dancer2::Core::Error in /data/Spanjeliner/local/lib/perl5/Dancer2/Core/Error.pm l. 161
Dancer2::Core::Error in /data/Spanjeliner/local/lib/perl5/Dancer2/Core/Error.pm l. 396
Settings
appdir => '/data/Spanjeliner/',
apphandler => 'PSGI',
appname => 'Liners',
behind_proxy => 0,
charset => 'utf-8',
content_type => 'text/html',
engines => {
  session => {
    DBIC => {
      data_column => 'session_data',
      dsn => 'DBI:mysql:database=spanjeliner;host=localhost;port=3306;',
      id_column => 'session_id',
      password => 'Hidden (looks potentially sensitive)',
      resultset => 'Session',
      schema_class => 'Liners::Schema',
      user => 'rory'
    }
  },
  template => {
    template_toolkit => {
      ENCODING => 'utf8',
      POST_CHOMP => '1',
      RECURSION => '1',
      RELATIVE => '1',
      end_tag => '%]',
      start_tag => '[%'
    }
  }
},
environment => 'development',
host => '0.0.0.0',
layout => 'main',
log => 'core',
logger => 'console',
maintenance => '0',
no_server_tokens => 0,
plugins => {
  DBIC => {
    Liners => {
      dsn => 'dbi:mysql:spanjeliner',
      options => {
        PrintError => '1',
        RaiseError => '1'
      },
      password => 'Hidden (looks potentially sensitive)',
      schema_class => 'Liners::Schema',
      user => 'rory'
    },
    Ryact => {
      dsn => 'dbi:mysql:ryact',
      options => {
        PrintError => '1',
        RaiseError => '1'
      },
      password => 'Hidden (looks potentially sensitive)',
      schema_class => 'Ryact::Schema',
      user => 'rory'
    }
  },
  Email => {
    transport => {
      Sendmail => {
        sendmail => '/usr/sbin/sendmail'
      }
    }
  }
},
port => '3000',
public_dir => '/data/Spanjeliner/public',
route_handlers => [
  [
    'AutoPage',
    1
  ]
],
session => 'DBIC',
show_errors => '1',
startup_info => '1',
static_handler => 1,
template => 'template_toolkit',
testmode => '0',
traces => 0,
views => '/data/Spanjeliner/views',
warnings => '1'


Note: Values of 3 sensitive-looking keys hidden
Session
undefined
Environment
HTTP_ACCEPT => '*/*',
HTTP_HOST => 'www.spanjeliner.nl',
HTTP_USER_AGENT => 'claudebot',
HTTP_X_FORWARDED_FOR => '44.222.104.49',
HTTP_X_FORWARDED_PROTO => 'https',
HTTP_X_REAL_IP => '44.222.104.49',
PATH_INFO => '/bestemming/Blanes',
QUERY_STRING => '',
REMOTE_ADDR => '127.0.0.1',
REMOTE_HOST => '127.0.0.1',
REMOTE_PORT => 56096,
REQUEST_METHOD => 'GET',
REQUEST_URI => '/bestemming/Blanes',
SCRIPT_NAME => '',
SERVER_NAME => '127.0.0.1',
SERVER_PORT => 5021,
SERVER_PROTOCOL => 'HTTP/1.0',
'plack.request.body' => bless( {}, 'Hash::MultiValue' ),
'plack.request.body_parameters' => [],
'plack.request.upload' => bless( {}, 'Hash::MultiValue' ),
'psgi.errors' => *::STDERR,
'psgi.input' => \*{'Starman::Server::$io'},
'psgi.multiprocess' => 1,
'psgi.multithread' => '',
'psgi.nonblocking' => '',
'psgi.run_once' => '',
'psgi.streaming' => 1,
'psgi.url_scheme' => 'http',
'psgi.version' => [
  1,
  1
],
'psgix.harakiri' => 1,
'psgix.input.buffered' => 1,
'psgix.io' => bless( \*Symbol::GEN565, 'Net::Server::Proto::TCP' )