美微书签收藏的网页

美微书签和网页 http://www.yincart.com/ 的作者无关,不对其内容负责。美微书签快照谨为网络故障时之索引,不代表被收藏的网页即时页面。
PHP warning

PHP warning

key_exists() [<a href='function.key-exists'>function.key-exists</a>]: The first argument should be either a string or an integer

/data0/htdocs/site-yinhe/yincart.com/frontend/modules/translate/components/Ei18n.php(271)

259      */
260     public function getLanguage()
261     {
262         if ($this->_language !== null)
263             return $this->_language;
264         elseif (Yii::app()->getSession()->contains($this->getId()))
265             $language = Yii::app()->getSession()->get($this->getId());
266         elseif (Yii::app()->request->getParam($this->languageParameter))
267             $language = Yii::app()->request->getParam($this->languageParameter);
268         else
269             $language = Yii::app()->getRequest()->getPreferredLanguage();
270 
271         if (!key_exists($language, $this->languages))
272         {
273             if ($language === Yii::app()->sourceLanguage)
274                 $language = $this->defaultLanguage;
275             elseif (strpos($language, "_") !== false)
276             {
277                 $language = substr($language, 0, 2);
278                 if (!key_exists($language, $this->languages))
279                     $language = $this->defaultLanguage;
280             }
281         }
282         $this->_language = $language;
283 

Stack Trace

#0
+
 /data0/htdocs/site-yinhe/yincart.com/frontend/modules/translate/components/Ei18n.php(271): key_exists(false, array("en" => "English", "de" => "German", "zh_cn" => "Chinese", "en_us" => "America", ...))
266         elseif (Yii::app()->request->getParam($this->languageParameter))
267             $language = Yii::app()->request->getParam($this->languageParameter);
268         else
269             $language = Yii::app()->getRequest()->getPreferredLanguage();
270 
271         if (!key_exists($language, $this->languages))
272         {
273             if ($language === Yii::app()->sourceLanguage)
274                 $language = $this->defaultLanguage;
275             elseif (strpos($language, "_") !== false)
276             {
#1
+
 /data0/htdocs/site-yinhe/yincart.com/frontend/modules/translate/components/Ei18n.php(103): Ei18n->getLanguage()
098 
099         if (empty($this->languageParameter))
100             $this->languageParameter = 'lang';
101 
102         if ($this->autoSetLanguage)
103             $this->setLanguage($this->getLanguage());
104 
105         if (!count($this->languages))
106         {
107             if (($sourceLanguage = Yii::app()->sourceLanguage) !== null)
108                 $this->languages[$sourceLanguage] = $sourceLanguage;
#6
+
 /data0/htdocs/site-yinhe/yincart.com/frontend/www/index.php(37): YiiBase::createApplication("WebApplication", array("basePath" => "/data0/htdocs/site-yinhe/yincart.com/frontend/config/..", "name" => "Yincart@Yii开源商城", "theme" => "default", "params" => array("cache.core" => array("class" => "CDbCache", "connectionID" => "db", "autoCreateCacheTable" => true, "cacheTableName" => "cache"), "cache.content" => array("class" => "CDbCache", "connectionID" => "db", "autoCreateCacheTable" => true, "cacheTableName" => "cache"), "url.rules" => array("page/<key:\w+>" => "page/index", "catalog/<key:\w+>" => "catalog/index", "list/<category_id:\d+>" => "item/index", "item-list-<key:\w+>" => "item/list", ...), "php.exePath" => "/usr/bin/php", ...), ...))
32 $config = require('frontend' . DIRECTORY_SEPARATOR . 'config' . DIRECTORY_SEPARATOR . 'main.php');
33 require_once('common' . DIRECTORY_SEPARATOR . 'components' . DIRECTORY_SEPARATOR . 'WebApplication.php');
34 require_once('common' . DIRECTORY_SEPARATOR . 'lib' . DIRECTORY_SEPARATOR . 'global.php');
35 
36 
37 $app = Yii::createApplication('WebApplication', $config);
38 
39 /* please, uncomment the following if you are using ZF library */
40 /*
41   Yii::import('common.extensions.EZendAutoloader', true);
42 
2013-07-12 06:46:51 nginx Yii Framework/1.1.14-dev