Pairs

  • ltc
  • eth
  • eos
  • xrp
  • bch
/
  • btc
  • eth
  • usdt

Markets

  • poloniex poloniex
  • binance_futures binance_futures
  • coinbase coinbase
  • upbit upbit
  • binance binance
  • bitfinex bitfinex
  • huobi huobi
  • zb zb
  • yobit yobit
  • cryptopia cryptopia
poloniex poloniex
Price ()
Amount ()
binance_futures binance_futures
Price ()
Amount ()
coinbase coinbase
Price ()
Amount ()
upbit upbit
Price ()
Amount ()
binance binance
Price ()
Amount ()
bitfinex bitfinex
Price ()
Amount ()
huobi huobi
Price ()
Amount ()
zb zb
Price ()
Amount ()
yobit yobit
Price ()
Amount ()
cryptopia cryptopia
Price ()
Amount ()

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 43 – api\modules\widget\controllers\EntityController::getRegionData(['region_name' => null, 'slug' => null])
    37383940414243444546474849
                $offset = $this->findOffset('region_rent');
                if (!$offset) {
                    $offset = SeoRegion::calcOffsetRegionType('rent', $this->page);
                    $this->setOffset('region_rent', $offset);
                }
                $region_charter = SeoRegion::getRegionTypeByPage('rent', $offset);
                $region_charter = $this->getRegionData($region_charter);
                $region_charter['boat_count'] = ceil($region_charter['boat_count'] / 100) * 100;
                $list[] = [
                    'url' => $region_charter['url'],
                    'photo' => ThumbHelper::getThumb('seo', $region_charter['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' => '816822dd809665631970494d876eab31'])
    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' => '816822dd809665631970494d876eab31'])
    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' => '816822dd809665631970494d876eab31'])
    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' => '816822dd809665631970494d876eab31',
];