Your shopping cart is empty. Browse our Store

Magento

Open Source eCommerce Evolved

Magento Forum

   
Page 1 of 2
headers already sent
 
elina
Jr. Member
 
Avatar
Total Posts:  15
Joined:  2008-04-03
Heraklion Crete
 

hello

i’m having a problem…
after the creation of a catalog rule - 50% discount rule / all products,
every time i’m saving something - anything.. like a new product or an attribute or a category etc

confused
a strange error apears but the ‘save’ is done :

Cannot send headersheaders already sent in /home/SITE/public_html/FOLDER/app/code/core/Mage/Core/functions.phpline 191

In the frontend everything was ok (and the discount rule was working ) but now
after four times - saving & testing - i can’t see the admin panel neither the frontend..
magento is down

downer

ps: do i have to delete cache or something ?? 

please help me..

 
Magento Community Magento Community
Magento Community
Magento Community
 
elina
Jr. Member
 
Avatar
Total Posts:  15
Joined:  2008-04-03
Heraklion Crete
 

Magento is back .. after 20 min cheese

the problem is the same
when i’m clicking ‘save’ it takes a long time to renpond..

and the attached screenshot apears before the ...’headers already sent...’ message:

“There has been an error processing your request.”.
Cannot send headers; headers already sent in /home/SITE/public_html/FOLDER/app/code/core/Mage/Core/functions.php, line 191

Image Attachments
error_before_headers_already_sent.jpg
 
Magento Community Magento Community
Magento Community
Magento Community
 
NickL
Sr. Member
 
Avatar
Total Posts:  186
Joined:  2007-08-31
 

I’m having the exact same issue… very odd. It happens everytime a record is saved. However, the site still remains up. It’s just a bit of a nuisance. Anyone have any idea whats causing this?

 Signature 

nickL ~ i build stuff
Twitter me: twitter.com/ibuildstuff
My Blog: ibuildstuff.wordpress.com
How did I go magento? : http://www.kanemarie.com

 
Magento Community Magento Community
Magento Community
Magento Community
 
sebshop
Jr. Member
 
Total Posts:  5
Joined:  2008-03-16
 

Hi all!

I’m also having the same issue. I’m running the version 1.0.
I’m on http://www.hostgator.com.

For exemple, as I’m saving changes on my product (add images), I will get the same error.
I tried to edit the configuration : that works without any problem. It seems that appears only when I’m editing the products.

“Cannot send headers; headers already sent in /home/my_user/public_html/website/app/code/core/Mage/Core/functions.php, line 191”

That error is displayed on the page : http://www.domain.com/website/report/?id=120760259341&s;=admin

Then, when I return to the home of the “Admin panel”, I can also see that the change was saved. The frontend confirm this.

Can someone help us?

Many thanks!

Seb

 
Magento Community Magento Community
Magento Community
Magento Community
 
mascker
Member
 
Avatar
Total Posts:  42
Joined:  2007-08-31
Portugal
 

Hi,

Try this.

Change the error_reporting setting on your php.ini file to

error_reporting = E_ALL & ~E_NOTICE

OR add this line to your index.php before anything else

error_reporting(E_ALL ^ E_NOTICE);

I think this will solve your problem.

Regards,

 Signature 

Pétala Azul

 
Magento Community Magento Community
Magento Community
Magento Community
 
elina
Jr. Member
 
Avatar
Total Posts:  15
Joined:  2008-04-03
Heraklion Crete
 

the error_reporting on my php.ini file was already E_ALL & ~E_NOTICE

i also tried to add “error_reporting(E_ALL ^ E_NOTICE); “
in my index.php

the error apears again downer

dId this solution worked for you????

 
Magento Community Magento Community
Magento Community
Magento Community
 
elina
Jr. Member
 
Avatar
Total Posts:  15
Joined:  2008-04-03
Heraklion Crete
 

i set in the Catalog Price Rule --> Actions --> “ Stop further rules processing “ to “NO”
and my problem solved !!! !! !!  tongue rolleye

Product was successfully saved !!!!!!!!!

Anyone have any idea what is “ Stop further rules processing “ ??

 
Magento Community Magento Community
Magento Community
Magento Community
 
dan_w
Sr. Member
 
Total Posts:  225
Joined:  2008-01-04
 

