I am new in magento.i upload my madento site about 2 months ago but now suddenly when i add a product to cart give me this error
Cannot send headers; headers already sent in
/home/roblixsh/public_html/app/code/core/Mage/Shipping/Model/Carrier/Flatrateuk.php,
line 1
Trace:
#0 /home/roblixsh/public_html/lib/Zend/Controller/Response/Abstract.php(148): Zend_Controller_Response_Abstract->canSendHeaders(true)
#1 /home/roblixsh/public_html/app/code/core/Mage/Core/Controller/Response/Http.php(107): Zend_Controller_Response_Abstract->setRedirect('http://www.robl...', 302)
#2 /home/roblixsh/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(711): Mage_Core_Controller_Response_Http->setRedirect('http://www.robl...')
#3 /home/roblixsh/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(689): Mage_Core_Controller_Varien_Action->setRedirectWithCookieCheck('checkout/cart', Array)
#4 /home/roblixsh/public_html/app/code/core/Mage/Checkout/controllers/CartController.php(95): Mage_Core_Controller_Varien_Action->_redirect('checkout/cart')
#5 /home/roblixsh/public_html/app/code/core/Mage/Checkout/controllers/CartController.php(260): Mage_Checkout_CartController->_goBack()
#6 /home/roblixsh/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(418): Mage_Checkout_CartController->addAction()
#7 /home/roblixsh/public_html/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(250): Mage_Core_Controller_Varien_Action->dispatch('add')
#8 /home/roblixsh/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))
#9 /home/roblixsh/public_html/app/code/core/Mage/Core/Model/App.php(354): Mage_Core_Controller_Varien_Front->dispatch()
#10 /home/roblixsh/public_html/app/Mage.php(684): Mage_Core_Model_App->run(Array)
#11 /home/roblixsh/public_html/index.php(87): Mage::run('', 'store')
#12 {main}
how can i fixed this?
i don't know why give error on my add to cart but finally i found issue.i write a module with Flatrateuk name and after 3 months this module occur error on my site. now i disable this module and problem solved
Related
I am trying to create new advanced profile in Magento 1.9, but I can't seem to get to the list page (System > Import/Export > Dataflow - Advanced Profiles).
Here is the stack trace for the list page:
ERR (3):
exception 'Mage_Core_Exception' with message 'Invalid block type: Mage_Adminhtml_Block_System_Convert_Profile_Grid' in /home/test/public_html/mg1/app/Mage.php:595
Stack trace:
#0
/home/test/public_html/mg1/app/code/core/Mage/Core/Model/Layout.php(495): Mage::throwException('Invalid block t...')
#1
/home/test/public_html/mg1/app/code/core/Mage/Core/Model/Layout.php(437): Mage_Core_Model_Layout->_getBlockInstance('adminhtml/syste...', Array)
#2
/home/test/public_html/mg1/app/code/core/Mage/Adminhtml/Block/Widget/Grid/Container.php(66): Mage_Core_Model_Layout->createBlock('adminhtml/syste...', 'system_convert_...')
#3
/home/test/public_html/mg1/app/code/core/Mage/Core/Block/Abstract.php(293): Mage_Adminhtml_Block_Widget_Grid_Container->_prepareLayout()
#4
/home/test/public_html/mg1/app/code/core/Mage/Core/Model/Layout.php(456): Mage_Core_Block_Abstract->setLayout(Object(Mage_Core_Model_Layout))
#5
/home/test/public_html/mg1/app/code/core/Mage/Adminhtml/controllers/System/Convert/ProfileController.php(84): Mage_Core_Model_Layout->createBlock('adminhtml/syste...', 'convert_profile')
#6
/home/test/public_html/mg1/app/code/core/Mage/Core/Controller/Varien/Action.php(418): Mage_Adminhtml_System_Convert_ProfileController->indexAction()
#7
/home/test/public_html/mg1/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(254): Mage_Core_Controller_Varien_Action->dispatch('index')
#8
/home/test/public_html/mg1/app/code/core/Mage/Core/Controller/Varien/Front.php(172): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#9
/home/test/public_html/mg1/app/code/core/Mage/Core/Model/App.php(365): Mage_Core_Controller_Varien_Front->dispatch()
#10
/home/test/public_html/mg1/app/Mage.php(684): Mage_Core_Model_App->run(Array)
#11
/home/test/public_html/mg1/index.php(83): Mage::run('', 'store')
#12
{main}
Any ideas on what to do?
This is due to a new security feature Magento introduced with its version 1.9.
As the error message showd you need to whitelist the block adminhtml/system_convert_profile_grid.
To do that you can go to System > Permissions > Blocks and enter the block above.
I have a really annoying problem. I was doing some alterations to Magento shop when I ran into simplexml_load_string() error, it is clear to me that this error is caused by some bad XML file, but the very important question to me is which file and where is it located?
This is the error message I receive, I was never very good at understanding these console type messages, can someone please help me?
Warning: simplexml_load_string(): Entity: line 1: parser error : StartTag: invalid element name in /var/www/html/app/code/core/Mage/Core/Model/Layout/Update.php on line 450
#0 [internal function]: mageCoreErrorHandler(2, 'simplexml_load_...', '/var/www/html/a...', 450, Array)
#1 /var/www/html/app/code/core/Mage/Core/Model/Layout/Update.php(450): simplexml_load_string('< ?xml version=...', 'Mage_Core_Model...')
#2 /var/www/html/app/code/core/Mage/Core/Model/Layout/Update.php(275): Mage_Core_Model_Layout_Update->getFileLayoutUpdatesXml('frontend', 'MyTheme', 'Responsive', '1')
#3 /var/www/html/app/code/core/Mage/Core/Model/Layout/Update.php(347): Mage_Core_Model_Layout_Update->fetchFileLayoutUpdates()
#4 /var/www/html/app/code/core/Mage/Core/Model/Layout/Update.php(246): Mage_Core_Model_Layout_Update->fetchPackageLayoutUpdates('default')
#5 /var/www/html/app/code/core/Mage/Core/Model/Layout/Update.php(224): Mage_Core_Model_Layout_Update->merge('default')
#6 /var/www/html/app/code/core/Mage/Core/Controller/Varien/Action.php(306): Mage_Core_Model_Layout_Update->load()
#7 /var/www/html/app/code/core/Mage/Cms/Helper/Page.php(109): Mage_Core_Controller_Varien_Action->loadLayoutUpdates()
#8 /var/www/html/app/code/core/Mage/Cms/Helper/Page.php(52): Mage_Cms_Helper_Page->_renderPage(Object(Mage_Cms_IndexController), 'about-magento-d...')
#9 /var/www/html/app/code/core/Mage/Cms/controllers/IndexController.php(45): Mage_Cms_Helper_Page->renderPage(Object(Mage_Cms_IndexController), 'about-magento-d...')
#10 /var/www/html/app/code/core/Mage/Core/Controller/Varien/Action.php(418): Mage_Cms_IndexController->indexAction()
#11 /var/www/html/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(254): Mage_Core_Controller_Varien_Action->dispatch('index')
#12 /var/www/html/app/code/core/Mage/Core/Controller/Varien/Front.php(172): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#13 /var/www/html/app/code/core/Mage/Core/Model/App.php(354): Mage_Core_Controller_Varien_Front->dispatch()
#14 /var/www/html/app/Mage.php(684): Mage_Core_Model_App->run(Array)
#15 /var/www/html/index.php(91): Mage::run('', 'store')
#16 {main}
It's something related with /var/www/html/app/code/core/Mage/Core/Model/Layout/Update.php so I would edit that file and I would go to the line 450.
Just before that line write:
Mage::log(print_r($filename, true));
Make sure that your logging is enabled and refresh the page. After that, take a look to var/log/system.log. The last xml is probably what you are searching for.
I've got a site set up with the base Socialengine setup going. I've installed most of the SocialEngineAddon suite of plugins, and for some reason, the Advanced Events plugin throws this error when I try and create one ie: example.com/appeals/create I've tried renaming back to the default site-event, but the problem persists, and I'm having trouble debugging this error. Has anyone seen an error like this before? (I'm quite new to Zend/SocialEngine)
exception 'Zend_Form_Exception' with message 'No view script registered with ViewScript decorator' in /home/activism/public_html/application/libraries/Zend/Form/Decorator/ViewScript.php:162
Stack trace:
#0 /home/activism/public_html/application/libraries/Zend/Form/DisplayGroup.php(920): Zend_Form_Decorator_ViewScript->render('')
#1 /home/activism/public_html/application/libraries/Zend/Form/Decorator/FormElements.php(116): Zend_Form_DisplayGroup->render()
#2 /home/activism/public_html/application/libraries/Zend/Form.php(2933): Zend_Form_Decorator_FormElements->render('')
#3 /home/activism/public_html/application/modules/Siteevent/views/scripts/index/create.tpl(294): Zend_Form->render(Object(Zend_View))
#4 /home/activism/public_html/application/libraries/Zend/View.php(108): include('/home/activism/...')
#5 /home/activism/public_html/application/libraries/Zend/View/Abstract.php(890): Zend_View->_run('/home/activism/...')
#6 /home/activism/public_html/application/libraries/Zend/Controller/Action/Helper/ViewRenderer.php(900): Zend_View_Abstract->render('index/create.tp...')
#7 /home/activism/public_html/application/libraries/Zend/Controller/Action/Helper/ViewRenderer.php(921): Zend_Controller_Action_Helper_ViewRenderer->renderScript('index/create.tp...', NULL)
#8 /home/activism/public_html/application/libraries/Zend/Controller/Action/Helper/ViewRenderer.php(960): Zend_Controller_Action_Helper_ViewRenderer->render()
#9 /home/activism/public_html/application/libraries/Zend/Controller/Action/HelperBroker.php(277): Zend_Controller_Action_Helper_ViewRenderer->postDispatch()
#10 /home/activism/public_html/application/libraries/Zend/Controller/Action.php(527): Zend_Controller_Action_HelperBroker->notifyPostDispatch()
#11 /home/activism/public_html/application/libraries/Zend/Controller/Dispatcher/Standard.php(308): Zend_Controller_Action->dispatch('createAction')
#12 /home/activism/public_html/application/libraries/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#13 /home/activism/public_html/application/modules/Core/Bootstrap.php(83): Zend_Controller_Front->dispatch()
#14 /home/activism/public_html/application/libraries/Engine/Application.php(160): Core_Bootstrap->run()
#15 /home/activism/public_html/application/index.php(211): Engine_Application->run()
#16 /home/activism/public_html/index.php(24): include('/home/activism/...')
#17 {main}
Its seems you need to verify license .Contact the Socialengineaddson guys will help you.
My magento frontend and backend not load and show error.
How I can fix this?
Notice: error show after I disable all modules (I know that's wrong).
How I can fix this?
I'm Beginner in magento.
Thank you for help.
Notice: Undefined index: httponly in
D:\xampp\htdocs\magento\magento\app\code\core\Mage\Core\Model\Session\Abstract\Varien.php on line 104
#0 D:\xampp\htdocs\magento\magento\app\code\core\Mage\Core\Model\Session\Abstract\Varien.php(104): mageCoreErrorHandler(8, 'Undefined index...', 'D:\\xampp\\htdocs...', 104, Array)
#1 D:\xampp\htdocs\magento\magento\app\code\core\Mage\Core\Model\Session\Abstract\Varien.php(222): Mage_Core_Model_Session_Abstract_Varien->start('frontend')
#2 D:\xampp\htdocs\magento\magento\app\code\core\Mage\Core\Model\Session\Abstract.php(84): Mage_Core_Model_Session_Abstract_Varien->init('core', 'frontend')
#3 D:\xampp\htdocs\magento\magento\app\code\core\Mage\Core\Model\Session.php(42): Mage_Core_Model_Session_Abstract->init('core', 'frontend')
#4 D:\xampp\htdocs\magento\magento\app\code\core\Mage\Core\Model\Config.php(1348): Mage_Core_Model_Session->__construct(Array)
#5 D:\xampp\htdocs\magento\magento\app\Mage.php(463): Mage_Core_Model_Config->getModelInstance('core/session', Array)
#6 D:\xampp\htdocs\magento\magento\app\Mage.php(477): Mage::getModel('core/session', Array)
#7 D:\xampp\htdocs\magento\magento\app\code\core\Mage\Core\Controller\Varien\Action.php(493): Mage::getSingleton('core/session', Array)
#8 D:\xampp\htdocs\magento\magento\app\code\core\Mage\Core\Controller\Front\Action.php(64): Mage_Core_Controller_Varien_Action->preDispatch()
#9 D:\xampp\htdocs\magento\magento\app\code\core\Mage\Core\Controller\Varien\Action.php(407): Mage_Core_Controller_Front_Action->preDispatch()
#10 D:\xampp\htdocs\magento\magento\app\code\core\Mage\Core\Controller\Varien\Router\Standard.php(250): Mage_Core_Controller_Varien_Action->dispatch('index')
#11 D:\xampp\htdocs\magento\magento\app\code\core\Mage\Core\Controller\Varien\Front.php(172): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#12 D:\xampp\htdocs\magento\magento\app\code\core\Mage\Core\Model\App.php(354): Mage_Core_Controller_Varien_Front->dispatch()
#13 D:\xampp\htdocs\magento\magento\app\Mage.php(684): Mage_Core_Model_App->run(Array)
#14 D:\xampp\htdocs\magento\magento\index.php(89): Mage::run('', 'store')
#15 {main}
You need to disable module which only reside in local or community. except Cm_reddis and Phoenix extension. then refresh cache and check it.
I am using socialengine4 and my notifications keep giving me this error. I thought this was some type of config thing and look into the database or the notifications setting but i have not been able to fix this error. Can anyone point me in the right direction?
2012-05-22T17:40:21+00:00 CRIT (2):
Error Code: dc0cf5
exception 'Engine_Api_Exception' with message 'Unknown item type: news_content' in /var/www/html/application/libraries/Engine/Api.php:417
Stack trace:
#0 /var/www/html/application/libraries/Engine/Api.php(522): Engine_Api->getItemInfo('news_content', 'moduleInflected')
#1 /var/www/html/application/libraries/Engine/Api.php(330): Engine_Api->getItemApi('news_content')
#2 /var/www/html/application/modules/Activity/Model/Notification.php(80): Engine_Api->getItem('news_content', 2622)
#3 /var/www/html/application/modules/Activity/Model/Notification.php(49): Activity_Model_Notification->getObject()
#4 /var/www/html/application/modules/Activity/Model/Notification.php(98): Activity_Model_Notification->getContent()
#5 /var/www/html/application/modules/Activity/views/scripts/notifications/pulldown.tpl(17): Activity_Model_Notification->__toString()
#6 /var/www/html/application/libraries/Zend/View.php(108): include('/var/www/html/a...')
#7 /var/www/html/application/libraries/Zend/View/Abstract.php(835): Zend_View->_run('/var/www/html/a...')
#8 /var/www/html/application/libraries/Zend/Controller/Action/Helper/ViewRenderer.php(903): Zend_View_Abstract->render('notifications/p...')
#9 /var/www/html/application/libraries/Zend/Controller/Action/Helper/ViewRenderer.php(924): Zend_Controller_Action_Helper_ViewRenderer->renderScript('notifications/p...', NULL)
#10 /var/www/html/application/libraries/Zend/Controller/Action/Helper/ViewRenderer.php(964): Zend_Controller_Action_Helper_ViewRenderer->render()
#11 /var/www/html/application/modules/Activity/controllers/NotificationsController.php(109): Zend_Controller_Action_Helper_ViewRenderer->postDispatch()
#12 /var/www/html/application/libraries/Zend/Controller/Action.php(512): Activity_NotificationsController->pulldownAction()
#13 /var/www/html/application/libraries/Zend/Controller/Dispatcher/Standard.php(289): Zend_Controller_Action->dispatch('pulldownAction')
#14 /var/www/html/application/libraries/Zend/Controller/Front.php(946): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#15 /var/www/html/application/modules/Core/Bootstrap.php(75): Zend_Controller_Front->dispatch()
#16 /var/www/html/application/libraries/Engine/Application.php(160): Core_Bootstrap->run()
#17 /var/www/html/application/index.php(194): Engine_Application->run()
#18 /var/www/html/index.php(24): include('/var/www/html/a...')
#19 {main}
The settings for the items are in Application->modules->'modulename'->settings>manifest.php
There is an array called items which i added 'news_content' to and it worked.
I managed to fix it.
The problem was that somehow (despite lack of enable/disable link on the module box in the list of modules) it was disabled.
To enable it I accessed the 'engine4_core_modules' table, searched for 'storage' name and changed the 'enabled' cell content from 0 to 1.