Phalcon Framework 3.1.2

Error: Class 'Elements' not found

/data/home/yzhang/ServerCoam/Web/applications/common/di-services-base.php (383)
#0Closure->{closure}()
#1Phalcon\Di\Service->resolve(null, Object(Phalcon\Di\FactoryDefault))
#2Phalcon\Di->get(elements, null)
#3Phalcon\Di->getShared(elements)
#4Phalcon\Di\Injectable->__get(elements)
/data/home/yzhang/ServerCoam/Platform/cache/volt/%%data%%home%%yzhang%%servercoam%%platform%%applications%%multiple%%lw%%pc_views%%layouts%%main.volt.php (81)
<div class="container" id="commonBody">
    <header class="clearfix"><!--  style="width: 100%;padding-right: 15em;max-width: none;" -->
        <!--div class="col-md-6">
            <a href="/"><img src="images/logo.png" style="display: block;width: 160px;" /></a>
            <div>
                <span style="font-size: 18px;padding: 0px;letter-spacing:0.2em;">商运物流平台</span>
                <span style="font-size: 20px;padding: 0px;letter-spacing:0.2em;">-登陆窗口</span>
            </div>
        </div-->
        <div style="display: inline-block;padding-top: 45px;margin-left: -30px;">
            <img src="/assets/lw/images/logo_transparent.png" style="width: 120px;display: inline;float: left;"/>
            <div style="display: inline;float: left;margin-left: 30px;">
                <span>商运物流平台</span>
                <a href="/"><h1 style="color:#00755e;">登陆窗口</h1></a>
            </div>
        </div>
 
        <nav id="loginTags">
            <div class="loginAccountInfo">
                <?php if ($sAccountInfo['as'] == 'Customer') { ?>
                    <a href="https://cp.<?= $HostServer ?>" title="进入客户服务中心" target="_blank">
                        <img class="img-circle" src="<?= $WebCloudSpace ?>/<?= $sAccountInfo['aInfoPicture'] ?>?imageView2/2/w/60/h/60" style="cursor: pointer;"/>
                    </a>
                    <p style="font-weight: 700;"><?= $sAccountInfo['aInfoName'] ?></p>
                <?php } elseif ($sAccountInfo['as'] == 'Logistics') { ?>
                    <a href="https://lp.<?= $HostServer ?>" title="进入物流管理后台" target="_blank">
                        <img class="img-circle" src="<?= $WebCloudSpace ?>/<?= $sAccountInfo['aInfoPicture'] ?>?imageView2/2/w/60/h/60" style="cursor: pointer;"/>
                    </a>
                    <p style="font-weight: 700;"><?= $sAccountInfo['aInfoName'] ?></p>
                <?php } elseif ($sAccountInfo['as'] == 'Driver') { ?>
                    <a href="https://dp.<?= $HostServer ?>" title="进入GPS管理后台" target="_blank">
                        <img class="img-circle" src="<?= $WebCloudSpace ?>/<?= $sAccountInfo['aInfoPicture'] ?>?imageView2/2/w/60/h/60" style="cursor: pointer;"/>
                    </a>
                    <p style="font-weight: 700;"><?= $sAccountInfo['aInfoName'] ?></p>
                <?php } elseif ($sAccountInfo['as'] == 'Manager') { ?>
                    <a href="https://p.<?= $HostServer ?>" title="进入商运管理后台" target="_blank">
                        <img class="img-circle" src="<?= $WebCloudSpace ?>/<?= $sAccountInfo['aInfoPicture'] ?>?imageView2/2/w/60/h/60" style="cursor: pointer;"/>
                    </a>
                    <p style="font-weight: 700;"><?= $sAccountInfo['aInfoName'] ?></p>
                <?php } else { ?>
                    <a href="#" title="请先登录" target="_blank">
                        <img class="img-circle" src="<?= $WebCloudSpace ?>/defaultManagerPicture.png?imageView2/2/w/60/h/60"/></a>
                    <p style="font-weight: 700;">尚未登陆</p>
                <?php } ?>
            </div>
            <?php if (empty($sAccountInfo)) { ?>
                <div class="openConnectSnsLogin">
                    <a href="#" class="snsWebAuth" snsAuthWay="WeChat" snsAuthType="Login" authRedirectHref="#"
                       title="点击进入授权页面"
                       alt="点击进入授权页面"> <!-- onclick="toWeChatLogin( 'PublicLogin', 0 )" -->
                        <img width="32" height="31" src="https://lw.coam.co/assets/lw/images/ic_sso_weixin.png"/>
                    </a>
                    <a href="#" class="snsWebAuth" snsAuthWay="WeiBo" snsAuthType="Login"
                       authRedirectHref=""
                       title="点击进入授权页面" alt="点击进入授权页面"> <!-- onclick="toQzoneLogin( 'PublicLogin', 0 )" -->
                        <img width="32" height="31" src="https://lw.coam.co/assets/lw/images/ic_sso_weibo.jpg"/>
                    </a>
                    <a href="#" class="snsWebAuth" snsAuthWay="QQ" snsAuthType="Login" authRedirectHref="#"
                       title="点击进入授权页面"
                       alt="点击进入授权页面"> <!-- onclick="toQzoneLogin( 'PublicLogin', 0 )" -->
                        <img width="32" height="31" src="https://lw.coam.co/assets/lw/images/ic_sso_qq.jpg"/>
                    </a>
                </div>
            <?php } ?>
 
            
            
            
            
            <!--有回调函数的登录按钮-->
            
            
            
            
            
        </nav>
    </header>
    <div class="main">
        <nav id="cbp-hrmenu" class="cbp-hrmenu">
 
            <?= $this->elements->lw_getLoginNavMenu() ?>
 
        </nav>
        <div class="cbp-hrsub">
            <div class="cbp-hrsub-inner">
                <div class="PanelWindow">
 
                    <?= $this->getContent() ?>
 
                </div>
            </div><!-- /cbp-hrsub-inner -->
        </div><!-- /cbp-hrsub -->
    </div>
