Skip to content

Instantly share code, notes, and snippets.

@codesprint
Created March 13, 2015 10:30
Magento: An Error occured while saving the URL rewrite
try {
$this->_getWriteAdapter()->insert($this->getMainTable(), $rewriteData);
}
catch (Exception $e) {
Mage::throwException(Mage::helper('catalog')->__('An error occurred while saving the URL rewrite.'));
}
try {
$this->_getWriteAdapter()->insert($this->getMainTable(), $rewriteData);
}
catch (Exception $e) {
//Mage::throwException(Mage::helper('catalog')->__('An error occurred while saving the URL rewrite.'));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment