Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

session_save_path nicht korrekt
 
torsten3d
Jr. Member
 
Total Posts:  15
Joined:  2008-08-25
 

Hi,

ich bekomme beim Aufruf des Magento Connect Managers folgende Fehlermeldung:

Warning: realpath() [function.realpath]: open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (/var/www/web1262/html/:/var/www/web1262/phptmp/:/var/www/web1262/files/:/var/www/web1262/atd/:/usr/share/php/) in /var/www/web1262/html/diedaune/downloader/pearlib/php/System.php on line 459

Warning: realpath() [function.realpath]: open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (/var/www/web1262/html/:/var/www/web1262/phptmp/:/var/www/web1262/files/:/var/www/web1262/atd/:/usr/share/php/) in /var/www/web1262/html/diedaune/downloader/pearlib/php/System.php on line 459

Warning: realpath() [function.realpath]: open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (/var/www/web1262/html/:/var/www/web1262/phptmp/:/var/www/web1262/files/:/var/www/web1262/atd/:/usr/share/php/) in /var/www/web1262/html/diedaune/downloader/pearlib/php/System.php on line 459

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /var/www/web1262/html/diedaune/downloader/pearlib/php/System.php:459) in /var/www/web1262/html/diedaune/app/code/core/Mage/Core/Model/Session/Abstract/Varien.php on line 73

#0 /var/www/web1262/html/diedaune/app/code/core/Mage/Core/Model/Session/Abstract/Varien.php(73): mageCoreErrorHandler(2, ‘session_start()...’, ‘/var/www/web126...’, 73, Array)
#1 /var/www/web1262/html/diedaune/app/code/core/Mage/Core/Model/Session/Abstract/Varien.php(105): Mage_Core_Model_Session_Abstract_Varien->start()
#2 /var/www/web1262/html/diedaune/app/code/core/Mage/Core/Model/Session/Abstract.php(37): Mage_Core_Model_Session_Abstract_Varien->init(’adminhtml’)
#3 /var/www/web1262/html/diedaune/app/code/core/Mage/Core/Model/Session.php(33): Mage_Core_Model_Session_Abstract->init(’core’, ‘adminhtml’)
#4 /var/www/web1262/html/diedaune/app/code/core/Mage/Core/Model/Config.php(715): Mage_Core_Model_Session->__construct(’core’, ‘adminhtml’)
#5 /var/www/web1262/html/diedaune/app/Mage.php(287): Mage_Core_Model_Config->getModelInstance(Array)
#6 /var/www/web1262/html/diedaune/app/Mage.php(301): Mage::getModel(’core/session’, Array)
#7 /var/www/web1262/html/diedaune/app/code/core/Mage/Core/Controller/Varien/Action.php(374): Mage::getSingleton(’core/session’, Array)
#8 /var/www/web1262/html/diedaune/app/code/core/Mage/Adminhtml/Controller/Action.php(117): Mage_Core_Controller_Varien_Action->preDispatch(’core/session’, Array)
#9 /var/www/web1262/html/diedaune/app/code/core/Mage/Core/Controller/Varien/Action.php(336): Mage_Adminhtml_Controller_Action->preDispatch()
#10 /var/www/web1262/html/diedaune/app/code/core/Mage/Core/Controller/Varien/Router/Admin.php(137): Mage_Core_Controller_Varien_Action->dispatch()
#11 /var/www/web1262/html/diedaune/app/code/core/Mage/Core/Controller/Varien/Front.php(168): Mage_Core_Controller_Varien_Router_Admin->match(’index’)
#12 /var/www/web1262/html/diedaune/app/Mage.php(420): Mage_Core_Controller_Varien_Front->dispatch(Object(Mage_Core_Controller_Request_Http))
#13 /var/www/web1262/html/diedaune/index.php(46): Mage::run()
#14 {main}

Mein Provider sagt daraufhin:
“Ihr Skript arbeitet mit dem falschen Session_save_path. Dieser lautet bei Ihnen: “ /var/www/web1262/phptmp “ “

Jetzt weiß ich nur nicht, wo und wie ich das ändern kann?  :(

 
Magento Community Magento Community
Magento Community
Magento Community
 
torsten3d
Jr. Member
 
Total Posts:  15
Joined:  2008-08-25
 

Alles gefunden - nachdem ich noch einmal ganz gründlich gegrübelt habe:

Lösung liegt in der Datei System.php unter /var/www/web1262/html/diedaune/downloader/pearlib/php/System.php
In Zeile 459 war statt /tmp direkt der Pfad zu ändern, dann hat es geklappt.

 
Magento Community Magento Community
Magento Community
Magento Community
 
chrischnian
Member
 
Total Posts:  65
Joined:  2007-09-27
Oberfranken => Kronach
 

Das ist aber die Quick und Dirty übung wie ist es nach einen Update?

Wie kann ich den Pfad auch umbiegen ohne die Upates zu gefährden?

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top