magneto-s3
magneto-s3 copied to clipboard
Unable to config s3
Installed the extension, added S3 credentials, hit synchronize button. I got this error in the admin: Latest Message: An error has occured while syncronizing media storages.
I cannot save the credentials because I didn't hit sync. So... this is stopper.
2011-05-25T08:25:15+00:00 ERR (3): exception 'Zend_Service_Amazon_Exception' with message 'AWS keys were not supplied' in /opt/magento-community/lib/Zend/Service/Amazon/Abstract.php:92 Stack trace: #0 /opt/magento-community/lib/Zend/Service/Amazon/S3.php(111): Zend_Service_Amazon_Abstract->__construct('', '', NULL) #1 /opt/magento-community/.modman/magneto-s3/code/S3/Model/File/Storage/S3/Abstract.php(71): Zend_Service_Amazon_S3->__construct('', '') #2 /opt/magento-community/.modman/magneto-s3/code/S3/Model/File/Storage/S3.php(63): Magneto_S3_Model_File_Storage_S3_Abstract->__construct(Array) #3 /opt/magento-community/app/code/core/Mage/Core/Model/Config.php(1254): Magneto_S3_Model_File_Storage_S3->__construct(Array) #4 /opt/magento-community/app/Mage.php(432): Mage_Core_Model_Config->getModelInstance('core/file_stora...', Array) #5 /opt/magento-community/app/code/core/Mage/Core/Model/File/Storage.php(111): Mage::getModel('core/file_stora...', Array) #6 /opt/magento-community/app/code/core/Mage/Core/Model/File/Storage.php(153): Mage_Core_Model_File_Storage->getStorageModel(1, Array) #7 /opt/magento-community/app/code/core/Mage/Adminhtml/controllers/System/Config/System/StorageController.php(87): Mage_Core_Model_File_Storage->synchronize(Array) #8 /opt/magento-community/app/code/core/Mage/Core/Controller/Varien/Action.php(420): Mage_Adminhtml_System_Config_System_StorageController->synchronizeAction() #9 /opt/magento-community/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(253): Mage_Core_Controller_Varien_Action->dispatch('synchronize') #10 /opt/magento-community/app/code/core/Mage/Core/Controller/Varien/Front.php(176): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http)) #11 /opt/magento-community/app/code/core/Mage/Core/Model/App.php(340): Mage_Core_Controller_Varien_Front->dispatch() #12 /opt/magento-community/app/Mage.php(627): Mage_Core_Model_App->run(Array) #13 /opt/magento-community/index.php(80): Mage::run('', 'store') #14 {main}
magneto-s3/code/S3/Model/File/Storage/S3/Abstract.php tries to read storage media config for s3 keys and bucket name. But, Magento admin wouldn't let you save this config without synchronizing. It is a circular dependency. I hardcoded these values in that file and it worked like a charm. I guess you could revert the hardcoding once you sync media and save the config.
Also note: looks like you cannot have uppercase letters and even underscore in the s3 bucket name.