Magento error after migration "Cannot send headers, Headers already sent in" - magento

I am getting the following error (after I moved magento from once server to another)
a:5:{i:0;s:110:
"Cannot send headers; headers already sent in /home/user/public_html/lib/Varien/Event/Collection.php, line 1";
i:1;s:1013:"
#0 /home/user/public_html/lib/Zend/Controller/Response/Abstract.php(114): Zend_Controller_Response_Abstract->canSendHeaders(true)
#1 /home/user/public_html/app/code/core/Mage/Core/Model/App.php(1265): Zend_Controller_Response_Abstract->setHeader('Content-Type', 'text/html; char...')
#2 /home/user/public_html/app/code/core/Mage/Core/Controller/Varien/Front.php(80): Mage_Core_Model_App->getResponse()
#3 /home/user/public_html/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(202): Mage_Core_Controller_Varien_Front->getResponse()
#4 /home/user/public_html/app/code/core/Mage/Core/Controller/Varien/Front.php(172): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#5 /home/user/public_html/app/code/core/Mage/Core/Model/App.php(365): Mage_Core_Controller_Varien_Front->dispatch()
#6 /home/user/public_html/app/Mage.php(684): Mage_Core_Model_App->run(Array)
#7 /home/user/public_html/index.php(83): Mage::run('', 'store')
#8 {main}
";s:3:"url";s:1:"/";s:11:"script_name";s:10:"/index.php";s:4:"skin";s:5:"dutch";}

I have solved my issue some other way.
This was magento 1.9.1 & i update it to 1.9.2.2, site came back as normal but some blocks were not showing on front page. I followed this https://magentary.com/kb/cms-pages-transactional-emails-broken-after-supee-6788-patch/
and the issue almost resolved
Thanks.

Related

Magento with RedisLab Redis Cluster Backend

Magento RedisLab cluster Integration Problem
After we deploy cluster redis database , FPC and Session working perfectly but when we add cluster redis ( RedisLab ) instance with Magento Cache section we are facing one problem.
When click ADD TO CART >> show cannot add product
Backend Error
Next exception 'Zend_Cache_Exception' with message 'Error cleaning cache by mode matchingAnyTag: ERR CROSSSLOT Keys in request don't hash to the same slot (command='SUNION', key='zc:ti:da3_QUOTE_2156255')' in /var/www/magento/lib/Zend/Cache.php:209
Stack trace:
3
#6 /var/www/magento/app/code/core/Mage/Core/Model/Abstract.php(464): Mage_Core_Model_Abstract->cleanModelCache()
#7 /var/www/magento/app/code/core/Mage/Sales/Model/Quote.php(333): Mage_Core_Model_Abstract->_afterSave()
#8 /var/www/magento/app/code/core/Mage/Core/Model/Abstract.php(319): Mage_Sales_Model_Quote->_afterSave()
#9 /var/www/magento/app/code/core/Mage/Sales/Model/Quote.php(1966): Mage_Core_Model_Abstract->save()
#10 /var/www/magento/app/code/core/Mage/Checkout/Model/Cart.php(459): Mage_Sales_Model_Quote->save()
#11 /var/www/magento/app/code/core/Mage/Checkout/controllers/CartController.php(223): Mage_Checkout_Model_Cart->save()
#12 /var/www/magento/app/code/core/Mage/Core/Controller/Varien/Action.php(418): Mage_Checkout_CartController->addAction()
#13 /var/www/magento/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(254): Mage_Core_Controller_Varien_Action->dispatch('add')
#14 /var/www/magento/app/code/core/Mage/Core/Controller/Varien/Front.php(172): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#15 /var/www/magento/app/code/core/Mage/Core/Model/App.php(365): Mage_Core_Controller_Varien_Front->dispatch()
#16 /var/www/magento/app/Mage.php(684): Mage_Core_Model_App->run(Array)
#17 /var/www/magento/index.php(85): Mage::run('', 'store')
#18 {main}
If i disable the exception then its working file
/var/www/magento/lib/Zend/Cache.php:209
Just got the same exception like you , I believe that case belong to your custom work try to make magento working with redis-cluster
My solution :
just remove exception in redis-client.php library first and return IP:PORT
find the correct client by byHash function in redis-cluster.php
execute the command with correct client
Need to overwrite load , remove , _removeByMatchingTags...

Fatal Error Magento Backend for UnSecure Address Change

I have SSL. i searching mysql request CPU usage in SSL SSH or Apache Subjects.
im try on this, my unsecure address is,
UnSecure Address: https://www.example.com
to change
UnSecure Address: http://www.example.com
and my admin panel is down. Error is;
Fatal Error "Class 'Mgt_Base_Helper_Data' not found in /home/server/public_html/app/Mage.php on line 546
And now my backend
There has been an error processing your request
Mage registry key "_singleton/mgt_base/feed" already exists
Trace:
#0 /home/server/public_html/app/Mage.php(222): Mage::throwException('Mage registry k...')
#1 /home/server/public_html/app/Mage.php(476): Mage::register('_singleton/mgt_...', false)
#2 /home/server/public_html/includes/src/__default.php(21330): Mage::getSingleton('mgt_base/feed')
#3 /home/server/public_html/app/Mage.php(447): Mage_Core_Model_App->dispatchEvent('adminhtml_contr...', Array)
#4 /home/server/public_html/includes/src/Mage_Adminhtml_Controller_Action.php(159): Mage::dispatchEvent('adminhtml_contr...', Array)
#5 /home/server/public_html/includes/src/__default.php(13861): Mage_Adminhtml_Controller_Action->preDispatch()
#6 /home/server/public_html/includes/src/__default.php(18234): Mage_Core_Controller_Varien_Action->dispatch('login')
#7 /home/server/public_html/includes/src/__default.php(17768): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#8 /home/server/public_html/includes/src/__default.php(20368): Mage_Core_Controller_Varien_Front->dispatch()
#9 /home/server/public_html/app/Mage.php(683): Mage_Core_Model_App->run(Array)
#10 /home/server/public_html/index.php(87): Mage::run('', 'store')
#11 {main}
How can i fix this previous setings or How can i set unsecure adress without backend?
Thanx.
It looks like you have install magento in PHP 5.4. Apply magento patch for PHP 5.4 or downgradr PHP to 5.3, and then clear cache (flush storage)

magento admin assert issue

Error in file: "/home/siddharth/iphp/magento/app/code/core/Mage/Admin/sql/admin_setup/install-1.6.0.0.php"
- SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'admin_role' already exists
Trace:
#0 /home/siddharth/iphp/magento/app/code/core/Mage/Core/Model/Resource/Setup.php(645): Mage::exception('Mage_Core', 'Error in file: ...')
#1 /home/siddharth/iphp/magento/app/code/core/Mage/Core/Model/Resource/Setup.php(421): Mage_Core_Model_Resource_Setup->_modifyResourceDb('install', '', '1.6.1.1')
#2 /home/siddharth/iphp/magento/app/code/core/Mage/Core/Model/Resource/Setup.php(327): Mage_Core_Model_Resource_Setup->_installResourceDb('1.6.1.1')
#3 /home/siddharth/iphp/magento/app/code/core/Mage/Core/Model/Resource/Setup.php(235): Mage_Core_Model_Resource_Setup->applyUpdates()
#4 /home/siddharth/iphp/magento/app/code/core/Mage/Core/Model/App.php(417): Mage_Core_Model_Resource_Setup::applyAllUpdates()
#5 /home/siddharth/iphp/magento/app/code/core/Mage/Core/Model/App.php(343): Mage_Core_Model_App->_initModules()
#6 /home/siddharth/iphp/magento/app/Mage.php(684): Mage_Core_Model_App->run(Array)
#7 /home/siddharth/iphp/magento/index.php(87): Mage::run('', 'store')
#8 {main}
1) Go to your localhost or mysql on your server and delete the table that gives error...
2) Clear cookies and refresh that page again
3) Ater 2nd step if same error persist then close the browser and restart it...this will delete all cookies and cache and then hit the url again... do these steps for all errors that come... after this successful completion will be done...

