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

Adding / editing products in ver. 0.9.17740 causes exceptions. Adding pictures is impossible and also causes exceptions. 
 
lucian303
Member
 
Avatar
Total Posts:  74
Joined:  2008-03-03
 

Ok. I installed everything. Demo data. Tried installing many times using svn, exporting from svn and using update to both beta and alpha. I get exceptions whenever I try to add a product or edit one and especially when I try to add images:

Here’s what I get when adding a new product: see attached it’s too long.

My specs:

ver0.9.17740

Linux version 2.6.18
-5-xen-vserver-amd64 (Debian 2.6.18.dfsg.1-17) (dannf@debian.org) (gcc version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)) #1 SMP Sat Dec 22 22:58:29 UTC 2007

Apache 2.2.3
MySQL 5.0.32
-Debian_7etch5-log
PHP 5.2.0
-8+etch10 
Zend Core 
Platform

And when I try to modify ie-> add or remove images (this actually fits in here)

WarningInvalid argument supplied for foreach() in /web03/magento/pub/app/code/core/Mage/Catalog/Model/Product/Attribute/Backend/Media.php on line 82
[0] in Mage_Catalog_Model_Product_Attribute_Backend_Media
->beforeSave(Mage_Catalog_Model_Product)
[1] in call_user_func_array(Array[2]Array[1]in /web03/magento/pub/app/code/core/Mage/Eav/Model/Entity/Abstract.php on line 487
[2] in Mage_Eav_Model_Entity_Abstract
->walkAttributes("backend/beforeSave"Array[1]in /web03/magento/pub/app/code/core/Mage/Eav/Model/Entity/Abstract.php on line 1126
[3] in Mage_Eav_Model_Entity_Abstract
->_beforeSave(Mage_Catalog_Model_Productin /web03/magento/pub/app/code/core/Mage/Catalog/Model/Resource/Eav/Mysql4/Product.php on line 101
[4] in Mage_Catalog_Model_Resource_Eav_Mysql4_Product
->_beforeSave(Mage_Catalog_Model_Productin /web03/magento/pub/app/code/core/Mage/Eav/Model/Entity/Abstract.php on line 794
[5] in Mage_Eav_Model_Entity_Abstract
->save(Mage_Catalog_Model_Productin /web03/magento/pub/app/code/core/Mage/Core/Model/Abstract.php on line 227
[6] in Mage_Core_Model_Abstract
->save() in /web03/magento/pub/app/code/core/Mage/Adminhtml/controllers/Catalog/ProductController.php on line 322
[7] in Mage_Adminhtml_Catalog_ProductController
->saveAction() in /web03/magento/pub/app/code/core/Mage/Core/Controller/Varien/Action.php on line 341
[8] in Mage_Core_Controller_Varien_Action
->dispatch("save"in /web03/magento/pub/app/code/core/Mage/Core/Controller/Varien/Router/Admin.php on line 141
[9] in Mage_Core_Controller_Varien_Router_Admin
->match(Mage_Core_Controller_Request_Httpin /web03/magento/pub/app/code/core/Mage/Core/Controller/Varien/Front.php on line 147
[10] in Mage_Core_Controller_Varien_Front
->dispatch() in /web03/magento/pub/app/Mage.php on line 421
[11] in Mage
::run("default"in /web03/magento/pub/index.php on line 29

exception 
'Zend_Controller_Response_Exception' with message 'Cannot send headers; headers already sent in /web03/magento/pub/app/code/core/Mage/Core/functions.php, line 191' in /web03/magento/pub/lib/Zend/Controller/Response/Abstract.php:281
Stack trace
:
#0 /web03/magento/pub/lib/Zend/Controller/Response/Abstract.php(147): Zend_Controller_Response_Abstract->canSendHeaders(true)
#1 /web03/magento/pub/app/code/core/Mage/Adminhtml/Controller/Action.php(224): Zend_Controller_Response_Abstract->setRedirect('http://magentot...')
#2 /web03/magento/pub/app/code/core/Mage/Adminhtml/controllers/Catalog/ProductController.php(355): Mage_Adminhtml_Controller_Action->_redirect('*/*/edit', Array)
#3 /web03/magento/pub/app/code/core/Mage/Core/Controller/Varien/Action.php(341): Mage_Adminhtml_Catalog_ProductController->saveAction()
#4 /web03/magento/pub/app/code/core/Mage/Core/Controller/Varien/Router/Admin.php(141): Mage_Core_Controller_Varien_Action->dispatch('save')
#5 /web03/magento/pub/app/code/core/Mage/Core/Controller/Varien/Front.php(147): Mage_Core_Controller_Varien_Router_Admin->match(Object(Mage_Core_Controller_Request_Http))
#6 /web03/magento/pub/app/Mage.php(421): Mage_Core_Controller_Varien_Front->dispatch()
#7 /web03/magento/pub/index.php(29): Mage::run('default')
#8 {main}
 
Magento Community Magento Community
Magento Community
Magento Community
 
lucian303
Member
 
Avatar
Total Posts:  74
Joined:  2008-03-03
 

Ok. Tried installing using .tar.gz file and still same luck. Going to try on another server before reverting back to .8xxxx for the time being. Although that still won’t upload images for me, at least it doesn’t cause an exception when saving/editing products.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Michael_1
Enthusiast
 
Total Posts:  826
Joined:  2007-08-31
 

Hi lucian303,

Could you please PM me temporary admin login/pwd to see what is the issue there ?

Thank you,
Michael.

 
Magento Community Magento Community
Magento Community
Magento Community
 
lucian303
Member
 
Avatar
Total Posts:  74
Joined:  2008-03-03
 

The problem seems to be from the Zend Core/Platform configuration. When I turn Zend off and run plain php, I am able to upload images. Our sysadmin is looking into why this is happening.

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