We’ve been running into this error ALOT lately. As for what “stop further rules processing” is, that just means that additional discount or price schemes cannot be applied. Basically, further deals don’t apply to the deal that you’re already receiving. We’re receiving the same warning about headers already being sent whenever I try to edit attributes, configuration and stores. It appears to be a caching issue because when I disable cache for EAV types and attributes it instantly breaks the installation, whereas if the message appears while editing a setting a simple reload fixes the problem. I tried deleting cache directory, and it broke the installation. The only way that I have found to fix it is to open functions.php comment out the ErrorHandler function, which will restore access to the admin section. Once in, I can reset the cache and everything works fine, well almost until I try to edit attributes, config or stores. But as said, these are mere nuasances and don’t break the installation like disabling the EAV cache does. I’m not sure if this is specific to the number of attributes we’ve created or not, but insight into this would be appreciated.

Thanks,
Dan

 
Magento Community Magento Community
Magento Community
Magento Community
 
NickL
Sr. Member
 
Avatar
Total Posts:  186
Joined:  2007-08-31
 

@dan_w

Great Explanation. I couldn’t have said it better… reason why I comment is because thats the exact same situation I’m in. I experience it sporadically while doing a variety of admin functions, if I just re-load the admin… the error disappears and the record I’m working on (product,attribute,category) works fine.

 Signature 

nickL ~ i build stuff
Twitter me: twitter.com/ibuildstuff
My Blog: ibuildstuff.wordpress.com
How did I go magento? : http://www.kanemarie.com

 
Magento Community Magento Community
Magento Community
Magento Community
 
sebshop
Jr. Member
 
Total Posts:  5
Joined:  2008-03-16
 

Yes!  Thanks!

I also set the rule to NO, and it solved my problem.
Excellent!

Thanks to all reader and community members!

Sebastien

 
Magento Community Magento Community
Magento Community
Magento Community
 
paco
Jr. Member
 
Total Posts:  10
Joined:  2008-03-04
 

I’m having the same error message, but I can’t get to any of the frontend or backend… the error page is the only page that will load. I’m not a coder, but I’m willing to open up any file and tinker with it (saving original, of course).

Will you please explain what file to open and what to change? I wasn’t familiar with “comment out” the ErrorHandler in functions.php; if you could explain that, I’ll try it. Quite frankly, I’m at a loss and it seems there are several people experiencing this problem

(Cannot send headers; headers already sent in /home/xxxxxx/public_html/store/app/code/core/Mage/Core/functions.php, line 191)

Thank you for your help!

 
Magento Community Magento Community
Magento Community
Magento Community
 
dan_w
Sr. Member
 
Total Posts:  225
Joined:  2008-01-04
 

Hi paco,
Yes, this does seem to be a serious ongoing battle with the magento cache that we have not solved yet. If you open up the file in your error message (app/code/core/Mage/core/functions.php) look for this function that starts on approximately line 167. Place this in front of it:
/*

No find the end of the function, should be around line 242-243. Place this before the start of the next function (function mageDebugBacktrace):

*/

Now you should have successfully commented out the function that is causing you problems. Save the file and try to go to your admin. It will definitely throw some error messages in your header area, but it will at least let you in. Go to cache management and enable if disabled and/or refresh. Now remove the changes you made to functions.php and it should look normal again. Hopefully someone will find out what is happening and provide a permanent resolution.

Dan

 
Magento Community Magento Community
Magento Community
Magento Community
 
paco
Jr. Member
 
Total Posts:  10
Joined:  2008-03-04
 

Dan, thank you so much for the explanation. While I’m pretty ignorant, it’s helping. After doing what you said, I’ve gotten this message now:

Warning: set_error_handler() expects the argument (mageCoreErrorHandler) to be a valid callback in /home/********/public_html/store/app/code/core/Mage/Core/Model/App.php on line 452

Catchable fatal error: Argument 1 passed to Mage_Core_Model_Store::setGroup() must be an instance of Mage_Core_Model_Store_Group, null given, called in /home/********/public_html/store/app/code/core/Mage/Core/Model/App.php on line 342 and defined in /home/********/public_html/store/app/code/core/Mage/Core/Model/Store.php on line 585