Magento Zend Mail using Google SMTP

I'm having troubles with mail sending in Magento: simply emails are not being sent in case of customer registration, order confirmation ecc.
I checked the exception log and this is what I found:
exception 'Zend_Mail_Protocol_Exception' with message '5.7.1 Username and Password not accepted. Learn more at
5.7.1 http://support.google.com/mail/bin/answer.py?answer=14257 q42sm2096509eem.14 - gsmtp
' in /srv/www/htdocs/lib/Zend/Mail/Protocol/Abstract.php:431
Stack trace:
#0 /srv/www/htdocs/lib/Zend/Mail/Protocol/Smtp/Auth/Login.php(95): Zend_Mail_Protocol_Abstract->_expect(235)
#1 /srv/www/htdocs/lib/Zend/Mail/Protocol/Smtp.php(217): Zend_Mail_Protocol_Smtp_Auth_Login->auth()
#2 /srv/www/htdocs/lib/Zend/Mail/Transport/Smtp.php(200): Zend_Mail_Protocol_Smtp->helo('localhost')
#3 /srv/www/htdocs/lib/Zend/Mail/Transport/Abstract.php(348): Zend_Mail_Transport_Smtp->_sendMail()
#4 /srv/www/htdocs/lib/Zend/Mail.php(1194): Zend_Mail_Transport_Abstract->send(Object(Zend_Mail))
#5 /srv/www/htdocs/app/code/core/Mage/Core/Model/Email/Template.php(465): Zend_Mail->send(Object(Zend_Mail_Transport_Smtp))
#6 /srv/www/htdocs/app/code/core/Mage/Core/Model/Email/Template.php(517): Mage_Core_Model_Email_Template->send(Array, Array, Array)
#7 /srv/www/htdocs/app/code/core/Mage/Core/Model/Email/Template/Mailer.php(79): Mage_Core_Model_Email_Template->sendTransactional('customer_create...', 'general', Array, Array, Array, '1')
#8 /srv/www/htdocs/app/code/core/Mage/Customer/Model/Customer.php(650): Mage_Core_Model_Email_Template_Mailer->send()
#9 /srv/www/htdocs/app/code/core/Mage/Customer/Model/Customer.php(577): Mage_Customer_Model_Customer->_sendEmailTemplate('customer/create...', 'customer/create...', Array, '1')
#10 /srv/www/htdocs/app/code/core/Mage/Customer/controllers/AccountController.php(344): Mage_Customer_Model_Customer->sendNewAccountEmail('confirmation', 'http://test.col...', '1')
#11 /srv/www/htdocs/app/code/core/Mage/Core/Controller/Varien/Action.php(419): Mage_Customer_AccountController->createPostAction()
#12 /srv/www/htdocs/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(250): Mage_Core_Controller_Varien_Action->dispatch('createpost')
#13 /srv/www/htdocs/app/code/core/Mage/Core/Controller/Varien/Front.php(176): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#14 /srv/www/htdocs/app/code/core/Mage/Core/Model/App.php(354): Mage_Cor_Controller_Varien_Front->dispatch()
#15 /srv/www/htdocs/app/Mage.php(683): Mage_Core_Model_App->run(Array)
#16 /srv/www/htdocs/index.php(87): Mage::run('', 'store')
#17 {main}
I didn't know about the Zend Mail Protocol, anyway, from what I see, this is trying to use SMTP authentication on a Google server; the fact is I have not installed any extension to use SMTP in Magento, so I have never set up any username or password; besides I'm using localhost in Magento mail sending settings, so anyone has an idea of what happened and can suggest me a workaround?
Thank you!

