Skip to content

Commit

Permalink
Fix config error
Browse files Browse the repository at this point in the history
This fixes the following error when saving configuration:

```
Cannot send headers; headers already sent in /var/www/app/code/community/Welance/Kraken/Model/Observer.php, line 1

#0 /var/www/lib/Zend/Controller/Response/Abstract.php(148): Zend_Controller_Response_Abstract->canSendHeaders(true)
kraken-io#1 /var/www/app/code/core/Mage/Core/Controller/Response/Http.php(107): Zend_Controller_Response_Abstract->setRedirect('http://vaping.v...', 302)
kraken-io#2 /var/www/app/code/core/Mage/Adminhtml/Controller/Action.php(358): Mage_Core_Controller_Response_Http->setRedirect('http://vaping.v...')
kraken-io#3 /var/www/app/code/core/Mage/Adminhtml/controllers/System/ConfigController.php(195): Mage_Adminhtml_Controller_Action->_redirect('*/*/edit', Array)
kraken-io#4 /var/www/app/code/core/Mage/Core/Controller/Varien/Action.php(418): Mage_Adminhtml_System_ConfigController->saveAction()
kraken-io#5 /var/www/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(254): Mage_Core_Controller_Varien_Action->dispatch('save')
kraken-io#6 /var/www/app/code/core/Mage/Core/Controller/Varien/Front.php(172): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
kraken-io#7 /var/www/app/code/core/Mage/Core/Model/App.php(365): Mage_Core_Controller_Varien_Front->dispatch()
kraken-io#8 /var/www/app/Mage.php(691): Mage_Core_Model_App->run(Array)
kraken-io#9 /var/www/index.php(84): Mage::run('', 'store')
kraken-io#10 {main}
```
  • Loading branch information
vseager authored Dec 13, 2018
1 parent 8f6721f commit 8f89479
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/code/community/Welance/Kraken/Model/Observer.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php
<?php

class Welance_Kraken_Model_Observer
{
Expand Down Expand Up @@ -93,4 +93,4 @@ public function cacheRedirect($observer)
exit;
}
}
}
}

0 comments on commit 8f89479

Please sign in to comment.