We are using the EcomDev package to test our Magento store, and one of the default tests is kicking up a fuss:
Running phpunit returns:
5) EcomDev_PHPUnitTest_Test_Helper_Customer::testCustomerSession with data set "jane_doe" (2)
Exception: Warning: session_module_name(): A session is active. You cannot change the session module's ini settings at this time in /var/www/htdocs/app/code/core/Mage/Core/Model/Session/Abstract/Varien.php on line 73
Fatal error: Uncaught exception 'Exception' with message 'Warning: Unknown: Failed to write session data (memcache). Please verify that the current setting of session.save_path is correct (tcp://tcp://127.0.0.1:11211?persistent=1&weight=2&timeout=10&retry_interval=10)
So far I established that:
- Memcache seems to be on, and on the correct port
- The same problem occurs when I set it up to use external (AWS) Memcache service
- Same thing happens if I set the session to be handled by filesystem
The config for magento's session is:
<session_save><![CDATA[memcache]]></session_save>
<session_save_path><![CDATA[tcp://127.0.0.1:11211?persistent=1&weight;=2&timeout;=10&retry;_interval=10]]></session_save_path>
<session_cache_limiter><![CDATA[private]]></session_cache_limiter>
<lifetime>31536000</lifetime>
And php5-fpm php.ini has
session.save_handler = memcache
session.save_path = "tcp://127.0.0.1:11211?persistent=1&weight;=2&timeout;=10&retry;_interval=10"