Phalcon Framework 3.4.2

Error: Call to a member function getName() on boolean

/var/www/aquamarket.ua/html/app/frontend/controllers/IndexController.php (90)
#0Modules\Frontend\Controllers\IndexController->indexAction(ru)
#1Phalcon\Dispatcher->callActionMethod(Object(Modules\Frontend\Controllers\IndexController), indexAction, Array([iso_code] => ru))
#2Phalcon\Dispatcher->dispatch()
#3Phalcon\Mvc\Application->handle()
/var/www/aquamarket.ua/html/public/index.php (98)
<?php
/**
 * Created by PhpStorm.
 * User: Andrew Kuzmenko
 * Date: 26.04.2017
 * Time: 18:30
 */
use Phalcon\Mvc\Application;
use Phalcon\Loader;
use Phalcon\Logger;
use Phalcon\Logger\Adapter\File as FileAdapter;
 
//if($_SERVER['REMOTE_ADDR'] != '77.222.128.58'){
//    header( 'Location: http://aquamarket.ua', true, 302 );
//    exit();
//}
error_reporting(E_ALL & ~E_NOTICE & ~E_USER_NOTICE);
ini_set( 'session.cookie_domain', '.aquamarket.ua' );
session_set_cookie_params (0, '/', '.aquamarket.ua', true);
session_start();
setcookie('PHPSESSID', session_id(), time()+60*60*24*30, '/', '.aquamarket.ua', true, true);
defined('BASE_PATH') || define('BASE_PATH', dirname(__DIR__));
header('Strict-Transport-Security: max-age=63072000');
header('Content-Security-Policy: self-ancestors "self"');
header('X-Frame-Options: SAMEORIGIN');
header('X-Content-Type-Options: nosniff');
header('X-XSS-Protection: 1; mode=block');
try {
    /**
     * Disable update snapshotdata on save Model
     */
    Phalcon\Mvc\Model::setup(
        [
            'updateSnapshotOnSave' => false,
        ]
    );
    require_once('../vendor/autoload.php');
    require_once('../vendor/vendor/autoload.php');
    require_once('../vendor/mpdf/autoload.php');
 
    require __DIR__ . '/../app/config/settings.inc.php';
 
    // Creates the autoloader
    $loader = new Loader();
 
    // Register some classes
    $loader->registerClasses(
        [
            'BackendRoutes'         => '../app/config/BackendRoutes.php',
            'FrontendRoutes' => '../app/config/FrontendRoutes.php',
            'ApiRoutes' => '../app/config/ApiRoutes.php',
            'AquadarRoutes' => '../app/aquadar/config/AquadarRoutes.php',
            'Phalcon\Ext\Mailer' => __DIR__ . '/../../vendor/phalcon-ext/mailer/src/',
            'PHPExcel' => '../vendor/PHPExcel/Classes/PHPExcel.php',
            'PHPExcel_IOFactory' => '../vendor/PHPExcel/Classes/PHPExcel/IOFactory.php',
        ]
    );
    $loader->registerNamespaces(array(
        'Phalcon\Ext\Mailer' => __DIR__ . '/../../vendor/phalcon-ext/mailer/src/',
//        'Elasticsearch' => BASE_PATH . '/vendor/elasticsearch/src/Elasticsearch/',
//        'Psr\Log' => BASE_PATH . '/vendor/psr/log/Psr/Log/',
//        'GuzzleHttp\Ring' => BASE_PATH . '/vendor/guzzlehttp/ringphp/src/',
//        'GuzzleHttp\Streams' => BASE_PATH . '/vendor/guzzlehttp/streams/src/',
//        'React\Promise' => BASE_PATH . '/vendor/react/promise/src/',
        'PDW'=> __DIR__ .'/../vendor/PDW/',
    ));
 
    $loader->register();
 
    /**
     * Include services
     */
    require __DIR__ . '/../app/config/services.php';
 
 
    if(_PS_MODE_DEV_) {
        error_reporting(E_ALL);
        $debug = new \Phalcon\Debug();
        $debug->listen();
    }
 
//    $debugWidget = new \PDW\DebugWidget($di);
    /**
     * Handle the request
     */
    $application = new Application();
 
    /**
     * Assign the DI
     */
    $application->setDI($di);
 
    /**
     * Include modules
     */
    require __DIR__ . '/../app/config/modules.php';
 
    $handle = $application->handle();
 
    echo $handle->getContent();
} catch (Phalcon\Exception $e) {
 
    $logger = new FileAdapter(BASE_PATH.'/logs/phalcon.log');
    $logger->error(
        $e->getMessage()
    );
 
    $message = get_class($e). ": ". $e->getMessage(). "\n"
    . " File=". $e->getFile(). "\n"
    . " Line=". $e->getLine(). "\n"
    . $e->getTraceAsString() . "\n";
    $logger->log($message);
 
    echo 'Sorry. We see something went wrong. Please contact us.';
    if (session_id() == '0u6jm9nupv197qtig4tpjj4ca2'){
      echo "\n";
    echo $e->getMessage();
    echo nl2br(htmlentities($e->getTraceAsString()));
  }
//    echo '<pre>';
//    var_dump($_SESSION);
//    die;
} catch (PDOException $e){
    $logger = new FileAdapter(BASE_PATH.'/logs/PDOException.log');
    $logger->error(
        $e->getMessage()
    );
 
  if (session_id() == '0u6jm9nupv197qtig4tpjj4ca2'){
    echo "\n";
    echo $e->getMessage();
    echo nl2br(htmlentities($e->getTraceAsString()));
  }
 
} catch (\Exception $e){
    $logger = new FileAdapter(BASE_PATH.'/logs/exception.log');
 
  if (session_id() == '0u6jm9nupv197qtig4tpjj4ca2'){
    echo "\n";
    echo $e->getMessage();
    echo nl2br(htmlentities($e->getTraceAsString()));
  }
//    $logger->error(
//        $e->getMessage()
//    );
 
}
KeyValue
_url/ru/
KeyValue
REDIRECT_REDIRECT_HTTPSon
REDIRECT_REDIRECT_SSL_TLS_SNInp.aquamarket.ua
REDIRECT_REDIRECT_STATUS200
REDIRECT_HTTP_MOD_REWRITEOn
REDIRECT_HTTPSon
REDIRECT_SSL_TLS_SNInp.aquamarket.ua
REDIRECT_STATUS200
HTTP_MOD_REWRITEOn
HTTPSon
SSL_TLS_SNInp.aquamarket.ua
HTTP_HOSTnp.aquamarket.ua
HTTP_USER_AGENTCCBot/2.0 (https://commoncrawl.org/faq/)
HTTP_ACCEPTtext/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_ACCEPT_LANGUAGEen-US,en;q=0.5
HTTP_ACCEPT_ENCODINGgzip
HTTP_VIA1.1 aquamarket.ua (Apache/2.4.18)
HTTP_X_FORWARDED_FOR34.236.190.216
HTTP_X_FORWARDED_HOSTnp.aquamarket.ua
HTTP_X_FORWARDED_SERVERaquamarket.ua
HTTP_CONNECTIONKeep-Alive
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
SERVER_SIGNATURE<address>Apache/2.4.18 (Ubuntu) Server at np.aquamarket.ua Port 443</address>\n
SERVER_SOFTWAREApache/2.4.18 (Ubuntu)
SERVER_NAMEnp.aquamarket.ua
SERVER_ADDR167.99.246.22
SERVER_PORT443
REMOTE_ADDR138.68.95.137
DOCUMENT_ROOT/var/www/aquamarket.ua/html
REQUEST_SCHEMEhttps
CONTEXT_PREFIX
CONTEXT_DOCUMENT_ROOT/var/www/aquamarket.ua/html
SERVER_ADMINadmin@aquamarket.ua
SCRIPT_FILENAME/var/www/aquamarket.ua/html/public/index.php
REMOTE_PORT55342
REDIRECT_URL/public/ru/
REDIRECT_QUERY_STRING_url=/ru/
GATEWAY_INTERFACECGI/1.1
SERVER_PROTOCOLHTTP/1.1
REQUEST_METHODGET
QUERY_STRING_url=/ru/
REQUEST_URI/ru/
SCRIPT_NAME/public/index.php
PHP_SELF/public/index.php
REQUEST_TIME_FLOAT1566617465.222
REQUEST_TIME1566617465
#Path
0/var/www/aquamarket.ua/html/public/index.php
1/var/www/aquamarket.ua/html/vendor/autoload.php
2/var/www/aquamarket.ua/html/vendor/composer/autoload_real.php
3/var/www/aquamarket.ua/html/vendor/composer/ClassLoader.php
4/var/www/aquamarket.ua/html/vendor/composer/autoload_namespaces.php
5/var/www/aquamarket.ua/html/vendor/composer/autoload_psr4.php
6/var/www/aquamarket.ua/html/vendor/composer/autoload_classmap.php
7/var/www/aquamarket.ua/html/vendor/composer/autoload_files.php
8/var/www/aquamarket.ua/html/vendor/swiftmailer/swiftmailer/lib/swift_required.php
9/var/www/aquamarket.ua/html/vendor/swiftmailer/swiftmailer/lib/classes/Swift.php
10/var/www/aquamarket.ua/html/vendor/vendor/autoload.php
11/var/www/aquamarket.ua/html/vendor/vendor/composer/autoload_real.php
12/var/www/aquamarket.ua/html/vendor/vendor/composer/autoload_namespaces.php
13/var/www/aquamarket.ua/html/vendor/vendor/composer/autoload_psr4.php
14/var/www/aquamarket.ua/html/vendor/vendor/composer/autoload_classmap.php
15/var/www/aquamarket.ua/html/vendor/vendor/composer/autoload_files.php
16/var/www/aquamarket.ua/html/vendor/vendor/ralouphie/getallheaders/src/getallheaders.php
17/var/www/aquamarket.ua/html/vendor/vendor/guzzlehttp/psr7/src/functions_include.php
18/var/www/aquamarket.ua/html/vendor/vendor/guzzlehttp/psr7/src/functions.php
19/var/www/aquamarket.ua/html/vendor/vendor/guzzlehttp/promises/src/functions_include.php
20/var/www/aquamarket.ua/html/vendor/vendor/guzzlehttp/promises/src/functions.php
21/var/www/aquamarket.ua/html/vendor/vendor/guzzlehttp/guzzle/src/functions_include.php
22/var/www/aquamarket.ua/html/vendor/vendor/guzzlehttp/guzzle/src/functions.php
23/var/www/aquamarket.ua/html/vendor/vendor/react/promise/src/functions_include.php
24/var/www/aquamarket.ua/html/vendor/vendor/react/promise/src/functions.php
25/var/www/aquamarket.ua/html/vendor/vendor/symfony/polyfill-ctype/bootstrap.php
26/var/www/aquamarket.ua/html/vendor/mpdf/autoload.php
27/var/www/aquamarket.ua/html/vendor/mpdf/composer/autoload_real.php
28/var/www/aquamarket.ua/html/vendor/mpdf/composer/autoload_namespaces.php
29/var/www/aquamarket.ua/html/vendor/mpdf/composer/autoload_psr4.php
30/var/www/aquamarket.ua/html/vendor/mpdf/composer/autoload_classmap.php
31/var/www/aquamarket.ua/html/vendor/mpdf/composer/autoload_files.php
32/var/www/aquamarket.ua/html/vendor/mpdf/myclabs/deep-copy/src/DeepCopy/deep_copy.php
33/var/www/aquamarket.ua/html/vendor/mpdf/paragonie/random_compat/lib/random.php
34/var/www/aquamarket.ua/html/app/config/settings.inc.php
35/var/www/aquamarket.ua/html/app/config/services.php
36/var/www/aquamarket.ua/html/app/config/config.php
37/var/www/aquamarket.ua/html/app/config/modules.php
38/var/www/aquamarket.ua/html/app/config/FrontendRoutes.php
39/var/www/aquamarket.ua/html/app/config/BackendRoutes.php
40/var/www/aquamarket.ua/html/app/config/ApiRoutes.php
41/var/www/aquamarket.ua/html/app/aquadar/config/AquadarRoutes.php
42/var/www/aquamarket.ua/html/app/frontend/Module.php
43/var/www/aquamarket.ua/html/app/models/Context.php
44/var/www/aquamarket.ua/html/app/models/Customer.php
45/var/www/aquamarket.ua/html/app/frontend/plugins/SecurityPlugin.php
46/var/www/aquamarket.ua/html/app/models/AclRole.php
47/var/www/aquamarket.ua/html/app/models/AclResource.php
48/var/www/aquamarket.ua/html/app/frontend/controllers/IndexController.php
49/var/www/aquamarket.ua/html/app/frontend/controllers/ControllerBase.php
50/var/www/aquamarket.ua/html/app/models/PhTag.php
51/var/www/aquamarket.ua/html/app/models/OGTag.php
52/var/www/aquamarket.ua/html/app/models/Configuration.php
53/var/www/aquamarket.ua/html/app/models/Language.php
54/var/www/aquamarket.ua/html/app/models/Shop.php
55/var/www/aquamarket.ua/html/app/models/Cart.php
56/var/www/aquamarket.ua/html/app/messages/ru.php
57/var/www/aquamarket.ua/html/app/models/OrderUtm.php
58/var/www/aquamarket.ua/html/app/models/StaticPages.php
59/var/www/aquamarket.ua/html/app/models/DeliveryPrice.php
60/var/www/aquamarket.ua/html/app/models/DeliveryPriceLang.php
61/var/www/aquamarket.ua/html/app/models/UrlManager.php
Memory
Usage2097152