Fatal error: Call to a member function GetParentId() on a non-object in /home/c/cl127648/new.lavkaoberegov.ru/applications/Frontend/Controller/Catalog.php on line 307
Whoops! There was an error.
0.
…/­applications/­Frontend/­Controller/­Catalog.php307

Whoops \ Exception \ ErrorException

Call to a member function GetParentId() on a non-object

/home/c/cl127648/new.lavkaoberegov.ru/applications/Frontend/Controller/Catalog.php
        }

        /* @var $product Product */
        $product = (is_numeric($productId)) ?
            ProductMapper::I()->Find($productId) :
            ProductMapper::I()->FindByAlias($productId);

        $productRubric = ProductRubricMapper::I()->Find($product->GetParentId());
        Frontend_View_Helper_MainMenu::setMainRubricId(
            $productRubric->GetParentId()
empty
Key Value
REDIRECT_STATUS 200
HTTP_HOST lavkaoberegov.ru
HTTP_CONNECTION close
HTTP_USER_AGENT CCBot/2.0 (https://commoncrawl.org/faq/)
HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_IF_MODIFIED_SINCE Sun, 21 Oct 2018 15:04:56 UTC
HTTP_ACCEPT_ENCODING gzip
PATH /usr/local/bin:/usr/bin:/bin
SERVER_SIGNATURE
SERVER_SOFTWARE Apache/2.4.7
SERVER_NAME lavkaoberegov.ru
SERVER_ADDR 127.0.0.1
SERVER_PORT 80
REMOTE_ADDR 54.163.42.154
DOCUMENT_ROOT /home/c/cl127648/new.lavkaoberegov.ru/public_html
REQUEST_SCHEME http
CONTEXT_PREFIX
CONTEXT_DOCUMENT_ROOT /home/c/cl127648/new.lavkaoberegov.ru/public_html
SERVER_ADMIN info@timeweb.ru
SCRIPT_FILENAME /home/c/cl127648/new.lavkaoberegov.ru/public_html/index.php
REMOTE_PORT 37308
REDIRECT_QUERY_STRING route=solnechnaya-ladya-294128.html
REDIRECT_URL /solnechnaya-ladya-294128.html
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.0
REQUEST_METHOD GET
QUERY_STRING route=solnechnaya-ladya-294128.html
REQUEST_URI /solnechnaya-ladya-294128.html
SCRIPT_NAME /index.php
PHP_SELF /index.php
REQUEST_TIME 1544441211
argv Array ( [0] => route=solnechnaya-ladya-294128.html )
argc 1
Key Value
route /catalog/product/solnechnaya-ladya-294128.html
app Array ( )
Key Value
app Array ( )
empty
empty
Key Value
user User Object ( [isGuest] => 1 [_primaryKey:protected] => user_id [_arr:protected] => Array ( [user_id] => [user_name] => [user_password] => [user_fio] => [user_email] => [user_groups] => [user_is_confirmed] => [user_created] => 1544441211 [user_address_zip] => [user_address_state] => [user_address_city] => [user_address_street] => [user_phone] => [partner_payment] => [partner_payment_options] => [partner_site] => [partner_transitions_count] => ) [_sessionData:User:private] => Array ( ) [_groups:User:private] => Array ( ) [_isInit] => 1 [_rSets:protected] => Array ( ) [_updates:DbRecord:private] => Array ( ) [_isRemoved:DbRecord:private] => [_isCommited:DbRecord:private] => 1 )
Key Value
APACHE_CONFDIR /etc/apache2-3
APACHE_RUN_DIR /var/run/apache2-3
APACHE_PID_FILE /var/run/apache2/apache2-3.pid
PATH /usr/local/bin:/usr/bin:/bin
APACHE_LOCK_DIR /var/lock/apache2-3
LANG C
APACHE_RUN_USER www-data
APACHE_RUN_GROUP www-data
APACHE_LOG_DIR /var/log/apache2-3
PWD /root
0. Whoops\Handler\PrettyPageHandler