phpbugs.wordpress.com
Magento: Cannot complete this operation from non-admin area
Use the below code after including the file “app/Mage.php” Mage::register(‘isSecureArea’, true);