私のmagento Webサイトのシステムログでいくつかの警告が発生しています。そのうちのいくつかは解決しましたが、いくつかはここにもありませんでした。
システムログには次のように書かれています:
2012-08-10T13:09:18+00:00 ERR (3): Warning: array_merge(): Argument #1 is not an array in /var/www/sites/mysite.com/app/code/core/Mage/Core/Model/App.php on line 395
phpfile では、これは行 395 が一番上にある部分です
$options = array_merge($options, $cacheInitOptions);
$this->_cache = Mage::getModel('core/cache', $options);
$this->_isCacheLocked = false;
return $this;
2012-08-10T13:09:18+00:00 ERR (3): Recoverable Error: Argument 1 passed to Mage_Core_Model_Cache::__construct() must be an array, null given, called in /var/www/sites/mysite.com/app/code/core/Mage/Core/Model/Config.php on line 1350 and defined in /var/www/sites/mysite.com/app/code/core/Mage/Core/Model/Cache.php on line 105
Config php.
$className = $this->getModelClassName($modelClass);
if (class_exists($className)) {
Varien_Profiler::start('CORE::create_object_of::'.$className);
1350 $obj = new $className($constructArguments);
Varien_Profiler::stop('CORE::create_object_of::'.$className);
return $obj;
Cache.php line 105= public function __construct(array $options = array()
2012-08-10T13:09:18+00:00 ERR (3): Recoverable Error: Argument 1 passed to Mage_Core_Model_Cache::_getBackendOptions() must be an array, null given, called in /var/www/sites/mysite.com/app/code/core/Mage/Core/Model/Cache.php on line 119 and defined in /var/www/sites/mysite.com/app/code/core/Mage/Core/Model/Cache.php on line 141
cache.php
line 119 $backend = $this->_getBackendOptions($options);
line 141 protected function _getBackendOptions(array $cacheOptions)
2012-08-10T13:09:18+00:00 ERR (3): Recoverable Error: Argument 1 passed to Mage_Core_Model_Cache::_getFrontendOptions() must be an array, null given, called in /var/www/sites/mysite.com/app/code/core/Mage/Core/Model/Cache.php on line 120 and defined in /var/www/sites/mysite.com/app/code/core/Mage/Core/Model/Cache.php on line 288
cache.php
line 120 $frontend = $this->_getFrontendOptions($options);
line 288 protected function _getFrontendOptions(array $cacheOptions)