</div>
 
<div id="commonFoot">
    <!--a href="{vanillaurl}" class="PoweredByVanilla">Powered by Vanilla</a-->
    <div class="coamFooter">
        <div class="Row">
            <span class="coamWeb">商运主页<a href="https://www.<?php echo MainServer; ?>"
                                          target="_blank">www.<?php echo MainServer; ?></a></span><span
                    class="coamWeb">商运物流<a href="https://56.<?php echo MainServer; ?>"
                                            target="_blank">56.<?php echo MainServer; ?></a></span><span
                    class="coamWeb">商运社区<a
                        href="https://sns.<?php echo MainServer; ?>">sns.<?php echo MainServer; ?></a></span>
            <p class="footerDescribe">All contents copyright 2013-2020 ,武汉商运资产管理有限公司 Ltd. All rights reserved.<span
                        class="beianSpan"><a href="https://www.miitbeian.gov.cn/"
                                             target="_blank">鄂ICP备13009374号</a></span></p>
        </div>
    </div>
</div>
 
 
<style type="text/css">
    html, body {
        width: 100%;
        height: 100%;
        margin: 0;
    }
</style>
#5unknown
#6Phalcon\Mvc\View\Engine\Volt->render(/data/home/yzhang/ServerCoam/Platform/applications/multiple/lw/pc_views/layouts/main.volt, Array(23), true)
#7Phalcon\Mvc\View->_engineRender(Array([.volt] => Object(Phalcon\Mvc\View\Engine\Volt)), layouts/main, false, true, null)
#8Phalcon\Mvc\View->render(index, index, Array())
#9Phalcon\Mvc\Application->handle()
/data/home/yzhang/ServerCoam/Platform/public/index.php (153)
<?php
 
# 获取定义用户 web 根目录 [/data/home/yzhang]
//define('HOME_DIR', dirname(__DIR__) . "/../../../..");
define('HOME_DIR', "/data/home/yzhang");
 
// 切换开发测试环境
define('ENV', 'dev');
 
// 开启 xhprof 性能分析...
define('DEBUG_ENV', false);
 
if (!defined('ENV')) {
    error_log('Error: The application ENV constant is not set.');
    exit(1);
}
 
// 开发测试环境配置
define('DEV_ENV', 'dev');
define('TEST_ENV', 'test');
define('UPGRADE_ENV', 'upgrade');
define('DIST_ENV', 'dist');
define('DEV_ING', ENV === DEV_ENV);
define('TEST_ING', ENV === TEST_ENV);
define('UPGRADE_ING', ENV === UPGRADE_ENV);
define('DIST_ING', ENV === DIST_ENV);
 
