After you activated the plugin and provided the right absolute path to your Mage.php, add the following lines somewhere in your code where there is no header being sent:
if(class_exists('Mage')){
$status = Mage::getModel('newsletter/subscriber')->subscribe('[email protected]');
$message = ($status == 1) ? "Success" : "Fail";
}
or else you’ll get an error similar below:
Fatal error: Uncaught exception ‘Exception’ with message ‘Warning: session_start() [function.session-start]: Cannot send session cache limiter – headers already sent (output started at C:\xampp\htdocs\wordpress-3.0\wp-content\themes\twentyten\header.php:12) in C:\xampp\htdocs\magento\app\code\local\Mage\Core\Model\Session\Abstract\Varien.php on line 115′ in C:\xampp\htdocs\magento\app\code\local\Mage\Core\functions.php:247 Stack trace: #0 [internal function]: mageCoreErrorHandler(2, ‘session_start()…’, ‘C:\xampp\htdocs…’, 115, Array) #1 C:\xampp\htdocs\magento\app\code\local\Mage\Core\Model\Session\Abstract\Varien.php(115): session_start() #2 C:\xampp\htdocs\magento\app\code\local\Mage\Core\Model\Session\Abstract\Varien.php(155): Mage_Core_Model_Session_Abstract_Varien->start(NULL) #3 C:\xampp\htdocs\magento\app\code\core\Mage\Core\Model\Session\Abstract.php(84): Mage_Core_Model_Session_Abstract_Varien->init(‘customer_base’, NULL) #4 C:\xampp\htdocs\magento\app\code\core\Mage\Cust in C:\xampp\htdocs\magento\app\code\local\Mage\Core\functions.php on line 247