Current Tours

Terms And Conditions

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

PHP Warningyii\base\ErrorException

Invalid argument supplied for foreach()

  • 1. in /mnt/www-shared/mydata.bubbleup.com/frontend/components/FrontendSiteManager.php at line 52
    43444546474849505152535455565758596061
                            }
     
        protected function getSiteModelUncached($domain, $path = [])
        {
        	$siteModel = null;
     
    		// First trying to find with path
    		$needle = $domain;
     
    		foreach ($path as $pathItem) {
    			$needle .= '/' . $pathItem;
     
    			if ($siteModel = Site::findByDomain($domain . '/' . $pathItem)) {
    				break;
    			}
    		}
     
    		if ($siteModel) {
    			return $siteModel;
                    
  • 2. in /mnt/www-shared/mydata.bubbleup.com/frontend/components/FrontendSiteManager.php at line 52 yii\base\ErrorHandler::handleError(2, 'Invalid argument supplied for fo...', '/mnt/www-shared/mydata.bubbleup....', 52, ...)
    46474849505152535455565758
                            {
        	$siteModel = null;
     
    		// First trying to find with path
    		$needle = $domain;
     
    		foreach ($path as $pathItem) {
    			$needle .= '/' . $pathItem;
     
    			if ($siteModel = Site::findByDomain($domain . '/' . $pathItem)) {
    				break;
    			}
    		}
                    
  • 3. in /mnt/www-shared/mydata.bubbleup.com/frontend/components/FrontendSiteManager.php at line 37 – frontend\components\FrontendSiteManager::getSiteModelUncached('www.vipnation.com', '')
    31323334353637383940414243
                            {
            $domain = $this->getDomainParameter();
            $path	= $this->getPathParameter();
     
            if($domain) {
                return Yii::$app->cache->getOrSet('GET_SITE_MODEL_' . $domain, function() use ($domain, $path) {
                    return $this->getSiteModelUncached($domain, $path);
                }, 300);
            } else {
                return parent::getSiteModel();
            }
     
        }
                    
  • 4. frontend\components\FrontendSiteManager::frontend\components\{closure}(common\components\RedisCache)
  • 5. in /mnt/www-shared/mydata.bubbleup.com/vendor/yiisoft/yii2/caching/Cache.php at line 575 – call_user_func(Closure, common\components\RedisCache)
    569570571572573574575576577578579580581
                            public function getOrSet($key, $callable, $duration = null, $dependency = null)
        {
            if (($value = $this->get($key)) !== false) {
                return $value;
            }
     
            $value = call_user_func($callable, $this);
            if (!$this->set($key, $value, $duration, $dependency)) {
                Yii::warning('Failed to set cache value for key ' . json_encode($key), __METHOD__);
            }
     
            return $value;
        }
                    
  • 6. in /mnt/www-shared/mydata.bubbleup.com/frontend/components/FrontendSiteManager.php at line 38 yii\caching\Cache::getOrSet('GET_SITE_MODEL_www.vipnation.com', Closure, 300)
    32333435363738394041424344
                                $domain = $this->getDomainParameter();
            $path	= $this->getPathParameter();
     
            if($domain) {
                return Yii::$app->cache->getOrSet('GET_SITE_MODEL_' . $domain, function() use ($domain, $path) {
                    return $this->getSiteModelUncached($domain, $path);
                }, 300);
            } else {
                return parent::getSiteModel();
            }
     
        }
     
                    
  • 7. in /mnt/www-shared/mydata.bubbleup.com/vendor/bubbleup/connect/common/components/BaseSiteManager.php at line 50 – frontend\components\FrontendSiteManager::getSiteModel()
    44454647484950515253545556
                                $reflection = new ReflectionClass($this->siteModelClass);
     
            if (!$reflection->implementsInterface('common\interfaces\SiteInterface')) {
                throw new Exception($this->siteModelClass . " doesn't implement \\common\\interfaces\\SiteInterface");
            }
     
            $this->siteModel = $this->getSiteModel();
        }
     
        /**
         * Returns current site scope.
         * @return array
         */
                    
  • 8. in /mnt/www-shared/mydata.bubbleup.com/vendor/yiisoft/yii2/base/BaseObject.php at line 109 – connect\common\components\BaseSiteManager::init()
    103104105106107108109110111112113114115
                             */
        public function __construct($config = [])
        {
            if (!empty($config)) {
                Yii::configure($this, $config);
            }
            $this->init();
        }
     
        /**
         * Initializes the object.
         * This method is invoked at the end of the constructor after the object is initialized with the
         * given configuration.
                    
  • 10. in /mnt/www-shared/mydata.bubbleup.com/vendor/yiisoft/yii2/di/Container.php at line 375 – ReflectionClass::newInstanceArgs([[]])
    369370371372373374375376377378379380381
                         
            $dependencies = $this->resolveDependencies($dependencies, $reflection);
            if (!$reflection->isInstantiable()) {
                throw new NotInstantiableException($reflection->name);
            }
            if (empty($config)) {
                return $reflection->newInstanceArgs($dependencies);
            }
     
            $config = $this->resolveDependencies($config);
     
            if (!empty($dependencies) && $reflection->implementsInterface('yii\base\Configurable')) {
                // set $config as the last parameter (existing one will be overwritten)
                    
  • 11. in /mnt/www-shared/mydata.bubbleup.com/vendor/yiisoft/yii2/di/Container.php at line 156 yii\di\Container::build('frontend\components\FrontendSite...', [], [])
    150151152153154155156157158159160161162
                            public function get($class, $params = [], $config = [])
        {
            if (isset($this->_singletons[$class])) {
                // singleton
                return $this->_singletons[$class];
            } elseif (!isset($this->_definitions[$class])) {
                return $this->build($class, $params, $config);
            }
     
            $definition = $this->_definitions[$class];
     
            if (is_callable($definition, true)) {
                $params = $this->resolveDependencies($this->mergeParams($class, $params));
                    
  • 12. in /mnt/www-shared/mydata.bubbleup.com/vendor/yiisoft/yii2/BaseYii.php at line 349 yii\di\Container::get('frontend\components\FrontendSite...', [], [])
    343344345346347348349350351352353354355
                            {
            if (is_string($type)) {
                return static::$container->get($type, $params);
            } elseif (is_array($type) && isset($type['class'])) {
                $class = $type['class'];
                unset($type['class']);
                return static::$container->get($class, $params, $type);
            } elseif (is_callable($type, true)) {
                return static::$container->invoke($type, $params);
            } elseif (is_array($type)) {
                throw new InvalidConfigException('Object configuration must be an array containing a "class" element.');
            }
     
                    
  • 13. in /mnt/www-shared/mydata.bubbleup.com/vendor/yiisoft/yii2/di/ServiceLocator.php at line 137 yii\BaseYii::createObject([])
    131132133134135136137138139140141142143
                                if (isset($this->_definitions[$id])) {
                $definition = $this->_definitions[$id];
                if (is_object($definition) && !$definition instanceof Closure) {
                    return $this->_components[$id] = $definition;
                }
     
                return $this->_components[$id] = Yii::createObject($definition);
            } elseif ($throwException) {
                throw new InvalidConfigException("Unknown component ID: $id");
            }
     
            return null;
        }
                    
  • 14. in /mnt/www-shared/mydata.bubbleup.com/vendor/yiisoft/yii2/base/Module.php at line 742 yii\di\ServiceLocator::get('siteManager', true)
    736737738739740741742743744745746747748
                             * Since version 2.0.13, if a component isn't defined in the module, it will be looked up in the parent module.
         * The parent module may be the application.
         */
        public function get($id, $throwException = true)
        {
            if (!isset($this->module)) {
                return parent::get($id, $throwException);
            }
     
            $component = parent::get($id, false);
            if ($component === null) {
                $component = $this->module->get($id, $throwException);
            }
                    
  • 15. in /mnt/www-shared/mydata.bubbleup.com/vendor/yiisoft/yii2/di/ServiceLocator.php at line 74 yii\base\Module::get('siteManager')
    68697071727374757677787980
                             * @param string $name component or property name
         * @return mixed the named property value
         */
        public function __get($name)
        {
            if ($this->has($name)) {
                return $this->get($name);
            }
     
            return parent::__get($name);
        }
     
        /**
                    
  • 16. in /mnt/www-shared/mydata.bubbleup.com/vendor/bubbleup/connect/common/components/BaseConfigManager.php at line 17 yii\di\ServiceLocator::__get('siteManager')
    111213141516171819
                             * @inheritdoc
         */
        public function init()
        {
            parent::init();
     
            Config::loadParams(Yii::$app->siteManager->siteModel);
        }
    }                
  • 17. in /mnt/www-shared/mydata.bubbleup.com/vendor/yiisoft/yii2/base/BaseObject.php at line 109 – connect\common\components\BaseConfigManager::init()
    103104105106107108109110111112113114115
                             */
        public function __construct($config = [])
        {
            if (!empty($config)) {
                Yii::configure($this, $config);
            }
            $this->init();
        }
     
        /**
         * Initializes the object.
         * This method is invoked at the end of the constructor after the object is initialized with the
         * given configuration.
                    
  • 19. in /mnt/www-shared/mydata.bubbleup.com/vendor/yiisoft/yii2/di/Container.php at line 375 – ReflectionClass::newInstanceArgs([[]])
    369370371372373374375376377378379380381
                         
            $dependencies = $this->resolveDependencies($dependencies, $reflection);
            if (!$reflection->isInstantiable()) {
                throw new NotInstantiableException($reflection->name);
            }
            if (empty($config)) {
                return $reflection->newInstanceArgs($dependencies);
            }
     
            $config = $this->resolveDependencies($config);
     
            if (!empty($dependencies) && $reflection->implementsInterface('yii\base\Configurable')) {
                // set $config as the last parameter (existing one will be overwritten)
                    
  • 20. in /mnt/www-shared/mydata.bubbleup.com/vendor/yiisoft/yii2/di/Container.php at line 156 yii\di\Container::build('common\components\ConfigManager', [], [])
    150151152153154155156157158159160161162
                            public function get($class, $params = [], $config = [])
        {
            if (isset($this->_singletons[$class])) {
                // singleton
                return $this->_singletons[$class];
            } elseif (!isset($this->_definitions[$class])) {
                return $this->build($class, $params, $config);
            }
     
            $definition = $this->_definitions[$class];
     
            if (is_callable($definition, true)) {
                $params = $this->resolveDependencies($this->mergeParams($class, $params));
                    
  • 21. in /mnt/www-shared/mydata.bubbleup.com/vendor/yiisoft/yii2/BaseYii.php at line 349 yii\di\Container::get('common\components\ConfigManager', [], [])
    343344345346347348349350351352353354355
                            {
            if (is_string($type)) {
                return static::$container->get($type, $params);
            } elseif (is_array($type) && isset($type['class'])) {
                $class = $type['class'];
                unset($type['class']);
                return static::$container->get($class, $params, $type);
            } elseif (is_callable($type, true)) {
                return static::$container->invoke($type, $params);
            } elseif (is_array($type)) {
                throw new InvalidConfigException('Object configuration must be an array containing a "class" element.');
            }
     
                    
  • 22. in /mnt/www-shared/mydata.bubbleup.com/vendor/yiisoft/yii2/di/ServiceLocator.php at line 137 yii\BaseYii::createObject([])
    131132133134135136137138139140141142143
                                if (isset($this->_definitions[$id])) {
                $definition = $this->_definitions[$id];
                if (is_object($definition) && !$definition instanceof Closure) {
                    return $this->_components[$id] = $definition;
                }
     
                return $this->_components[$id] = Yii::createObject($definition);
            } elseif ($throwException) {
                throw new InvalidConfigException("Unknown component ID: $id");
            }
     
            return null;
        }
                    
  • 23. in /mnt/www-shared/mydata.bubbleup.com/vendor/yiisoft/yii2/base/Module.php at line 742 yii\di\ServiceLocator::get('configManager', true)
    736737738739740741742743744745746747748
                             * Since version 2.0.13, if a component isn't defined in the module, it will be looked up in the parent module.
         * The parent module may be the application.
         */
        public function get($id, $throwException = true)
        {
            if (!isset($this->module)) {
                return parent::get($id, $throwException);
            }
     
            $component = parent::get($id, false);
            if ($component === null) {
                $component = $this->module->get($id, $throwException);
            }
                    
  • 24. in /mnt/www-shared/mydata.bubbleup.com/vendor/yiisoft/yii2/base/Application.php at line 313 yii\base\Module::get('configManager')
    307308309310311312313314315316317318319
                                        Yii::debug('Bootstrap with Closure', __METHOD__);
                    if (!$component = call_user_func($mixed, $this)) {
                        continue;
                    }
                } elseif (is_string($mixed)) {
                    if ($this->has($mixed)) {
                        $component = $this->get($mixed);
                    } elseif ($this->hasModule($mixed)) {
                        $component = $this->getModule($mixed);
                    } elseif (strpos($mixed, '\\') === false) {
                        throw new InvalidConfigException("Unknown bootstrapping component ID: $mixed");
                    }
                }
                    
  • 25. in /mnt/www-shared/mydata.bubbleup.com/vendor/yiisoft/yii2/web/Application.php at line 69 yii\base\Application::bootstrap()
    63646566676869707172737475
                            protected function bootstrap()
        {
            $request = $this->getRequest();
            Yii::setAlias('@webroot', dirname($request->getScriptFile()));
            Yii::setAlias('@web', $request->getBaseUrl());
     
            parent::bootstrap();
        }
     
        /**
         * Handles the specified request.
         * @param Request $request the request to be handled
         * @return Response the resulting response
                    
  • 26. in /mnt/www-shared/mydata.bubbleup.com/vendor/yiisoft/yii2/base/Application.php at line 273 yii\web\Application::bootstrap()
    267268269270271272273274275276277278279
                            /**
         * {@inheritdoc}
         */
        public function init()
        {
            $this->state = self::STATE_INIT;
            $this->bootstrap();
        }
     
        /**
         * Initializes extensions and executes bootstrap components.
         * This method is called by [[init()]] after the application has been fully configured.
         * If you override this method, make sure you also call the parent implementation.
                    
  • 27. in /mnt/www-shared/mydata.bubbleup.com/vendor/bubbleup/connect/common/components/BaseConnectApplication.php at line 83 yii\base\Application::init()
    7778798081828384858687
                         
        /**
         * @inheritdoc
         */
        public function init()
        {
            parent::init();
     
            $this->triggerManager->subscribeAllAssignedHandlers();
        }
    }
                    
  • 28. in /mnt/www-shared/mydata.bubbleup.com/vendor/yiisoft/yii2/base/BaseObject.php at line 109 – connect\common\components\BaseConnectApplication::init()
    103104105106107108109110111112113114115
                             */
        public function __construct($config = [])
        {
            if (!empty($config)) {
                Yii::configure($this, $config);
            }
            $this->init();
        }
     
        /**
         * Initializes the object.
         * This method is invoked at the end of the constructor after the object is initialized with the
         * given configuration.
                    
  • 29. in /mnt/www-shared/mydata.bubbleup.com/vendor/yiisoft/yii2/base/Application.php at line 206 yii\base\BaseObject::__construct(['name' => 'Connect application base name', 'bootstrap' => ['log', 'configManager', 'siteManager', 'themeManager', ...], 'components' => ['db' => ['class' => '\common\components\DbConnection', 'dsn' => 'mysql:host=prod.7.db.bubbleup.cl...', 'username' => 'mydata', 'password' => '0NHjU5tskpxK', ...], 'dbSequence' => ['class' => '\common\components\DbConnection', 'dsn' => 'mysql:host=prod.7.db.bubbleup.cl...', 'username' => 'mydata', 'password' => '0NHjU5tskpxK', ...], 'request' => ['class' => '\common\components\Request', 'csrfCookie' => ['httpOnly' => true, 'secure' => true], 'baseUrl' => '', 'cookieValidationKey' => '-Izdvyd6ev6DuZdcfWf6euhZzo_-Z0lI'], 'response' => ['class' => '\common\components\Response'], ...], 'homeUrl' => '/', ...])
    200201202203204205206207208209210211212
                                $this->state = self::STATE_BEGIN;
     
            $this->preInit($config);
     
            $this->registerErrorHandler($config);
     
            Component::__construct($config);
        }
     
        /**
         * Pre-initializes the application.
         * This method is called at the beginning of the application constructor.
         * It initializes several important application properties.
                    
  • 30. in /mnt/www-shared/mydata.bubbleup.com/frontend/web/index.php at line 21 yii\base\Application::__construct(['name' => 'Connect application base name', 'bootstrap' => ['log', 'configManager', 'siteManager', 'themeManager', ...], 'components' => ['db' => ['class' => '\common\components\DbConnection', 'dsn' => 'mysql:host=prod.7.db.bubbleup.cl...', 'username' => 'mydata', 'password' => '0NHjU5tskpxK', ...], 'dbSequence' => ['class' => '\common\components\DbConnection', 'dsn' => 'mysql:host=prod.7.db.bubbleup.cl...', 'username' => 'mydata', 'password' => '0NHjU5tskpxK', ...], 'request' => ['class' => '\common\components\Request', 'csrfCookie' => ['httpOnly' => true, 'secure' => true], 'baseUrl' => '', 'cookieValidationKey' => '-Izdvyd6ev6DuZdcfWf6euhZzo_-Z0lI'], 'response' => ['class' => '\common\components\Response'], ...], 'homeUrl' => '/', ...])
    151617181920212223
                         
    (new \frontend\components\FrontendApplication(
        \common\helpers\ArrayHelper::mergeOverwrite(
            require(__DIR__ . '/../../common/config/main.php'),
            require(__DIR__ . '/../../common/config/main-local.php'),
            require(__DIR__ . '/../config/main.php'),
            require(__DIR__ . '/../config/main-local.php')
        )
    ))->run();
                    
$_GET = [
    'url' => 'https://www.vipnation.com',
];

© 2003 - 2020 VIP NATION, Inc. A Live Nation Company. All text, images, graphics and other materials on this website are subject to the copyright and other intellectual property rights of VIP Nation. or their respective owners. These materials may not be reproduced, distributed, modified or reposted to other websites without the express written permission of VIP Nation. The VIP Nation name and Logo are service marks of VIP Nation. All Rights Reserved.

Your package(s) will remain available to purchase for:
00:00