简体   繁体   English

找不到命名的PHP会话模块(memcache)

[英]Cannot find named PHP session module (memcache)

I update from Magento 1.6.2 to 1.8.1 and now I get this on my page: 我从Magento 1.6.2更新到1.8.1,现在在页面上看到了:

    Warning: session_module_name(): Cannot find named PHP session module (memcache)  in /app/code/core/Mage/Core/Model/Session/Abstract/Varien.php on line 73
    #0 [internal function]: mageCoreErrorHandler(2, 'session_module_...', '/var/www/vhosts...', 73, Array)
    #1 /app/code/core/Mage/Core/Model/Session/Abstract/Varien.php(73): session_module_name('memcache')
    #2 /app/code/core/Mage/Core/Model/Session/Abstract/Varien.php(168): Mage_Core_Model_Session_Abstract_Varien->start('adminhtml')
     #3 /app/code/core/Mage/Core/Model/Session/Abstract.php(84): Mage_Core_Model_Session_Abstract_Varien->init('core', 'adminhtml')
     #4 /app/code/core/Mage/Core/Model/Session.php(42): Mage_Core_Model_Session_Abstract->init('core', 'adminhtml')
    #5 /app/code/core/Mage/Core/Model/Config.php(1353): Mage_Core_Model_Session->__construct(Array)
    #6 /app/Mage.php(463): Mage_Core_Model_Config->getModelInstance('core/session', Array)
    #7 /app/Mage.php(477): Mage::getModel('core/session', Array)
    #8 /app/code/core/Mage/Core/Controller/Varien/Action.php(493): Mage::getSingleton('core/session', Array)
    #9 /app/code/core/Mage/Adminhtml/Controller/Action.php(160): Mage_Core_Controller_Varien_Action->preDispatch()
    #10 /app/code/core/Mage/Core/Controller/Varien/Action.php(407): Mage_Adminhtml_Controller_Action->preDispatch()
    #11 /app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(250): Mage_Core_Controller_Varien_Action->dispatch('index')
    #12 /app/code/core/Mage/Core/Controller/Varien/Front.php(172): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
    #13 /app/code/local/Mage/Core/Model/App.php(349): Mage_Core_Controller_Varien_Front->dispatch()
    #14 /app/Mage.php(684): Mage_Core_Model_App->run(Array)
    #15 index.php(87): Mage::run('', 'store')
    #16 {main}

I have checked everything I could find on the net, but can't seem to solve this one? 我已经检查了所有可以在网上找到的内容,但似乎无法解决? I don't know what session module it is looking for? 我不知道它在寻找什么会话模块? PHP? PHP的? memcache? 内存缓存? I have been locked out for 3 days now!!! 我已经被封锁了三天!!!

It looks like your app/etc/local.xml file is configured to use the PHP memcache session storage handler. 看来您的app/etc/local.xml文件已配置为使用PHP memcache会话存储处理程序。 When Magento reads this configuration value in and tries to set the session handler with the session_module_name function it finds the version of PHP you're using doesn't have the memcache session hander installed and/or enabled. 当Magento读取此配置值并尝试使用session_module_name函数设置会话处理程序时,它将发现您使用的PHP版本没有安装和/或启用memcache会话处理程序。

You'll need to disable this configuration value in your app/etc/local.xml file and use the standard file/database session storage method, or you'll need to install/enable the session handler on the server you've installed Magento on. 您需要在app/etc/local.xml文件中禁用此配置值,并使用标准文件/数据库会话存储方法,或者需要在已安装Magento的服务器上安装/启用会话处理程序上。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM