Try the Demo

Magento

eCommerce Software for Online Growth

Magento Forum

Our new hosted solution for small & emerging businesses
   
Cannot connect to Magento Connect. Error Session Error
 
dazzercommerce
Jr. Member
 
Total Posts:  10
Joined:  2009-04-08
 

I couldnt find a similar problem to this anywhere so I am assuming it is something specific to my server.

When I click on “System > Magento Connect > Magento connect manager” from the admin menu I receive the following error. I have my php.ini file with the session.save_path = /tmp. I had to set this during setup or the setup feature wouldn’t work. Not sure if this would cause problems or not. I might try removing the line from php.ini temporarily.

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/clot/public_html/downloader/pearlib/php/PEAR.php:2152) in /home/clot/public_html/app/code/core/Mage/Core/Model/Session/Abstract/Varien.php on line 94
Trace:
#0 [internal function]: mageCoreErrorHandler(2, ‘session_start()...’, ‘/home/clot/publ...’, 94, Array)
#1 /home/clot/public_html/app/code/core/Mage/Core/Model/Session/Abstract/Varien.php(94): session_start()
#2 /home/clot/public_html/app/code/core/Mage/Core/Model/Session/Abstract/Varien.php(149): Mage_Core_Model_Session_Abstract_Varien->start(’adminhtml’)
#3 /home/clot/public_html/app/code/core/Mage/Core/Model/Session/Abstract.php(53): Mage_Core_Model_Session_Abstract_Varien->init(’core’, ‘adminhtml’)
#4 /home/clot/public_html/app/code/core/Mage/Core/Model/Session.php(39): Mage_Core_Model_Session_Abstract->init(’core’, ‘adminhtml’)
#5 /home/clot/public_html/app/code/core/Mage/Core/Model/Config.php(966): Mage_Core_Model_Session->__construct(Array)
#6 /home/clot/public_html/app/Mage.php(317): Mage_Core_Model_Config->getModelInstance(’core/session’, Array)
#7 /home/clot/public_html/app/Mage.php(331): Mage::getModel(’core/session’, Array)
#8 /home/clot/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(401): Mage::getSingleton(’core/session’, Array)
#9 /home/clot/public_html/app/code/core/Mage/Adminhtml/Controller/Action.php(130): Mage_Core_Controller_Varien_Action->preDispatch()
#10 /home/clot/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(356): Mage_Adminhtml_Controller_Action->preDispatch()
#11 /home/clot/public_html/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(247): Mage_Core_Controller_Varien_Action->dispatch(’index’)
#12 /home/clot/public_html/app/code/core/Mage/Core/Controller/Varien/Front.php(158): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#13 /home/clot/public_html/app/Mage.php(457): Mage_Core_Controller_Varien_Front->dispatch()
#14 /home/clot/public_html/index.php(52): Mage::run()
#15 {main}

 
Magento Community Magento Community
Magento Community
Magento Community
 
dazzercommerce
Jr. Member
 
Total Posts:  10
Joined:  2009-04-08
 

Ok spoke too soon. I have now fixed this by adding the following from the php.ini.sample file

; This file is for CGI/FastCGI installations.
; Try copying it to php5.ini, if it doesn’t work

; disable magic quotes for php request vars

magic_quotes_gpc = off

; disable automatic session start
; before autoload was initialized

flag session.auto_start = off

; enable resulting html compression

zlib.output_compression = on

; disable user agent verification to not break multiple image upload

suhosin.session.cryptua = off

; turn off compatibility with PHP4 when dealing with objects

zend.ze1_compatibility_mode = off

; PHP for some reason ignores this setting in system php.ini
; and disables mcrypt if this line is missing in local php.ini

extension=mcrypt.so

All is working now

 
Magento Community Magento Community
Magento Community
Magento Community
 
dazzercommerce
Jr. Member
 
Total Posts:  10
Joined:  2009-04-08
 

Also I have just done a bit of trial and error and found that it was the following line that i needed. The others dont seem to be important although Ill keep them anyway.

zlib.output_compression = on

Well I just answered my own question, something you don’t see everyday.

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top
 
© Copyright 2012 Magento Inc.
Privacy Policy|Terms of Service
Magento Community Count
701238 users|898 users currently online|497314 forum posts