I’m using cPanel to access the database through phpmyadmin, so I’m trying to figure out where in the database to look to change Null to “void” or “no” or whatever it’s supposed to be. Or am I looking in the wrong place?

By the way, I don’t expect replies because I know your help is already above and beyond. I do appreciate your time. So in any event, thank you!

 
Magento Community Magento Community
Magento Community
Magento Community
 
paco
Jr. Member
 
Total Posts:  10
Joined:  2008-03-04
 

This is edited from what I wrote 7 hours ago. If you happened to have read it, I think I was too critical of Magento. I mean, Shazzam, they’ve made a free commerce solution that rivals professional software. It’s quite the digital contraption. If it works well, amen! If not, how can I complain? There are bugs to work out for sure before I could pitch Magento to my company for business use, but I am very excited about the potential of it.

SO… here’s an edited and more appropriate posting:

Okay, I went a-googlin’… and here’s what I found…

I went to “...functions.php...” at line 191 and deleted white space.

And now my store works.

The site that gave me the answer was:
http://www.geeklog.net/faqman/index.php?op=view&t;=38

And also: http://www.hostingfanatic.com/webdev/php/101/headers-already-sent.html

Now, I realize I’m almost totally ignorant to the whole coding and php world, but it seemed like a pretty simple fix once it was explained. That said, perhaps one of the Magento coders fixed it recently and it was a coincidence.

So check out those two links and start deleting whitespace. That’s all I can think of. Oh, and I went into my database and deleted several entries (a store, a website, etc.) just to try to get back to some sort of default setup.

Hope that all made sense.

I will try to find other posts with the same problem and offer this potential solution.

 
Magento Community Magento Community
Magento Community
Magento Community
 
kingkao
Member
 
Avatar
Total Posts:  49
Joined:  2008-04-02
Toronto
 

I get a similar error

Cannot send headers; headers already sent in /home/content/.../Mage/Adminhtml/controllers/Catalog/ProductController.php, line 346

Any help on this. I went to line 346, but do not see any white space to get rid of…
I know absolutely nothing about php.

 
Magento Community Magento Community
Magento Community
Magento Community
 
BlackDesk
Member
 
Avatar
Total Posts:  34
Joined:  2008-03-10
San Diego
 

same here:

Cannot send headers; headers already sent in /home/shopme5/public_html/store/app/code/core/Mage/Adminhtml/controllers/Catalog/ProductController.php, line 350
Trace:
#0 /home/shopme5/public_html/store/lib/Zend/Controller/Response/Abstract.php(147): Zend_Controller_Response_Abstract->canSendHeaders(true)
#1 /home/shopme5/public_html/store/app/code/core/Mage/Adminhtml/Controller/Action.php(236): Zend_Controller_Response_Abstract->setRedirect(’http://shopmedp...’)
#2 /home/shopme5/public_html/store/app/code/core/Mage/Adminhtml/controllers/Catalog/ProductController.php(360): Mage_Adminhtml_Controller_Action->_redirect(’*/*/edit’, Array)
#3 /home/shopme5/public_html/store/app/code/core/Mage/Core/Controller/Varien/Action.php(342): Mage_Adminhtml_Catalog_ProductController->saveAction()
#4 /home/shopme5/public_html/store/app/code/core/Mage/Core/Controller/Varien/Router/Admin.php(148): Mage_Core_Controller_Varien_Action->dispatch(’save’)
#5 /home/shopme5/public_html/store/app/code/core/Mage/Core/Controller/Varien/Front.php(146): Mage_Core_Controller_Varien_Router_Admin->match(Object(Mage_Core_Controller_Request_Http))
#6 /home/shopme5/public_html/store/app/Mage.php(427): Mage_Core_Controller_Varien_Front->dispatch()
#7 /home/shopme5/public_html/store/index.php(40): Mage::run()
#8 {main}

HELPPPPPP~~~~!!!

 Signature 

_____________________________________________________________________

If we did all the things we are capable of doing, we would literally astonish ourselves.

Thomas Edison

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top
Page 1 of 2
 
Sales: Call 877.832.5289 (North America) 310.295.4144 (International) to request a call-back.
© Copyright 2008 Varien. Magento is a trademark of Irubin Consulting Inc. DBA Varien
Privacy Policy|Terms of Service
Magento Community Count
32073 users|509 users currently online|71928 forum posts