Coin List Widget

Coin
 
Coins in the list are displayed in this widgets.
Currency Code
The default currency to display.
Language
Width
Height

yii\base\ErrorException
Copied! Copy Stacktrace Search Stackoverflow Search Google Error

PHP Noticeyii\base\ErrorException

Undefined index: type

  • 1. in /raid/1/www/2yachts/api/modules/widget/controllers/EntityController.php at line 180
    171172173174175176177178179180181182183184185
                $region['slug'] = $country['slug'];
     
                $region['url'] = '/' . ($region['type'] == 'rent' ? 'charter' : 'sale') . '/' . $country['slug'];
            } else {
                $city = GeoCities::findOne($region['region_id']);
                $region['region_name'] = $city[AppHelper::langName('city_name')];
                $region['slug'] = $city['slug'];
     
                $country = GeoCountry::findOne($city['country_id']);
                $region['url'] = '/' . ($region['type'] == 'rent' ? 'charter' : 'sale') . '/' . $country['slug'] . '/' . $city['slug'];
            }
     
            return $region;
        }
    }
    
  • 2. in /raid/1/www/2yachts/api/modules/widget/controllers/EntityController.php at line 180 yii\base\ErrorHandler::handleError(8, 'Undefined index: type', '/raid/1/www/2yachts/api/modules/...', 180, ...)
    174175176177178179180181182183184185
            } else {
                $city = GeoCities::findOne($region['region_id']);
                $region['region_name'] = $city[AppHelper::langName('city_name')];
                $region['slug'] = $city['slug'];
     
                $country = GeoCountry::findOne($city['country_id']);
                $region['url'] = '/' . ($region['type'] == 'rent' ? 'charter' : 'sale') . '/' . $country['slug'] . '/' . $city['slug'];
            }
     
            return $region;
        }
    }
    
  • 3. in /raid/1/www/2yachts/api/modules/widget/controllers/EntityController.php at line 68 – api\modules\widget\controllers\EntityController::getRegionData(['region_name' => null, 'slug' => null])
    62636465666768697071727374
                $offset = $this->findOffset('region_sell');
                if (!$offset) {
                    $offset = SeoRegion::calcOffsetRegionType('sell', $this->page);
                    $this->setOffset('region_sell', $offset);
                }
                $region_sale = SeoRegion::getRegionTypeByPage('sell', $offset);
                $region_sale = $this->getRegionData($region_sale);
                $region_sale['boat_count'] = ceil($region_sale['boat_count'] / 100) * 100;
                $list[] = [
                    'url' => $region_sale['url'],
                    'photo' => ThumbHelper::getThumb('seo', $region_sale['photo'], [
                        't' => [
                            'w' => 225,
    
  • 4. api\modules\widget\controllers\EntityController::actionIndex()
  • 5. in /raid/1/www/2yachts/vendor/yiisoft/yii2/base/InlineAction.php at line 57 – call_user_func_array([api\modules\widget\controllers\EntityController, 'actionIndex'], [])
    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);
        }
    }
    
  • 6. in /raid/1/www/2yachts/vendor/yiisoft/yii2/base/Controller.php at line 181 yii\base\InlineAction::runWithParams(['/api/widget/entity' => '', 'direction' => 'horizontal', 'lang' => 'en', 'page' => '589bbb2f6c5e8edc86db9337df744b54'])
    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 */
    
  • 7. in /raid/1/www/2yachts/vendor/yiisoft/yii2/base/Module.php at line 534 yii\base\Controller::runAction('', ['/api/widget/entity' => '', 'direction' => 'horizontal', 'lang' => 'en', 'page' => '589bbb2f6c5e8edc86db9337df744b54'])
    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;
            }
    
  • 8. in /raid/1/www/2yachts/vendor/yiisoft/yii2/web/Application.php at line 104 yii\base\Module::runAction('widget/entity', ['/api/widget/entity' => '', 'direction' => 'horizontal', 'lang' => 'en', 'page' => '589bbb2f6c5e8edc86db9337df744b54'])
    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) {
    
  • 9. in /raid/1/www/2yachts/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();
    
  • 10. in /raid/1/www/2yachts/public_html/api/index.php at line 20 yii\base\Application::run()
    14151617181920
        require __DIR__ . '/../../common/config/main.php',
        require __DIR__ . '/../../common/config/main-local.php',
        require __DIR__ . '/../../api/config/main.php',
        require __DIR__ . '/../../api/config/main-local.php'
    );
     
    (new yii\web\Application($config))->run();
    
$_GET = [
    '/api/widget/entity' => '',
    'direction' => 'horizontal',
    'lang' => 'en',
    'page' => '589bbb2f6c5e8edc86db9337df744b54',
];