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

Magento not working after chmod the whole directory
 
CR7
Jr. Member
 
Total Posts:  9
Joined:  2008-07-04
 

hello everyone,

I am in big trouble, alot of my work has gone, I dont know why but it happend after i did find . -type d -exec chmod 777 {} \; and -type f -exec chmod 644 {} \;

I did this with the whole magento directory, I am running ubuntu and I don’t know what has happened. When I reinstalled magento keeping my database and still have the same issue.

When I try to refresh the cache I get this

Warningchmod() [function.chmod]Operation not permitted  in /var/www/magento/app/code/core/Mage/Core/Model/App.php on line 944
Trace
:
#0 [internal function]: mageCoreErrorHandler(2, 'chmod() [saveUseCache(Array)
#3 /var/www/magento/app/code/core/Mage/Core/Controller/Varien/Action.php(342): Mage_Adminhtml_System_CacheController->saveAction()
#4 /var/www/magento/app/code/core/Mage/Core/Controller/Varien/Router/Admin.php(148): Mage_Core_Controller_Varien_Action->dispatch('save')
#5 /var/www/magento/app/code/core/Mage/Core/Controller/Varien/Front.php(146): Mage_Core_Controller_Varien_Router_Admin->match(Object(Mage_Core_Controller_Request_Http))
#6 /var/www/magento/app/Mage.php(427): Mage_Core_Controller_Varien_Front->dispatch()
#7 /var/www/magento/index.php(40): Mage::run()
#8 {main}

and when I am on admin and just try to do anything i get this “There has been an error processing your request.”

Warning: include(Mage/Catalog/Model/Entity/Product/Attribute/Design/Options/Container.php[function.include]failed to open streamNo such file or directory  in /var/www/magento/app/code/core/Mage/Core/functions.php on line 44
Trace
:
#0 /var/www/magento/app/code/core/Mage/Core/functions.php(44): mageCoreErrorHandler(2, 'include(Mage/Ca...', '/var/www/magent...', 44, Array)
#1 /var/www/magento/app/code/core/Mage/Core/functions.php(44): __autoload()
#2 [internal function]: __autoload('Mage_Catalog_Mo...')
#3 /var/www/magento/app/code/core/Mage/Core/Model/Config.php(696): class_exists('Mage_Catalog_Mo...')
#4 /var/www/magento/app/Mage.php(294): Mage_Core_Model_Config->getModelInstance('catalog/entity_...', Array)
#5 /var/www/magento/app/code/core/Mage/Eav/Model/Entity/Attribute/Abstract.php(334): Mage::getModel('catalog/entity_...')
#6 /var/www/magento/app/code/core/Mage/Eav/Model/Entity/Attribute/Frontend/Abstract.php(137): Mage_Eav_Model_Entity_Attribute_Abstract->getSource()
#7 /var/www/magento/app/code/core/Mage/Adminhtml/Block/Widget/Form.php(117): Mage_Eav_Model_Entity_Attribute_Frontend_Abstract->getSelectOptions()
#8 /var/www/magento/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Attributes.php(46): Mage_Adminhtml_Block_Widget_Form->_setFieldset(Array, Object(Varien_Data_Form_Element_Fieldset), Array)
#9 /var/www/magento/app/code/core/Mage/Adminhtml/Block/Widget/Form.php(88): Mage_Adminhtml_Block_Catalog_Product_Edit_Tab_Attributes->_prepareForm()
#10 /var/www/magento/app/code/core/Mage/Core/Block/Abstract.php(553): Mage_Adminhtml_Block_Widget_Form->_beforeToHtml()
#11 /var/www/magento/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tabs.php(75): Mage_Core_Block_Abstract->toHtml()
#12 /var/www/magento/app/code/core/Mage/Core/Block/Abstract.php(193): Mage_Adminhtml_Block_Catalog_Product_Edit_Tabs->_prepareLayout()
#13 /var/www/magento/app/code/core/Mage/Core/Model/Layout.php(402): Mage_Core_Block_Abstract->setLayout(Object(Mage_Core_Model_Layout))
#14 /var/www/magento/app/code/core/Mage/Adminhtml/controllers/Catalog/ProductController.php(160): Mage_Core_Model_Layout->createBlock('adminhtml/catal...', 'product_tabs')
#15 /var/www/magento/app/code/core/Mage/Core/Controller/Varien/Action.php(342): Mage_Adminhtml_Catalog_ProductController->editAction()
#16 /var/www/magento/app/code/core/Mage/Core/Controller/Varien/Router/Admin.php(148): Mage_Core_Controller_Varien_Action->dispatch('edit')
#17 /var/www/magento/app/code/core/Mage/Core/Controller/Varien/Front.php(146): Mage_Core_Controller_Varien_Router_Admin->match(Object(Mage_Core_Controller_Request_Http))
#18 /var/www/magento/app/Mage.php(427): Mage_Core_Controller_Varien_Front->dispatch()
#19 /var/www/magento/index.php(40): Mage::run()
#20 {main}

SOMEBODY PLEASE PLEASE PLEASE HELP

 
Magento Community Magento Community
Magento Community
Magento Community
 
CR7
Jr. Member
 
Total Posts:  9
Joined:  2008-07-04
 

any one???

 
Magento Community Magento Community
Magento Community
Magento Community
 
Unirgy
Guru
 
Avatar
Total Posts:  478
Joined:  2007-09-07
 

read this article: http://www.magentocommerce.com/wiki/magento_filesystem_permissions

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