Error Processing Request: Mage registry key "_singleton/inchoo_notes/feed_updates" already exists

I get this error message whenever im trying to login to magento admin after installation of inhcoo featured 2.0 (magento extension) through magento connect:
There has been an error processing your request
Mage registry key "_singleton/inchoo_notes/feed_updates" already exists
Trace:
#0 /home/.../public_html/app/Mage.php(222): Mage::throwException('Mage registry k...')
#1 /home/.../public_html/app/Mage.php(476): Mage::register('_singleton/inch...', false)
#2 /home/..../public_html/includes/src/__default.php(20995): Mage::getSingleton('inchoo_notes/fe...')
#3 /home/...../public_html/app/Mage.php(447): Mage_Core_Model_App->dispatchEvent('controller_acti...', Array)
#4 /home/..../public_html/includes/src/__default.php(13663): Mage::dispatchEvent('controller_acti...', Array)
#5 /home/..../public_html/includes/src/Mage_Adminhtml_Controller_Action.php(160): Mage_Core_Controller_Varien_Action->preDispatch()
#6 /home/..../public_html/includes/src/__default.php(13543): Mage_Adminhtml_Controller_Action->preDispatch()
#7 /home/..../public_html/includes/src/__default.php(17899): Mage_Core_Controller_Varien_Action->dispatch('login')
#8 /home/..../public_html/includes/src/__default.php(17456): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#9 /home/..../public_html/includes/src/__default.php(20033): Mage_Core_Controller_Varien_Front->dispatch()
#10 /home/..../public_html/app/Mage.php(683): Mage_Core_Model_App->run(Array)
#11 /home/..../public_html/index.php(89): Mage::run('', 'store')
#12 {main}
Error log record number: 214959287644
how can I fix this problem? please help
This specific error happens when a singleton (model or helper) is attempted to be invoked but cannot be mapped. Based on the path which I'm seeing in the stack trace, it looks as though you have compilation enabled. You should disable compilation while attempting to install this module, which can be done in the admin GUI at System > Compilation.

Resources