BlackDesk
Total Posts: 34
Joined: 2008-03-10
San Diego
here is the code from the area referenced in the ProductController file:
$this->_getSession()->addSuccess($this->__(’Product was successfully saved.’));
}
catch (Mage_Core_Exception $e) {
$this->_getSession()->addError($e->getMessage())
->setProductData($data);
$redirectBack = true;
}
catch (Exception $e) {
echo $e;
$this->_getSession()->addException($e, $this->__(’Product saving error.’));
$redirectBack = true;
}
}
if ($redirectBack) {
$this->_redirect(’*/*/edit’, array(
‘id’ => $productId,
‘_current’=>true
));
}
else if($this->getRequest()->getParam(’popup’)) {
$this->_redirect(’*/*/created’, array(
‘_current’ => true,
‘id’ => $productId,
‘edit’ => $isEdit
));
}
else {
$this->_redirect(’*/*/’, array(’store’=>$storeId));
}
}
Signature
_____________________________________________________________________
If we did all the things we are capable of doing, we would literally astonish ourselves.
Thomas Edison
BlackDesk
Total Posts: 34
Joined: 2008-03-10
San Diego
*bump please and thank you*
this is a major error. the admin is unable to add pictures or modify products…
Signature
_____________________________________________________________________
If we did all the things we are capable of doing, we would literally astonish ourselves.
Thomas Edison
Gman2005
Total Posts: 24
Joined: 2008-02-16
can’t create products period.
Gman2005
Total Posts: 24
Joined: 2008-02-16
Guys,
It’s kind of hard to have a running e-commerce site, when there are no products on it; because the program you’re using won’t let you add any!
Can anyone direct BlackDesk and I, so we can get this ProductController error fixed?
Please, I need to get this site up and going before I get my a$$ chewed out.
Thanks.
mascker
Total Posts: 49
Joined: 2007-08-31
Portugal
Hi there.
$this -> _getSession ()-> addSuccess ( $this -> __ ( ’Product was successfully saved . ’ )); } catch ( Mage_Core_Exception $e ) { $this -> _getSession ()-> addError ( $e -> getMessage ()) -> setProductData ( $data ); $redirectBack = true ; } catch ( Exception $e ) { echo $e ; $this -> _getSession ()-> addException ( $e , $this -> __ ( ’Product saving error . ’ )); $redirectBack = true ; } } if ( $redirectBack ) { $this -> _redirect ( ’ * /*/edit’, array( ‘id’ => $productId, ‘_current’=>true )); } else if($this->getRequest()->getParam(’popup’)) { $this->_redirect(’*/ */ created’ , array( ‘_current’ => true , ‘id’ => $productId , ‘edit’ => $isEdit )); } else { $this -> _redirect ( ’ *
If this code is the code that is on your file, delete the line
echo $e ;
The final code will be
$this -> _getSession ()-> addSuccess ( $this -> __ ( ’Product was successfully saved . ’ )); } catch ( Mage_Core_Exception $e ) { $this -> _getSession ()-> addError ( $e -> getMessage ()) -> setProductData ( $data ); $redirectBack = true ; } catch ( Exception $e ) { $this -> _getSession ()-> addException ( $e , $this -> __ ( ’Product saving error . ’ )); $redirectBack = true ; } } if ( $redirectBack ) { $this -> _redirect ( ’ * /*/edit’, array( ‘id’ => $productId, ‘_current’=>true )); } else if($this->getRequest()->getParam(’popup’)) { $this->_redirect(’*/ */ created’ , array( ‘_current’ => true , ‘id’ => $productId , ‘edit’ => $isEdit )); } else { $this -> _redirect ( ’ *
Regards,
Signature
Pétala Azul
Gman2005
Total Posts: 24
Joined: 2008-02-16
I tried that, I don’t get the can’t send header error.
But it says there is a “Product Saving Error.”
Gman2005
Total Posts: 24
Joined: 2008-02-16
STILL NEED HELP WITH THIS ERROR.
Gman2005
Total Posts: 24
Joined: 2008-02-16
Hopefully 1.1 version will come out soon or someone posts a solution; otherwise, I am going to have to go back to Joomla and Virtuemart.
BlackDesk
Total Posts: 34
Joined: 2008-03-10
San Diego
OK - I’ve got one angry client who has just launched a complete e-commerce site, yet can’t go back and edit products! I understand how things can be overlooked with a platform as sophisticated as Magento, but someone HAS to do something aqbout this problem asap, or you will start losing customers, just as you are gaining well-deserved traction and accolades. PLEASE respond and help us resolve this crucial issue.
THANK YOU THANK YOU THANK YOU!!!
Signature
_____________________________________________________________________
If we did all the things we are capable of doing, we would literally astonish ourselves.
Thomas Edison
BlackDesk
Total Posts: 34
Joined: 2008-03-10
San Diego
UPDATE:
Tried re-importing csv spreadsheet via the console, after changing info on ONE PRODUCT and got this error:
SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`shopme5_store/catalogindex_minimal_price`, CONSTRAINT `FK_CATALOGINDEX_MINIMAL_PRICE_CUSTOMER_GROUP` FOREIGN KEY (`customer_group_id`) REFERENCES `customer_group` (`customer_group_id`) ON DEL)
Thoughts? Answers? Wisdom…
Signature
_____________________________________________________________________
If we did all the things we are capable of doing, we would literally astonish ourselves.
Thomas Edison
Gman2005
Total Posts: 24
Joined: 2008-02-16
Please Please help us with this Product Controller error! I thought that I would just install 1.1 but now its not going to be released until end of July. I can’t wait that long. I need to get my site up and selling shit. Please help us find a solution for this!