Gifts for 80 Year Old Male Who Have Everything

What to give a man for his birthday? Choose the best gift for 80 year old man from our list.
yii\base\ErrorException

Copied! Copy Stacktrace Search Stackoverflow Search Google Error

PHP Noticeyii\base\ErrorException

Undefined index: cnt

  • 1. in /var/www/fastuser/data/www/gifts.gift-test.ru/frontend/views/themes/giftoner/index.php at line 26
    17181920212223242526272829303132333435
            if ($gift->country->title == 'it'){$check_price = 'Controlla prezzo';}
            if ($gift->country->title == 'fr'){$check_price = 'Vérifier prix';}
            if ($gift->country->title == 'pt'){$check_price = 'Verificar preço';}
            if ($gift->country->title == 'nl'){$check_price = 'Check prijs';}
            if ($gift->country->title == 'id'){$check_price = 'Periksa harga';}
     
     
    $lnk = $gift->country->shop.urlencode($gift->name);
     
            if($_SESSION['cnt']) {
                $lang1 = Lang::findOne(['key'=>mb_strtolower($_SESSION['cnt']),'country_id'=>$gift->country->id]);
                if($lang1) {
                    $lang_link = LangLink::findOne(['lang_id'=>$lang1->id]);
                    if($lang_link) {
                        $lnk = $lang_link->link.urlencode($gift->name);
                    }
                }
            }
     
    
  • 2. in /var/www/fastuser/data/www/gifts.gift-test.ru/frontend/views/themes/giftoner/index.php at line 26 yii\base\ErrorHandler::handleError(8, 'Undefined index: cnt', '/var/www/fastuser/data/www/gifts...', 26, ...)
    20212223242526272829303132
            if ($gift->country->title == 'nl'){$check_price = 'Check prijs';}
            if ($gift->country->title == 'id'){$check_price = 'Periksa harga';}
     
     
    $lnk = $gift->country->shop.urlencode($gift->name);
     
            if($_SESSION['cnt']) {
                $lang1 = Lang::findOne(['key'=>mb_strtolower($_SESSION['cnt']),'country_id'=>$gift->country->id]);
                if($lang1) {
                    $lang_link = LangLink::findOne(['lang_id'=>$lang1->id]);
                    if($lang_link) {
                        $lnk = $lang_link->link.urlencode($gift->name);
                    }
    
  • 3. in /var/www/fastuser/data/www/gifts.gift-test.ru/vendor/yiisoft/yii2/base/View.php at line 348 – require('/var/www/fastuser/data/www/gifts...')
    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 ([email protected]_end_clean()) {
                        ob_clean();
                    }
    
  • 4. in /var/www/fastuser/data/www/gifts.gift-test.ru/vendor/yiisoft/yii2/base/View.php at line 257 yii\base\View::renderPhpFile('/var/www/fastuser/data/www/gifts...', ['models' => [common\models\Gift, common\models\Gift, common\models\Gift, common\models\Gift, ...], 'dom' => 0, 'website' => common\models\Website, 'un' => '77387e82'])
    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 /var/www/fastuser/data/www/gifts.gift-test.ru/vendor/yiisoft/yii2/base/View.php at line 156 yii\base\View::renderFile('/var/www/fastuser/data/www/gifts...', ['models' => [common\models\Gift, common\models\Gift, common\models\Gift, common\models\Gift, ...], 'dom' => 0, 'website' => common\models\Website, 'un' => '77387e82'], frontend\controllers\SiteController)
    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 /var/www/fastuser/data/www/gifts.gift-test.ru/vendor/yiisoft/yii2/base/Controller.php at line 441 yii\base\View::render('index', ['models' => [common\models\Gift, common\models\Gift, common\models\Gift, common\models\Gift, ...], 'dom' => 0, 'website' => common\models\Website, 'un' => '77387e82'], frontend\controllers\SiteController)
    435436437438439440441442443444445446447
         * @param array $params the parameters (name-value pairs) that should be made available in the view.
         * @return string the rendering result.
         * @throws InvalidArgumentException if the view file does not exist.
         */
        public function renderPartial($view, $params = [])
        {
            return $this->getView()->render($view, $params, $this);
        }
     
        /**
         * Renders a view file.
         * @param string $file the view file to be rendered. This can be either a file path or a [path alias](guide:concept-aliases).
         * @param array $params the parameters (name-value pairs) that should be made available in the view.
    
  • 7. in /var/www/fastuser/data/www/gifts.gift-test.ru/frontend/controllers/SiteController.php at line 179 yii\base\Controller::renderPartial('index', ['models' => [common\models\Gift, common\models\Gift, common\models\Gift, common\models\Gift, ...], 'dom' => 0, 'website' => common\models\Website, 'un' => '77387e82'])
    173174175176177178179180181182183184185
     
            $this->viewPath = '@frontend/views/themes/'.$website_model->template_path;
            return $this->renderPartial('index', [
                'models' => $gifts_query->all(),
                'dom' => $dom,
                'website' => $website_model,
                'un' => substr(md5(microtime()),0,8),
            ]);
        }
     
        /**
         * @return string|Response
         */
    
  • 8. frontend\controllers\SiteController::actionIndex('default', 'greatgiftsforanniversary.com', '{"age_min":"80","age_max":"80","...', false)
  • 9. in /var/www/fastuser/data/www/gifts.gift-test.ru/vendor/yiisoft/yii2/base/InlineAction.php at line 57 – call_user_func_array([frontend\controllers\SiteController, 'actionIndex'], ['default', 'greatgiftsforanniversary.com', '{"age_min":"80","age_max":"80","...', false])
    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 /var/www/fastuser/data/www/gifts.gift-test.ru/vendor/yiisoft/yii2/base/Controller.php at line 181 yii\base\InlineAction::runWithParams(['attr_json' => '{"age_min":"80","age_max":"80","...', 'country' => 'default', 'website_domain' => 'greatgiftsforanniversary.com'])
    175176177178179180181182183184185186187
            }
     
            $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 /var/www/fastuser/data/www/gifts.gift-test.ru/vendor/yiisoft/yii2/base/Module.php at line 534 yii\base\Controller::runAction('index', ['attr_json' => '{"age_min":"80","age_max":"80","...', 'country' => 'default', 'website_domain' => 'greatgiftsforanniversary.com'])
    528529530531532533534535536537538539540
            $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 /var/www/fastuser/data/www/gifts.gift-test.ru/vendor/yiisoft/yii2/web/Application.php at line 104 yii\base\Module::runAction('', ['attr_json' => '{"age_min":"80","age_max":"80","...', 'country' => 'default', 'website_domain' => 'greatgiftsforanniversary.com'])
    9899100101102103104105106107108109110
                $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 /var/www/fastuser/data/www/gifts.gift-test.ru/vendor/yiisoft/yii2/base/Application.php at line 392 yii\web\Application::handleRequest(yii\web\Request)
    386387388389390391392393394395396397398
        {
            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 /var/www/fastuser/data/www/gifts.gift-test.ru/frontend/web/index.php at line 22 yii\base\Application::run()
    16171819202122
        require(__DIR__ . '/../../common/config/base.php'),
        require(__DIR__ . '/../../common/config/web.php'),
        require(__DIR__ . '/../config/base.php'),
        require(__DIR__ . '/../config/web.php')
    );
     
    (new yii\web\Application($config))->run();
    
$_GET = [
    'attr_json' => '{"age_min":"80","age_max":"80","gender":"man"}',
    'country' => 'default',
    'website_domain' => 'greatgiftsforanniversary.com',
];

$_SESSION = [
    '__flash' => [],
];