MAGENTO: CANNOT COMPLETE THIS OPERATION FROM NON-ADMIN AREA
If you are trying an external script in Magento but are unable to complete the task and are getting the above error. Tasks such as deleting a customer will throw this error. The solution is this: Use the below code after including the file “app/Mage.php” Mage::register(‘isSecureArea’, true); /* set secure admin area*/ Mage::getModel(‘review/review’)->load($review)->delete(); …