/*
 * Environment setup
 * Different environments will require different levels of error reporting.
*/
switch (ENV) {
    case DEV_ENV:
        // 开启支付测试环境...
        if ($_SERVER["REMOTE_ADDR"] === "120.77.13.164")
            define('DEV_PAY_ENV', false);
        else
            define('DEV_PAY_ENV', true);
 
        //error_reporting(E_ALL);
        //ini_set("display_errors", 1);
        (new Phalcon\Debug)->listen();
        break;
    case TEST_ENV:
        // 开启支付测试环境...
        define('DEV_PAY_ENV', false);
 
        //ini_set("display_errors", 0);
        //ini_set("log_errors", 1);
        //error_reporting(E_ALL);
        break;
    case UPGRADE_ENV:
        // 开启支付测试环境...
        define('DEV_PAY_ENV', false);
 
        //ini_set("display_errors", 0);
        //ini_set("log_errors", 1);
        //error_reporting(E_ALL);
        break;
    case DIST_ENV:
        // 开启支付测试环境...
        define('DEV_PAY_ENV', false);
 
        //ini_set("display_errors", 0);
        //ini_set("log_errors", 1);
        //error_reporting(E_ALL);
        break;
    default:
        error_log('Error: The application ENV constant is not set correctly.');
        exit(1);
}
 
// 开启 xhprof 性能分析...
if (DEBUG_ENV) xhprof_enable(XHPROF_FLAGS_CPU + XHPROF_FLAGS_MEMORY);
 
try {
 
    # 获取当前网站的根目录
    if (!defined('WEB_BASE_DIR')) define('WEB_BASE_DIR', dirname(__DIR__));
    if (!defined('WEB_APP_DIR')) define('WEB_APP_DIR', WEB_BASE_DIR . '/applications');
 
    // *** common read the configuration
    //$config = new Phalcon\Config\Adapter\Ini(APP_DIR . '/common/config/config_common.ini');
    //$config = include WEB_APP_DIR . '/common/config/config_common.php';
//    $config_mp = include WEB_APP_DIR . '/common/config/config_p.php';
//
//    // 合并配置文件
//    $config->merge($config_mp);
 
    // 加载主配置文件...
    $config = include_once WEB_APP_DIR . '/common/config/config_common.php';
    //Zz_Api::io(40000,"",$config);
//    print_r($config);
//    exit;
 
    // *** Read auto-loader˜
    include_once WEB_APP_DIR . '/common/loader.php';
 
    // *** Read auto-logger
    include_once WEB_APP_DIR . '/common/logger.php';
 
    //Zz_Api::io(20000, "", $config->toArray());
 
    // 设置默认控制器工厂函数
    $di = new \Phalcon\DI\FactoryDefault();
 
    // *** setting di services
    include_once WEB_APP_DIR . '/common/di-services-base.php';
    include_once WEB_APP_DIR . '/common/di-services-common.php';
    include_once WEB_APP_DIR . '/common/di-services-db.php';
    include_once WEB_APP_DIR . '/common/di-services-web.php';
 
    // y
    //$application = new \Phalcon\Mvc\Application();
    //$application->setDI($di);
 
    $application = new \Phalcon\Mvc\Application($di);
 
    // 注册模块
    $application->registerModules(
        [
            "admin" => [
                "className" => "Multiple\\Admin\\Module",
                "path" => WEB_APP_DIR . "/multiple/admin/Module.php",
            ],
            "customer" => [
                "className" => "Multiple\\Customer\\Module",
                "path" => WEB_APP_DIR . "/multiple/customer/Module.php",
            ],
            "driver" => [
                "className" => "Multiple\\Driver\\Module",
                "path" => WEB_APP_DIR . "/multiple/driver/Module.php",
            ],
            "gps" => [
                "className" => "Multiple\\Gps\\Module",
                "path" => WEB_APP_DIR . "/multiple/gps/Module.php",
            ],
            "logistics" => [
                "className" => "Multiple\\Logistics\\Module",
                "path" => WEB_APP_DIR . "/multiple/logistics/Module.php",
            ],
            "park" => [
                "className" => "Multiple\\Park\\Module",
                "path" => WEB_APP_DIR . "/multiple/park/Module.php",
            ],
            "lw" => [
                "className" => "Multiple\\Lw\\Module",
                "path" => WEB_APP_DIR . "/multiple/lw/Module.php",
            ],
        ]
    );
 
    echo $application->handle()->getContent();
 
} catch (Phalcon\Exception $e) {
    echo $e->getMessage();
} catch (PDOException $e) {
    echo $e->getMessage();
}
 
