Try the Demo

Magento Forum

   
error when uploading an image
 
pulmex
Jr. Member
 
Total Posts:  8
Joined:  2007-09-01
 

when i upload an image under “catalog > manage products”

i get this message: Unable to create directory ‘/is’. Access forbidden.

this is the error log:

Warningis_dir() [function.is-dir]open_basedir restriction in effectFile(/is) is not within the allowed path(s): (/tmp:/bin:/usr:/is/default.errors:/is/htdocs/wp1081158_CLTD27IJF5:/procin /is/htdocs/wp1081158_CLTD27IJF5/www/001/lib/Varien/File/Uploader.php on line 327
[0] in is_dir
("/is"in /is/htdocs/wp1081158_CLTD27IJF5/www/001/lib/Varien/File/Uploader.php on line 327
[1] in Varien_File_Uploader
->_createDestinationFolder("/is/htdocs/wp1081158_CLTD27IJF"in /is/htdocs/wp1081158_CLTD27IJF5/www/001/lib/Varien/File/Uploader.php on line 137
[2] in Varien_File_Uploader
->save("/is/htdocs/wp1081158_CLTD27IJF"in /is/htdocs/wp1081158_CLTD27IJF5/www/001/app/code/core/Mage/Catalog/Model/Entity/Product/Attribute/Backend/Image.php on line 51
[3] in Mage_Catalog_Model_Entity_Product_Attribute_Backend_Image
->afterSave(Mage_Catalog_Model_Product)
[4] in call_user_func_array(Array[2]Array[1]in /is/htdocs/wp1081158_CLTD27IJF5/www/001/app/code/core/Mage/Eav/Model/Entity/Abstract.php on line 578
[5] in Mage_Eav_Model_Entity_Abstract
->walkAttributes("backend/afterSave"Array[1]in /is/htdocs/wp1081158_CLTD27IJF5/www/001/app/code/core/Mage/Eav/Model/Entity/Abstract.php on line 1141
[6] in Mage_Eav_Model_Entity_Abstract
->_afterSave(Mage_Catalog_Model_Productin /is/htdocs/wp1081158_CLTD27IJF5/www/001/app/code/core/Mage/Catalog/Model/Entity/Product.php on line 52
[7] in Mage_Catalog_Model_Entity_Product
->_afterSave(Mage_Catalog_Model_Productin /is/htdocs/wp1081158_CLTD27IJF5/www/001/app/code/core/Mage/Eav/Model/Entity/Abstract.php on line 808
[8] in Mage_Eav_Model_Entity_Abstract
->save(Mage_Catalog_Model_Productin /is/htdocs/wp1081158_CLTD27IJF5/www/001/app/code/core/Mage/Catalog/Model/Product.php on line 121
[9] in Mage_Catalog_Model_Product
->save() in /is/htdocs/wp1081158_CLTD27IJF5/www/001/app/code/core/Mage/Adminhtml/controllers/Catalog/ProductController.php on line 276
[10] in Mage_Adminhtml_Catalog_ProductController
->saveAction() in /is/htdocs/wp1081158_CLTD27IJF5/www/001/app/code/core/Mage/Core/Controller/Varien/Action.php on line 225
[11] in Mage_Core_Controller_Varien_Action
->dispatch("save"in /is/htdocs/wp1081158_CLTD27IJF5/www/001/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php on line 138
[12] in Mage_Core_Controller_Varien_Router_Standard
->match(Zend_Controller_Request_Httpin /is/htdocs/wp1081158_CLTD27IJF5/www/001/app/code/core/Mage/Core/Controller/Varien/Front.php on line 139
[13] in Mage_Core_Controller_Varien_Front
->dispatch() in /is/htdocs/wp1081158_CLTD27IJF5/www/001/app/Mage.php on line 349
[14] in Mage
::run("base"in /is/htdocs/wp1081158_CLTD27IJF5/www/001/index.php on line 27

exception 
'Zend_Controller_Response_Exception' with message 'Cannot send headers; headers already sent in /is/htdocs/wp1081158_CLTD27IJF5/www/001/app/code/core/Mage/Core/functions.php, line 100' in /is/htdocs/wp1081158_CLTD27IJF5/www/001/lib/Zend/Controller/Response/Abstract.php:265
Stack trace
:
#0 /is/htdocs/wp1081158_CLTD27IJF5/www/001/lib/Zend/Controller/Response/Abstract.php(131): Zend_Controller_Response_Abstract->canSendHeaders(true)
#1 /is/htdocs/wp1081158_CLTD27IJF5/www/001/app/code/core/Mage/Core/Controller/Varien/Action.php(324): Zend_Controller_Response_Abstract->setRedirect('http://wp108115...')
#2 /is/htdocs/wp1081158_CLTD27IJF5/www/001/app/code/core/Mage/Adminhtml/controllers/Catalog/ProductController.php(283): Mage_Core_Controller_Varien_Action->_redirect('*/*/edit', Array)
#3 /is/htdocs/wp1081158_CLTD27IJF5/www/001/app/code/core/Mage/Core/Controller/Varien/Action.php(225): Mage_Adminhtml_Catalog_ProductController->saveAction()
#4 /is/htdocs/wp1081158_CLTD27IJF5/www/001/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(138): Mage_Core_Controller_Varien_Action->dispatch('save')
#5 /is/htdocs/wp1081158_CLTD27IJF5/www/001/app/code/core/Mage/Core/Controller/Varien/Front.php(139): Mage_Core_Controller_Varien_Router_Standard->match(Object(Zend_Controller_Request_Http))
#6 /is/htdocs/wp1081158_CLTD27IJF5/www/001/app/Mage.php(349): Mage_Core_Controller_Varien_Front->dispatch()
#7 /is/htdocs/wp1081158_CLTD27IJF5/www/001/index.php(27): Mage::run('base')
#8 {main}

 
Magento Community Magento Community
Magento Community
Magento Community
 
_
Sr. Member
 
Total Posts:  152
Joined:  2007-08-31
 

The permissions on your server must be changed to allow file uploads . Can you show us your phpinfo() ?

 
Magento Community Magento Community
Magento Community
Magento Community
 
Scott
Guru
 
Avatar
Total Posts:  333
Joined:  2007-08-31
Northwest Ohio
 

Looks to me that the /is/ directory is below the web root, which will not display images to the public. Looks like the images should go somewhere beyond the /www/ directory.

 Signature 

Need a Magento designer? I specialize in helping developers and shop owners create Magento themes designed with aesthetic bliss, crisp refreshing style, and usability-focused design. Check out Tealo, the first public Magento theme!

Your Magento Partner for Stunning Creative Work!

 
Magento Community Magento Community
Magento Community
Magento Community
 
pulmex
Jr. Member
 
Total Posts:  8
Joined:  2007-09-01
 

here is my phpinfo:

http://wp1081158.vwp0332.webpack.hosteurope.de/001/info.php

 
Magento Community Magento Community
Magento Community
Magento Community
 
pulmex
Jr. Member
 
Total Posts:  8
Joined:  2007-09-01
 

i’m still not able to upload pictures. please have a look at my phpinfo.

thanks!

 
Magento Community Magento Community
Magento Community
Magento Community
 
macsmart
Jr. Member
 
Total Posts:  29
Joined:  2007-08-31
Greensboro, NC
 

Anyone have any ideas… I’m getting a similar error.

 
Magento Community Magento Community
Magento Community
Magento Community
 
prosurf
Jr. Member
 
Total Posts:  11
Joined:  2007-09-06
 

I have the same problem, as posted here - http://www.magentocommerce.com/boards/viewthread/341/

also by another user here - http://www.magentocommerce.com/boards/viewthread/424/

I did a fresh install from a Fedora desktop to a Fedora dedicated server yesterday, but still have the same error.

Hope someone can help us smile

Mark

 
Magento Community Magento Community
Magento Community
Magento Community
 
Dan Orsborne
Member
 
Total Posts:  72
Joined:  2007-09-20
 

Solution is here
http://www.magentocommerce.com/boards/viewthread/424/

 Signature 

http://www.igentics.com

Igentics are Internet Engineers, we like to look at things from a different angle. The end result being a fully integrated system encompassing the whole supply chain from supplier to end user, incorporating all legacy systems and data. This increases profits and reduces cost.

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