/home/chunice/corporate/prod_01/craft/app/services/ConfigService.php(763)
751 * 752 * @return null 753 */ 754 private function _mergeConfigs(&$baseConfig, $customConfig) 755 { 756 // Is this a multi-environment config? 757 if (array_key_exists('*', $customConfig)) 758 { 759 $mergedCustomConfig = array(); 760 761 foreach ($customConfig as $env => $envConfig) 762 { 763 if ($env == '*' || strpos(CRAFT_ENVIRONMENT, $env) !== false) 764 { 765 $mergedCustomConfig = \CMap::mergeArray($mergedCustomConfig, $envConfig); 766 } 767 } 768 769 $customConfig = $mergedCustomConfig; 770 } 771 772 $baseConfig = array_merge($baseConfig, $customConfig); 773 } 774 }
#0 |
+
–
/home/chunice/corporate/prod_01/craft/app/etc/web/WebApp.php(694): CApplication->handleError(2, "strpos(): Empty needle", "/home/chunice/corporate/prod_01/craft/app/services/ConfigService...", 763) 689 if (version_compare(PHP_VERSION, '7.1', '>=') && strpos($message, 'Narrowing occurred during type inference. Please file a bug report') !== false) 690 { 691 return; 692 } 693 694 parent::handleError($code, $message, $file, $line); 695 } 696 697 /** 698 * Raised right AFTER the application processes the request. 699 * |
#1 |
unknown(0): Craft\WebApp->handleError(2, "strpos(): Empty needle", "/home/chunice/corporate/prod_01/craft/app/services/ConfigService...", 763, ...)
|
#2 |
+
–
/home/chunice/corporate/prod_01/craft/app/services/ConfigService.php(763): strpos("54.37.69.157", "") 758 { 759 $mergedCustomConfig = array(); 760 761 foreach ($customConfig as $env => $envConfig) 762 { 763 if ($env == '*' || strpos(CRAFT_ENVIRONMENT, $env) !== false) 764 { 765 $mergedCustomConfig = \CMap::mergeArray($mergedCustomConfig, $envConfig); 766 } 767 } 768 |
#3 |
+
–
/home/chunice/corporate/prod_01/craft/app/services/ConfigService.php(698): Craft\ConfigService->_mergeConfigs(array("actionTrigger" => "actions", "activateAccountSuccessPath" => "", "addTrailingSlashesToUrls" => false, "allowAutoUpdates" => true, ...), array("*" => array("cacheMethod" => "redis", "omitScriptNameInUrls" => true, "limitAutoSlugsToAscii" => true, "convertFilenamesToAscii" => true, ...), "dev" => array("testToEmailAddress" => "test@shakebiz.fr"), "" => array("siteUrl" => array("fr" => null, "en" => "en/")), "www" => array("devMode" => null, "aggrJs" => false, "aggrCss" => false, "jsDebug" => false, ...))) 693 // Does craft/config/general.php exist? (It used to be called blocks.php so maybe not.) 694 if (file_exists(CRAFT_CONFIG_PATH.'general.php')) 695 { 696 if (is_array($customConfig = @include(CRAFT_CONFIG_PATH.'general.php'))) 697 { 698 $this->_mergeConfigs($defaultsConfig, $customConfig); 699 } 700 } 701 else if (file_exists(CRAFT_CONFIG_PATH.'blocks.php')) 702 { 703 // Originally blocks.php defined a $blocksConfig variable, and then later returned an array directly. |
#4 |
+
–
/home/chunice/corporate/prod_01/craft/app/services/ConfigService.php(78): Craft\ConfigService->_loadConfigFile("general") 73 { 74 $lowercaseFile = StringHelper::toLowerCase($file); 75 76 if (!isset($this->_loadedConfigFiles[$lowercaseFile])) 77 { 78 $this->_loadConfigFile($file); 79 } 80 81 if ($this->exists($item, $file)) 82 { 83 return $this->_loadedConfigFiles[$lowercaseFile][$item]; |
#5 |
+
–
/home/chunice/corporate/prod_01/craft/app/etc/web/WebApp.php(119): Craft\ConfigService->get("validationKey") 114 115 // Attach our Craft app behavior. 116 $this->attachBehavior('AppBehavior', new AppBehavior()); 117 118 // If there is a custom validationKey set, apply it here. 119 if ($validationKey = $this->config->get('validationKey')) 120 { 121 $this->security->setValidationKey($validationKey); 122 123 // Make sure any instances of Yii's CSecurityManager class are using the custom validation 124 // key as well |
#6 |
+
–
/home/chunice/corporate/prod_01/craft/app/framework/base/CApplication.php(170): Craft\WebApp->init() 165 166 $this->configure($config); 167 $this->attachBehaviors($this->behaviors); 168 $this->preloadComponents(); 169 170 $this->init(); 171 } 172 173 174 /** 175 * Runs the application. |
#7 |
+
–
/home/chunice/corporate/prod_01/craft/app/bootstrap.php(190): CApplication->__construct(array("componentAliases" => array("app.assetsourcetypes.BaseAssetSourceType", "app.assetsourcetypes.GoogleCloudAssetSourceType", "app.assetsourcetypes.LocalAssetSourceType", "app.assetsourcetypes.RackspaceAssetSourceType", ...), "components" => array("db" => array("class" => "Craft\DbConnection"), "config" => array("class" => "Craft\ConfigService"), "i18n" => array("class" => "Craft\LocalizationService"), "formatter" => array("class" => "CFormatter"), ...), "params" => array("adminEmail" => "admin@website.com"), "runtimePath" => "/home/chunice/corporate/prod_01/craft/storage/runtime/", ...)) 185 // Load the full config 186 $config = require CRAFT_APP_PATH.'etc/config/main.php'; 187 188 // Initialize Craft\WebApp this way so it doesn't cause a syntax error on PHP < 5.3 189 $appClass = '\Craft\WebApp'; 190 $app = new $appClass($config); 191 192 return $app; |
#8 |
+
–
/home/chunice/corporate/prod_01/craft/app/index.php(65): require("/home/chunice/corporate/prod_01/craft/app/bootstrap.php") 60 date_default_timezone_set('UTC'); 61 62 // Load and run Craft 63 // ----------------------------------------------------------------------------- 64 65 $app = require 'bootstrap.php'; 66 67 // If there was a max_input_vars error, kill the request before we start processing it with incomplete data 68 if ($lastError && strpos($lastError['message'], 'max_input_vars') !== false) 69 { 70 throw new \Craft\ErrorException($lastError['message']); |
#9 |
+
–
/home/chunice/corporate/prod_01/public/index.php(21): require_once("/home/chunice/corporate/prod_01/craft/app/index.php") 16 } 17 18 exit('Could not find your craft/ folder. Please ensure that <strong><code>$craftPath</code></strong> is set correctly in '.__FILE__); 19 } 20 21 require_once $path; |