System error

error:  Can't use an undefined value as an ARRAY reference at /var/www/newTurizm/turizm.ru/html/Comp/index/main_index.msn line 1246.
context: 
... 
37:  }
38: 
39:  $path[0]=~s/.html?//g;
40: 
41:  if($path[0] eq 'contacts' and scalar @path == 1) {
42:  $sufix ='contacts_';
43: 
44:  } elsif($path[0] eq 'findhotel' and scalar @path == 1) {
45:  my $action = $ARGS{'action'} || '';
... 
code stack:  /var/www/newTurizm/turizm.ru/html/Comp/index/main_index.msn:41
/var/www/newTurizm/turizm.ru/html/dhandler:2
/var/www/newTurizm/turizm.ru/html/Comp/out_filter.msn:7
/var/www/newTurizm/turizm.ru/html/dhandler:4
raw error






























Can't use an undefined value as an ARRAY reference at /var/www/newTurizm/turizm.ru/html/Comp/index/main_index.msn line 1246.


Trace begun at /usr/local/share/perl/5.26.1/HTML/Mason/Exceptions.pm line 125
HTML::Mason::Exceptions::rethrow_exception('Can\'t use an undefined value as an ARRAY reference at /var/www/newTurizm/turizm.ru/html/Comp/index/main_index.msn line 1246.^J') called at /var/www/newTurizm/turizm.ru/html/Comp/index/main_index.msn line 41
HTML::Mason::Commands::__ANON__('page', undef, 'BASE_PATH', 'MAIN') called at /usr/local/share/perl/5.26.1/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x560010e580e0)', 'page', undef, 'BASE_PATH', 'MAIN') called at /usr/local/share/perl/5.26.1/HTML/Mason/Request.pm line 1302
eval {...} at /usr/local/share/perl/5.26.1/HTML/Mason/Request.pm line 1292
HTML::Mason::Request::comp(undef, undef, 'page', undef, 'BASE_PATH', 'MAIN') called at /var/www/newTurizm/turizm.ru/html/dhandler line 2
HTML::Mason::Commands::__ANON__ at /usr/local/share/perl/5.26.1/HTML/Mason/Request.pm line 1380
eval {...} at /usr/local/share/perl/5.26.1/HTML/Mason/Request.pm line 1380
HTML::Mason::Request::content('HTML::Mason::Request::PSGI=HASH(0x56001c117640)') called at /var/www/newTurizm/turizm.ru/html/Comp/out_filter.msn line 7
HTML::Mason::Commands::__ANON__ at /usr/local/share/perl/5.26.1/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x5600100b1510)') called at /usr/local/share/perl/5.26.1/HTML/Mason/Request.pm line 1302
eval {...} at /usr/local/share/perl/5.26.1/HTML/Mason/Request.pm line 1292
HTML::Mason::Request::comp(undef, undef, undef) called at /var/www/newTurizm/turizm.ru/html/dhandler line 4
HTML::Mason::Commands::__ANON__ at /usr/local/share/perl/5.26.1/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x56001008eec0)') called at /usr/local/share/perl/5.26.1/HTML/Mason/Request.pm line 1300
eval {...} at /usr/local/share/perl/5.26.1/HTML/Mason/Request.pm line 1292
HTML::Mason::Request::comp(undef, undef, undef) called at /usr/local/share/perl/5.26.1/HTML/Mason/Request.pm line 481
eval {...} at /usr/local/share/perl/5.26.1/HTML/Mason/Request.pm line 481
eval {...} at /usr/local/share/perl/5.26.1/HTML/Mason/Request.pm line 433
HTML::Mason::Request::exec('HTML::Mason::Request::PSGI=HASH(0x56001c117640)') called at /var/www/newTurizm/turizm.ru/Libs/FCGI/PSGIHandler.pm line 138
eval {...} at /var/www/newTurizm/turizm.ru/Libs/FCGI/PSGIHandler.pm line 138
HTML::Mason::Request::PSGI::exec('HTML::Mason::Request::PSGI=HASH(0x56001c117640)') called at /usr/local/share/perl/5.26.1/HTML/Mason/Interp.pm line 342
HTML::Mason::Interp::exec(undef, undef) called at /var/www/newTurizm/turizm.ru/Libs/FCGI/PSGIHandler.pm line 101
eval {...} at /var/www/newTurizm/turizm.ru/Libs/FCGI/PSGIHandler.pm line 101
FCGI::PSGIHandler::invoke_mason('FCGI::PSGIHandler=HASH(0x56000ff6eb98)', 'HASH(0x5600033866e8)', 'HASH(0x56001bd41630)') called at /var/www/newTurizm/turizm.ru/Libs/FCGI/PSGIHandler.pm line 80
FCGI::PSGIHandler::handle_psgi('FCGI::PSGIHandler=HASH(0x56000ff6eb98)', 'HASH(0x56001b265948)') called at /media/storage00/www/newTurizm/turizm.ru/fcgi/turizm.psgi line 42
Turizm::Mason::__ANON__('HASH(0x56001b265948)') called at /usr/local/share/perl/5.26.1/Plack/Middleware/AccessLog.pm line 27
Plack::Middleware::AccessLog::call('Plack::Middleware::AccessLog=HASH(0x56000299ba28)', 'HASH(0x56001b265948)') called at /usr/local/share/perl/5.26.1/Plack/Component.pm line 50
Plack::Component::__ANON__('HASH(0x56001b265948)') called at /usr/local/share/perl/5.26.1/Plack/Util.pm line 145
eval {...} at /usr/local/share/perl/5.26.1/Plack/Util.pm line 145
Plack::Util::run_app('CODE(0x56000299bb90)', 'HASH(0x56001b265948)') called at /usr/local/lib/x86_64-linux-gnu/perl/5.26.1/Plack/Handler/Gazelle.pm line 220
Plack::Handler::Gazelle::__ANON__ at /usr/local/share/perl/5.26.1/Parallel/Prefork.pm line 75
Parallel::Prefork::start('Parallel::Prefork=HASH(0x56001004ebd8)', 'CODE(0x56000fd0eec0)') called at /usr/local/lib/x86_64-linux-gnu/perl/5.26.1/Plack/Handler/Gazelle.pm line 237
Plack::Handler::Gazelle::run('Plack::Handler::Gazelle=HASH(0x56000f9c9fa0)', 'CODE(0x56000299bb90)') called at /usr/local/share/perl/5.26.1/Plack/Loader.pm line 84
Plack::Loader::run('Plack::Loader=HASH(0x560002793400)', 'Plack::Handler::Gazelle=HASH(0x56000f9c9fa0)') called at /usr/local/share/perl/5.26.1/Plack/Runner.pm line 277
Plack::Runner::run('Plack::Runner=HASH(0x5600024e6750)') called at /usr/local/bin/plackup line 7