Copied! Copy Stacktrace Search Stackoverflow Search Google Error

PHP Warning亚虎pt客户端手机版_亚虎手机app下载_亚虎网络娱乐手机版

Illegal string offset 'user_money'

  • 1. in /data/web/qnshop/views/user/account.php at line 129
    120121122123124125126127128129130131132133134135136137138
                    <h3>账户余额</h3>
                </div>
                <!-- themes end -->
                <!-- message star -->
                <div class="message">
                    <ul class="clearfix">
                        <li class="mes_01"><i class="icon_purse"></i>
                            <div>
                                <p class="txt">可用余额</p>
                                <p class="num"><em class="rmb">¥</em><?php echo $user['user_money']; ?></p>
                            </div>
                        </li>
                        <li class="mes_02"><i class="icon_lock"></i>
                            <div>
                                <p class="txt">可用积分</p>
                                <p class="num"><em class="rmb"></em><?php echo $user['pay_points']; ?></p>
                            </div>
                        </li>
                        <li class="mes_03"><i class="icon_question" id="question"></i></li>
    
  • 2. in /data/web/qnshop/views/user/account.php at line 129 yii\base\ErrorHandler::handleError(2, 'Illegal string offset 'user_mone...', '/data/web/qnshop/views/user/acco...', 129, ...)
    123124125126127128129130131132133134135
                <!-- message star -->
                <div class="message">
                    <ul class="clearfix">
                        <li class="mes_01"><i class="icon_purse"></i>
                            <div>
                                <p class="txt">可用余额</p>
                                <p class="num"><em class="rmb">¥</em><?php echo $user['user_money']; ?></p>
                            </div>
                        </li>
                        <li class="mes_02"><i class="icon_lock"></i>
                            <div>
                                <p class="txt">可用积分</p>
                                <p class="num"><em class="rmb"></em><?php echo $user['pay_points']; ?></p>
    
  • 3. in /data/web/qnshop/vendor/yiisoft/yii2/base/View.php at line 348 – require('/data/web/qnshop/views/user/acco...')
    342343344345346347348349350351352353354
        {
            $_obInitialLevel_ = ob_get_level();
            ob_start();
            ob_implicit_flush(false);
            extract($_params_, EXTR_OVERWRITE);
            try {
                require $_file_;
                return ob_get_clean();
            } catch (\Exception $e) {
                while (ob_get_level() > $_obInitialLevel_) {
                    if (!@ob_end_clean()) {
                        ob_clean();
                    }
    
  • 4. in /data/web/qnshop/vendor/yiisoft/yii2/base/View.php at line 257 yii\base\View::renderPhpFile('/data/web/qnshop/views/user/acco...', ['shoppe_id' => null, 'shopinfo' => ['shop_id' => 93, 'order_cancel_time' => '', 'freight_free' => '1000000', 'site_url' => 'http://www.jyys1985.com/', ...], 'cattree' => [4408 => ['id' => '4408', 'zid' => '4408', 'old_id' => null, 'name' => '运动户外', ...], 4402 => ['id' => '4402', 'zid' => '4402', 'old_id' => null, 'name' => '文化用品', ...], 4405 => ['id' => '4405', 'zid' => '4405', 'old_id' => null, 'name' => '日用百货', ...], 3587 => ['id' => '3587', 'zid' => '3587', 'old_id' => null, 'name' => '仪器仪表', ...], ...], 'navigation' => [], ...])
    251252253254255256257258259260261262263
                        $this->renderers[$ext] = Yii::createObject($this->renderers[$ext]);
                    }
                    /* @var $renderer ViewRenderer */
                    $renderer = $this->renderers[$ext];
                    $output = $renderer->render($this, $viewFile, $params);
                } else {
                    $output = $this->renderPhpFile($viewFile, $params);
                }
                $this->afterRender($viewFile, $params, $output);
            }
     
            array_pop($this->_viewFiles);
            $this->context = $oldContext;
    
  • 5. in /data/web/qnshop/vendor/yiisoft/yii2/base/View.php at line 156 yii\base\View::renderFile('/data/web/qnshop/views/user/acco...', ['shoppe_id' => null, 'shopinfo' => ['shop_id' => 93, 'order_cancel_time' => '', 'freight_free' => '1000000', 'site_url' => 'http://www.jyys1985.com/', ...], 'cattree' => [4408 => ['id' => '4408', 'zid' => '4408', 'old_id' => null, 'name' => '运动户外', ...], 4402 => ['id' => '4402', 'zid' => '4402', 'old_id' => null, 'name' => '文化用品', ...], 4405 => ['id' => '4405', 'zid' => '4405', 'old_id' => null, 'name' => '日用百货', ...], 3587 => ['id' => '3587', 'zid' => '3587', 'old_id' => null, 'name' => '仪器仪表', ...], ...], 'navigation' => [], ...], app\controllers\UserController)
    150151152153154155156157158159160161162
         * @throws InvalidCallException if the view cannot be resolved.
         * @see renderFile()
         */
        public function render($view, $params = [], $context = null)
        {
            $viewFile = $this->findViewFile($view, $context);
            return $this->renderFile($viewFile, $params, $context);
        }
     
        /**
         * Finds the view file based on the given view name.
         * @param string $view the view name or the [path alias](guide:concept-aliases) of the view file. Please refer to [[render()]]
         * on how to specify this parameter.
    
  • 6. in /data/web/qnshop/vendor/yiisoft/yii2/base/Controller.php at line 386 yii\base\View::render('account', ['shoppe_id' => null, 'shopinfo' => ['shop_id' => 93, 'order_cancel_time' => '', 'freight_free' => '1000000', 'site_url' => 'http://www.jyys1985.com/', ...], 'cattree' => [4408 => ['id' => '4408', 'zid' => '4408', 'old_id' => null, 'name' => '运动户外', ...], 4402 => ['id' => '4402', 'zid' => '4402', 'old_id' => null, 'name' => '文化用品', ...], 4405 => ['id' => '4405', 'zid' => '4405', 'old_id' => null, 'name' => '日用百货', ...], 3587 => ['id' => '3587', 'zid' => '3587', 'old_id' => null, 'name' => '仪器仪表', ...], ...], 'navigation' => [], ...], app\controllers\UserController)
    380381382383384385386387388389390391392
         * These parameters will not be available in the layout.
         * @return string the rendering result.
         * @throws InvalidArgumentException if the view file or the layout file does not exist.
         */
        public function render($view, $params = [])
        {
            $content = $this->getView()->render($view, $params, $this);
            return $this->renderContent($content);
        }
     
        /**
         * Renders a static string by applying a layout.
         * @param string $content the static string being rendered
    
  • 7. in /data/web/qnshop/controllers/UserController.php at line 672 yii\base\Controller::render('account', ['shoppe_id' => null, 'shopinfo' => ['shop_id' => 93, 'order_cancel_time' => '', 'freight_free' => '1000000', 'site_url' => 'http://www.jyys1985.com/', ...], 'cattree' => [4408 => ['id' => '4408', 'zid' => '4408', 'old_id' => null, 'name' => '运动户外', ...], 4402 => ['id' => '4402', 'zid' => '4402', 'old_id' => null, 'name' => '文化用品', ...], 4405 => ['id' => '4405', 'zid' => '4405', 'old_id' => null, 'name' => '日用百货', ...], 3587 => ['id' => '3587', 'zid' => '3587', 'old_id' => null, 'name' => '仪器仪表', ...], ...], 'navigation' => [], ...])
    666667668669670671672673674675676677678
                    'shopinfo'    => $this->shopinfo,
                    'cattree'     => $this->cattree,
                    'navigation'  => $this->navigation,
                    'user'        => $user['result'],
                    'account_log' => $account_log,
                    'pages'       => $pages,
                    'articlelist' => $this->articlelist,
                ]);
        }
     
        /*
        * 收藏列表
        */
    
  • 8. app\controllers\UserController::actionAccount()
  • 9. in /data/web/qnshop/vendor/yiisoft/yii2/base/InlineAction.php at line 57 – call_user_func_array([app\controllers\UserController, 'actionAccount'], [])
    515253545556575859
            $args = $this->controller->bindActionParams($this, $params);
            Yii::debug('Running action: ' . get_class($this->controller) . '::' . $this->actionMethod . '()', __METHOD__);
            if (Yii::$app->requestedParams === null) {
                Yii::$app->requestedParams = $args;
            }
     
            return call_user_func_array([$this->controller, $this->actionMethod], $args);
        }
    }
    
  • 10. in /data/web/qnshop/vendor/yiisoft/yii2/base/Controller.php at line 157 yii\base\InlineAction::runWithParams(['s' => 'user/account'])
    151152153154155156157158159160161162163
            }
     
            $result = null;
     
            if ($runAction && $this->beforeAction($action)) {
                // run the action
                $result = $action->runWithParams($params);
     
                $result = $this->afterAction($action, $result);
     
                // call afterAction on modules
                foreach ($modules as $module) {
                    /* @var $module Module */
    
  • 11. in /data/web/qnshop/vendor/yiisoft/yii2/base/Module.php at line 528 yii\base\Controller::runAction('account', ['s' => 'user/account'])
    522523524525526527528529530531532533534
            $parts = $this->createController($route);
            if (is_array($parts)) {
                /* @var $controller Controller */
                list($controller, $actionID) = $parts;
                $oldController = Yii::$app->controller;
                Yii::$app->controller = $controller;
                $result = $controller->runAction($actionID, $params);
                if ($oldController !== null) {
                    Yii::$app->controller = $oldController;
                }
     
                return $result;
            }
    
  • 12. in /data/web/qnshop/vendor/yiisoft/yii2/web/Application.php at line 103 yii\base\Module::runAction('user/account', ['s' => 'user/account'])
    979899100101102103104105106107108109
                $params = $this->catchAll;
                unset($params[0]);
            }
            try {
                Yii::debug("Route requested: '$route'", __METHOD__);
                $this->requestedRoute = $route;
                $result = $this->runAction($route, $params);
                if ($result instanceof Response) {
                    return $result;
                }
     
                $response = $this->getResponse();
                if ($result !== null) {
    
  • 13. in /data/web/qnshop/vendor/yiisoft/yii2/base/Application.php at line 386 yii\web\Application::handleRequest(yii\web\Request)
    380381382383384385386387388389390391392
        {
            try {
                $this->state = self::STATE_BEFORE_REQUEST;
                $this->trigger(self::EVENT_BEFORE_REQUEST);
     
                $this->state = self::STATE_HANDLING_REQUEST;
                $response = $this->handleRequest($this->getRequest());
     
                $this->state = self::STATE_AFTER_REQUEST;
                $this->trigger(self::EVENT_AFTER_REQUEST);
     
                $this->state = self::STATE_SENDING_RESPONSE;
                $response->send();
    
  • 14. in /data/web/qnshop/web/index.php at line 10 yii\base\Application::run()
    45678910
        // comment out the following two lines when deployed to production
        defined('YII_DEBUG') or define('YII_DEBUG',true);
        defined('YII_ENV') or define('YII_ENV','dev');
        require(__DIR__ . '/../vendor/autoload.php');
        require(__DIR__ . '/../vendor/yiisoft/yii2/Yii.php');
        $config = require(__DIR__ . '/../config/web.php');
        (new yii\web\Application($config))->run();
    
  • $_GET = [
        's' => 'user/account',
        't' => 'sp',
    ];
    
    $_SESSION = [
        '__flash' => [],
        '__returnUrl' => 'http://www.jyys1985.com/user/account',
    ];