Phalcon Framework 3.4.2

ParseError: syntax error, unexpected '}', expecting end of file

/var/www/aquamarket.ua/html/app/frontend/cache/volt/%%var%%www%%aquamarket.ua%%html%%app%%frontend%%views%%layouts%%main.volt.php (171)
#0Phalcon\Mvc\View\Engine\Volt->render(/var/www/aquamarket.ua/html/app/frontend/views/../views/layouts/main.volt, Array(28), true)
#1Phalcon\Mvc\View->_engineRender(Array([.volt] => Object(Phalcon\Mvc\View\Engine\Volt)), ../views/layouts/main, true, true, null)
#2Phalcon\Mvc\View->render(products, view)
#3Phalcon\Mvc\Application->handle()
/var/www/aquamarket.ua/html/public/index.php (106)
<?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();
//}if (substr_count($_SERVER['HTTP_USER_AGENT'], 'bot')){die;}
//if ($_SERVER['REMOTE_ADDR'] != '77.222.128.58'){ die('sorry site unavailable.');}
//if ($_SERVER['REMOTE_ADDR'] == '212.90.164.254'){ die('sorry site unavailable.');}
//if (substr_count($_SERVER['HTTP_USER_AGENT'], 'bot')){die(500);}
//if (substr_count($_SERVER['HTTP_USER_AGENT'], 'Bot')){die(500);}
if (substr_count($_SERVER['REQUEST_URI'], 'phpmyadmin')){die;}
if (substr_count($_SERVER['REQUEST_URI'], 'java')){die;}
 
 
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() == 'nkg3s5ciqdhdi9qugamj6mgvav'){
      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() == 'nkg3s5ciqdhdi9qugamj6mgvav'){
    echo "\n";
    echo $e->getMessage();
    echo nl2br(htmlentities($e->getTraceAsString()));
  }
 
} catch (\Exception $e){
    $logger = new FileAdapter(BASE_PATH.'/logs/exception.log');
 
  if (session_id() == 'nkg3s5ciqdhdi9qugamj6mgvav'){
    echo "\n";
    echo $e->getMessage();
    echo nl2br(htmlentities($e->getTraceAsString()));
  }
//    $logger->error(
//        $e->getMessage()
//    );
 
}
KeyValue
_url/ru/prezervativy/22977-durex-play-massage-2-in-1-sensual-intimnyj-gel-smazka-200-ml.html
KeyValue
REDIRECT_REDIRECT_HTTPSon
REDIRECT_REDIRECT_SSL_TLS_SNIaquamarket.ua
REDIRECT_REDIRECT_STATUS200
REDIRECT_REWRITEBASE/
REDIRECT_HTTP_MOD_REWRITEOn
REDIRECT_HTTPSon
REDIRECT_SSL_TLS_SNIaquamarket.ua
REDIRECT_STATUS200
REWRITEBASE/
HTTP_MOD_REWRITEOn
HTTPSon
SSL_TLS_SNIaquamarket.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_HOSTaquamarket.ua
HTTP_CONNECTIONKeep-Alive
HTTP_ACCEPT_ENCODINGgzip
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
SERVER_SIGNATURE<address>Apache/2.4.18 (Ubuntu) Server at aquamarket.ua Port 443</address>\n
SERVER_SOFTWAREApache/2.4.18 (Ubuntu)
SERVER_NAMEaquamarket.ua
SERVER_ADDR138.68.95.137
SERVER_PORT443
REMOTE_ADDR3.226.243.130
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_PORT58952
REDIRECT_URL/public/ru/prezervativy/22977-durex-play-massage-2-in-1-sensual-intimnyj-gel-smazka-200-ml.html
REDIRECT_QUERY_STRING_url=/ru/prezervativy/22977-durex-play-massage-2-in-1-sensual-intimnyj-gel-smazka-200-ml.html
GATEWAY_INTERFACECGI/1.1
SERVER_PROTOCOLHTTP/1.1
REQUEST_METHODGET
QUERY_STRING_url=/ru/prezervativy/22977-durex-play-massage-2-in-1-sensual-intimnyj-gel-smazka-200-ml.html
REQUEST_URI/ru/prezervativy/22977-durex-play-massage-2-in-1-sensual-intimnyj-gel-smazka-200-ml.html
SCRIPT_NAME/public/index.php
PHP_SELF/public/index.php
REQUEST_TIME_FLOAT1569164787.029
REQUEST_TIME1569164787
#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/ProductsController.php
49/var/www/aquamarket.ua/html/app/frontend/controllers/ControllerBase.php
50/var/www/aquamarket.ua/html/app/models/Shop.php
51/var/www/aquamarket.ua/html/app/models/Language.php
52/var/www/aquamarket.ua/html/app/models/DeliveryPrice.php
53/var/www/aquamarket.ua/html/app/models/PhTag.php
54/var/www/aquamarket.ua/html/app/models/OGTag.php
55/var/www/aquamarket.ua/html/app/models/Configuration.php
56/var/www/aquamarket.ua/html/app/models/Cart.php
57/var/www/aquamarket.ua/html/app/messages/ru.php
58/var/www/aquamarket.ua/html/app/models/OrderUtm.php
59/var/www/aquamarket.ua/html/app/models/StaticPages.php
60/var/www/aquamarket.ua/html/app/models/Product.php
61/var/www/aquamarket.ua/html/app/models/ProductLang.php
62/var/www/aquamarket.ua/html/app/models/Category.php
63/var/www/aquamarket.ua/html/app/models/CategoryLang.php
64/var/www/aquamarket.ua/html/app/models/ProductComment.php
65/var/www/aquamarket.ua/html/app/models/ShopLang.php
66/var/www/aquamarket.ua/html/app/models/Image.php
67/var/www/aquamarket.ua/html/app/models/UrlManager.php
68/var/www/aquamarket.ua/html/app/models/ProductShop.php
69/var/www/aquamarket.ua/html/app/models/ProductRelatedProduct.php
70/var/www/aquamarket.ua/html/app/models/ProductRelatedCategory.php
71/var/www/aquamarket.ua/html/app/models/FeatureProduct.php
72/var/www/aquamarket.ua/html/app/frontend/cache/volt/%%var%%www%%aquamarket.ua%%html%%app%%frontend%%views%%products%%view.volt.php
73/var/www/aquamarket.ua/html/app/models/ProductPrice.php
74/var/www/aquamarket.ua/html/app/models/SpecificPrice.php
75/var/www/aquamarket.ua/html/app/models/Converter.php
76/var/www/aquamarket.ua/html/app/frontend/components/ProductListWidget.php
77/var/www/aquamarket.ua/html/app/frontend/components/BaseComponent.php
78/var/www/aquamarket.ua/html/app/frontend/cache/volt/%%var%%www%%aquamarket.ua%%html%%app%%frontend%%components%%views%%product-list%%category-list.volt.php
79/var/www/aquamarket.ua/html/app/frontend/cache/volt/%%var%%www%%aquamarket.ua%%html%%app%%frontend%%components%%views%%product-list%%relation-product.volt.php
80/var/www/aquamarket.ua/html/app/models/CompareProducts.php
81/var/www/aquamarket.ua/html/app/models/ImageType.php
82/var/www/aquamarket.ua/html/app/models/FeatureLang.php
83/var/www/aquamarket.ua/html/app/models/FeatureValueLang.php
84/var/www/aquamarket.ua/html/app/models/Trademark.php
85/var/www/aquamarket.ua/html/app/frontend/cache/volt/%%var%%www%%aquamarket.ua%%html%%app%%frontend%%views%%products%%review-form.volt.php
Memory
Usage2097152