System error

error:  Can't call method "is_viewable_by_user_on_site" on unblessed reference at /home/vseplatezhi/Vseplatezhi/sources/comps/www/dhandler line 90.
context: 
... 
86:  else {
87:  $current_document = $class->DM()->get( pay_id => $path[0] );
88:  }
89:  }
90:  $m->clear_and_abort(404) unless $current_document && $current_document->is_viewable_by_user_on_site($USER);
91:  }
92: 
93:  # Устанавливаем переменные - теперь их можно использовать из любой компоненты
94:  $REQUEST->{current_section} = $current_section;
... 
code stack:  /home/vseplatezhi/Vseplatezhi/sources/comps/www/dhandler:90
/home/vseplatezhi/Vseplatezhi/sources/comps/www/autohandler:1
raw error






























Can't call method "is_viewable_by_user_on_site" on unblessed reference at /home/vseplatezhi/Vseplatezhi/sources/comps/www/dhandler line 90.


Trace begun at /usr/share/perl5/HTML/Mason/Exceptions.pm line 125
HTML::Mason::Exceptions::rethrow_exception('Can\'t call method "is_viewable_by_user_on_site" on unblessed reference at /home/vseplatezhi/Vseplatezhi/sources/comps/www/dhandler line 90.^J') called at /home/vseplatezhi/Vseplatezhi/sources/comps/www/dhandler line 90
HTML::Mason::Commands::__ANON__('utm_source', 'widget', 'utm_medium', 'eirc_ulanude', 'utm_campaign', 'eirc_ulanude_logo') called at /usr/share/perl5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x55800130b580)', 'utm_source', 'widget', 'utm_medium', 'eirc_ulanude', 'utm_campaign', 'eirc_ulanude_logo') called at /usr/share/perl5/HTML/Mason/Request.pm line 1302
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 1292
HTML::Mason::Request::comp(undef, undef, 'utm_source', 'widget', 'utm_medium', 'eirc_ulanude', 'utm_campaign', 'eirc_ulanude_logo') called at /home/vseplatezhi/Vseplatezhi/sources/comps/www/autohandler line 1
HTML::Mason::Commands::__ANON__('utm_campaign', 'eirc_ulanude_logo', 'utm_medium', 'eirc_ulanude', 'utm_source', 'widget') called at /usr/share/perl5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x55800130bce8)', 'utm_campaign', 'eirc_ulanude_logo', 'utm_medium', 'eirc_ulanude', 'utm_source', 'widget') called at /usr/share/perl5/HTML/Mason/Request.pm line 1300
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 1292
HTML::Mason::Request::comp(undef, undef, undef, 'utm_campaign', 'eirc_ulanude_logo', 'utm_medium', 'eirc_ulanude', 'utm_source', 'widget') called at /usr/share/perl5/HTML/Mason/Request.pm line 481
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 481
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 433
HTML::Mason::Request::exec('HTML::Mason::Request::ApacheHandler=HASH(0x558000dff728)') called at /usr/share/perl5/HTML/Mason/ApacheHandler.pm line 165
HTML::Mason::Request::ApacheHandler::exec('HTML::Mason::Request::ApacheHandler=HASH(0x558000dff728)') called at /usr/share/perl5/HTML/Mason/ApacheHandler.pm line 831
HTML::Mason::ApacheHandler::handle_request('HTML::Mason::ApacheHandler=HASH(0x5580010b2a38)', 'Apache2::RequestRec=SCALAR(0x5580010664c8)') called at /home/vseplatezhi/MakeIdea/sources/lib/MakeIdea/BK/Core/handler.pl line 85
eval {...} at /home/vseplatezhi/MakeIdea/sources/lib/MakeIdea/BK/Core/handler.pl line 81
MakeIdea::BK::Core::Handler::Mason::handler('Apache2::RequestRec=SCALAR(0x5580010664c8)') called at -e line 0
eval {...} at -e line 0