# 是否开启 XhProf 调试日志 ...
if (DEBUG_ENV) Zz_Api::endXhProfDebug();
KeyValue
_url/lw/
KeyValue
USERwww-data
HOME/var/www
HTTP_ACCEPTtext/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_USER_AGENTCCBot/2.0 (http://commoncrawl.org/faq/)
HTTP_ACCEPT_ENCODINGx-gzip, gzip, deflate
HTTP_HOSTlw.coam.co
REDIRECT_STATUS200
SERVER_NAMElw.coam.co
SERVER_PORT443
SERVER_ADDR103.37.146.123
REMOTE_PORT47298
REMOTE_ADDR54.196.89.247
SERVER_SOFTWAREnginx/1.12.0
GATEWAY_INTERFACECGI/1.1
REQUEST_SCHEMEhttps
SERVER_PROTOCOLHTTP/1.0
DOCUMENT_ROOT/data/home/yzhang/ServerCoam/Platform/public/
DOCUMENT_URI/index.php
REQUEST_URI/
SCRIPT_NAME/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHODGET
QUERY_STRING_url=/lw/
HTTPSon
SCRIPT_FILENAME/data/home/yzhang/ServerCoam/Platform/public//index.php
FCGI_ROLERESPONDER
PHP_SELF/index.php
REQUEST_TIME_FLOAT1498564772.2103
REQUEST_TIME1498564772
#Path
0/data/home/yzhang/ServerCoam/Platform/public/index.php
1/data/home/yzhang/ServerCoam/Web/applications/common/config/config_common.php
2/data/home/yzhang/ServerCoam/Web/applications/common/loader.php
3/data/home/yzhang/ServerCoam/Web/applications/plugins/PingPay/vendor/autoload.php
4/data/home/yzhang/ServerCoam/Web/applications/plugins/PingPay/vendor/composer/autoload_real.php
5/data/home/yzhang/ServerCoam/Web/applications/plugins/PingPay/vendor/composer/ClassLoader.php
6/data/home/yzhang/ServerCoam/Web/applications/plugins/PingPay/vendor/composer/autoload_namespaces.php
7/data/home/yzhang/ServerCoam/Web/applications/plugins/PingPay/vendor/composer/autoload_psr4.php
8/data/home/yzhang/ServerCoam/Web/applications/plugins/PingPay/vendor/composer/autoload_classmap.php
9/data/home/yzhang/ServerCoam/Web/applications/plugins/php-resque/vendor/autoload.php
10/data/home/yzhang/ServerCoam/Web/applications/plugins/php-resque/vendor/composer/autoload_real.php
11/data/home/yzhang/ServerCoam/Web/applications/plugins/php-resque/vendor/composer/include_paths.php
12/data/home/yzhang/ServerCoam/Web/applications/plugins/php-resque/vendor/composer/autoload_static.php
13/data/home/yzhang/ServerCoam/Web/applications/plugins/php-resque/lib/Resque.php
14/data/home/yzhang/ServerCoam/Web/applications/common/logger.php
15/data/home/yzhang/ServerCoam/Web/applications/common/di-services-base.php
16/data/home/yzhang/ServerCoam/Web/applications/common/di-services-common.php
17/data/home/yzhang/ServerCoam/Web/applications/common/di-services-db.php
18/data/home/yzhang/ServerCoam/Web/applications/common/di-services-web.php
19/data/home/yzhang/ServerCoam/Web/applications/common/routes.php
20/data/home/yzhang/ServerCoam/Platform/applications/multiple/lw/Module.php
21/data/home/yzhang/ServerCoam/Platform/applications/utils/ModuleBase.php
22/data/home/yzhang/ServerCoam/Platform/applications/utils/DiSecurity.php
23/data/home/yzhang/ServerCoam/Web/applications/library/DiSecurityBase.php
24/data/home/yzhang/ServerCoam/Web/applications/plugins/MobileDetect/Mobile_Detect.php
25/data/home/yzhang/ServerCoam/Platform/applications/multiple/lw/controllers/IndexController.php
26/data/home/yzhang/ServerCoam/Platform/applications/multiple/lw/controllers/ControllerMain.php
27/data/home/yzhang/ServerCoam/Platform/applications/utils/ControllerBase.php
28/data/home/yzhang/ServerCoam/Web/applications/models/AccountCustomerInfoModel.php
29/data/home/yzhang/ServerCoam/Web/applications/models/AccountBaseModel.php
30/data/home/yzhang/ServerCoam/Web/applications/models/BaseModel.php
31/data/home/yzhang/ServerCoam/Platform/cache/volt/%%data%%home%%yzhang%%servercoam%%platform%%applications%%multiple%%lw%%pc_views%%index%%index.volt.php
32/data/home/yzhang/ServerCoam/Platform/cache/volt/%%data%%home%%yzhang%%servercoam%%platform%%applications%%multiple%%lw%%pc_views%%layouts%%main.volt.php
33/data/home/yzhang/ServerCoam/Platform/applications/utils/Elements.php
Memory
Usage2097152