# Headers already sent error

**URL:** <https://community.wpbeaverbuilder.com/t/headers-already-sent-error/3942>\
**Category:** General Discussions\
**Created:** [July 28, 2015, 3:31pm UTC](https://community.wpbeaverbuilder.com/t/headers-already-sent-error/3942 "2015-07-28T15:31:46Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![wicho696](https://community.wpbeaverbuilder.com/user_avatar/community.wpbeaverbuilder.com/wicho696/32/216_2.png) [@wicho696](https://community.wpbeaverbuilder.com/u/wicho696)\
**Post date:** [July 28, 2015, 3:31pm UTC](https://community.wpbeaverbuilder.com/t/headers-already-sent-error/3942/1 "2015-07-28T15:31:46Z")

</div>

Hi, I keep getting this error off and on. Not all the time, I just refresh the page n it gets fixed. But wondering if it might b something I can fix in the theme.

This site  
[http://rwdpagebuilder.com/client-demo/](http://rwdpagebuilder.com/client-demo/)  
`Warning: Cannot modify header information - headers already sent by (output started at /home/rwdpageb/public_html/wp-content/themes/bb-theme/header.php:2) in /home/rwdpageb/public_html/wp-includes/pluggable.php on line 947`

I’m using the plugin ninja demo. I would really not want to have to stop using it. Cuz it’s pretty cool.  
But wondering if u have any idea wat could b the issue?

---

<div class="post-metadata">

**Author:** ![bencarlo](https://community.wpbeaverbuilder.com/user_avatar/community.wpbeaverbuilder.com/bencarlo/32/287_2.png) [@bencarlo](https://community.wpbeaverbuilder.com/u/bencarlo)\
**Post date:** [July 29, 2015, 5:10am UTC](https://community.wpbeaverbuilder.com/t/headers-already-sent-error/3942/2 "2015-07-29T05:10:51Z")

</div>

Hey Luis,

Do you think you could send us temp admin access to the site so we can check? If you could include FTP access as well that would be great! 🙂

Ben

---

<div class="post-metadata">

**Author:** ![wicho696](https://community.wpbeaverbuilder.com/user_avatar/community.wpbeaverbuilder.com/wicho696/32/216_2.png) [@wicho696](https://community.wpbeaverbuilder.com/u/wicho696)\
**Post date:** [July 29, 2015, 6:29am UTC](https://community.wpbeaverbuilder.com/t/headers-already-sent-error/3942/3 "2015-07-29T06:29:28Z")

</div>

[Content Hidden]

---

<div class="post-metadata">

**Author:** ![bencarlo](https://community.wpbeaverbuilder.com/user_avatar/community.wpbeaverbuilder.com/bencarlo/32/287_2.png) [@bencarlo](https://community.wpbeaverbuilder.com/u/bencarlo)\
**Post date:** [July 29, 2015, 7:42am UTC](https://community.wpbeaverbuilder.com/t/headers-already-sent-error/3942/4 "2015-07-29T07:42:50Z")

</div>

Hey Luis,

How often does the error pop up? I got them earlier but now I can’t so there’s no way to tell if what I did fixed it. I just went over to the demo page a few times using an incognito window, closing it down every time to make sure it’s not cached. Are you still getting it from your end?

Ben

---

<div class="post-metadata">

**Author:** ![wicho696](https://community.wpbeaverbuilder.com/user_avatar/community.wpbeaverbuilder.com/wicho696/32/216_2.png) [@wicho696](https://community.wpbeaverbuilder.com/u/wicho696)\
**Post date:** [July 29, 2015, 6:25pm UTC](https://community.wpbeaverbuilder.com/t/headers-already-sent-error/3942/5 "2015-07-29T18:25:30Z")

</div>

Ben,

No errors on my end. I also tried the incognito mode, don’t know why I didn’t think of that before.

Did you tweak something in the theme? I’d like to know because I’m assuming it will get overwritten in the next BB Theme update.

---

<div class="post-metadata">

**Author:** ![bencarlo](https://community.wpbeaverbuilder.com/user_avatar/community.wpbeaverbuilder.com/bencarlo/32/287_2.png) [@bencarlo](https://community.wpbeaverbuilder.com/u/bencarlo)\
**Post date:** [July 30, 2015, 5:06am UTC](https://community.wpbeaverbuilder.com/t/headers-already-sent-error/3942/6 "2015-07-30T05:06:32Z")

</div>

Hey Luis,

I actually got the error just now. I’m assigning one of the guys on this so they can check further. 🙂

Ben

---

<div class="post-metadata">

**Author:** ![bencarlo](https://community.wpbeaverbuilder.com/user_avatar/community.wpbeaverbuilder.com/bencarlo/32/287_2.png) [@bencarlo](https://community.wpbeaverbuilder.com/u/bencarlo)\
**Post date:** [July 30, 2015, 5:07am UTC](https://community.wpbeaverbuilder.com/t/headers-already-sent-error/3942/7 "2015-07-30T05:07:44Z")

</div>

[Content Hidden]

---

<div class="post-metadata">

**Author:** ![justin](https://community.wpbeaverbuilder.com/user_avatar/community.wpbeaverbuilder.com/justin/32/16_2.png) [@justin](https://community.wpbeaverbuilder.com/u/justin)\
**Post date:** [July 30, 2015, 10:18am UTC](https://community.wpbeaverbuilder.com/t/headers-already-sent-error/3942/8 "2015-07-30T10:18:52Z")

</div>

Hi Luis,

I’m having trouble recreating this as well. I took a look at the lines throwing errors in the /home/rwdpageb/public\_html/wp-includes/pluggable.php file and see that all of those lines are setting cookies. Cookies set in PHP are sent via headers that need to be sent before any HTML output, so it appears that something is calling wp\_clear\_auth\_cookie after that point. We’re not doing anything like that, so I’m assuming it’s probably Ninja Demo’s error. Have you tried contacting them?

EDIT: I just checked and they are calling it in the Ninja\_Demo\_Sandbox::create method. I’m not sure if that’s causing the issue, but there’s a chance.

Justin

---

<div class="post-metadata">

**Author:** ![wicho696](https://community.wpbeaverbuilder.com/user_avatar/community.wpbeaverbuilder.com/wicho696/32/216_2.png) [@wicho696](https://community.wpbeaverbuilder.com/u/wicho696)\
**Post date:** [July 30, 2015, 10:27am UTC](https://community.wpbeaverbuilder.com/t/headers-already-sent-error/3942/9 "2015-07-30T10:27:02Z")

</div>

Hi Justin,

I will definitely contact ninja demo. Thanks for looking into this.

I hope they can fix it, because this plugin could sure help out a lot of bb agency users.

---

<div class="post-metadata">

**Author:** ![justin](https://community.wpbeaverbuilder.com/user_avatar/community.wpbeaverbuilder.com/justin/32/16_2.png) [@justin](https://community.wpbeaverbuilder.com/u/justin)\
**Post date:** [July 30, 2015, 10:27am UTC](https://community.wpbeaverbuilder.com/t/headers-already-sent-error/3942/10 "2015-07-30T10:27:44Z")

</div>

You’re welcome! Let us know what they say.

Justin

---

<div class="post-metadata">

**Author:** ![billy](https://community.wpbeaverbuilder.com/user_avatar/community.wpbeaverbuilder.com/billy/32/11_2.png) [@billy](https://community.wpbeaverbuilder.com/u/billy)\
**Post date:** [August 13, 2015, 12:43pm UTC](https://community.wpbeaverbuilder.com/t/headers-already-sent-error/3942/11 "2015-08-13T12:43:00Z")

</div>

[Content Hidden]

---

<div class="post-metadata">

**Author:** ![kstover](https://community.wpbeaverbuilder.com/user_avatar/community.wpbeaverbuilder.com/kstover/32/486_2.png) [@kstover](https://community.wpbeaverbuilder.com/u/kstover)\
**Post date:** [August 17, 2015, 10:56am UTC](https://community.wpbeaverbuilder.com/t/headers-already-sent-error/3942/12 "2015-08-17T10:56:37Z")

</div>

Hey guys,

Thanks for doing some initial troubleshooting and moving this over so that I can respond! Our create sandbox method that you mentioned only happens when a user clicks on the “Try Demo” button. I think the issue that he is having is upon initial page load. I’ve done some digging, and I can’t find anywhere else in the plugin that calls the function you referenced. Can you find any other instances?

---

<div class="post-metadata">

**Author:** ![justin](https://community.wpbeaverbuilder.com/user_avatar/community.wpbeaverbuilder.com/justin/32/16_2.png) [@justin](https://community.wpbeaverbuilder.com/u/justin)\
**Post date:** [August 17, 2015, 12:14pm UTC](https://community.wpbeaverbuilder.com/t/headers-already-sent-error/3942/13 "2015-08-17T12:14:13Z")

</div>

You bet! Thanks for helping with this. I didn’t find any other instances of wp\_clear\_auth\_cookie in Ninja Demo, and Beaver Builder doesn’t make use of any login stuff. I’m wondering if maybe it’s a hosting issue. Do you think that’s possible?

---

<div class="post-metadata">

**Author:** ![wicho696](https://community.wpbeaverbuilder.com/user_avatar/community.wpbeaverbuilder.com/wicho696/32/216_2.png) [@wicho696](https://community.wpbeaverbuilder.com/u/wicho696)\
**Post date:** [August 17, 2015, 5:26pm UTC](https://community.wpbeaverbuilder.com/t/headers-already-sent-error/3942/14 "2015-08-17T17:26:55Z")

</div>

HI guys,

and thanks for looking into this. Honestly it’s not a huge deal, I just found it very odd that it happens on the first page load and only with the BB Theme.

As far as hosting, the demo is currenly on SiteGround, and was previously on Hostgator, but I got the same error.

All in all it’s a great plugin and I really love it.

Perhaps with future updates the error will resolve itself.

Thank you,  
Luis

---

<div class="post-metadata">

**Author:** ![justin](https://community.wpbeaverbuilder.com/user_avatar/community.wpbeaverbuilder.com/justin/32/16_2.png) [@justin](https://community.wpbeaverbuilder.com/u/justin)\
**Post date:** [August 18, 2015, 9:05am UTC](https://community.wpbeaverbuilder.com/t/headers-already-sent-error/3942/15 "2015-08-18T09:05:44Z")

</div>

Thanks, Luis. Do you know if it’s happening with other themes installed and the plugin? Meaning that it might be the theme that’s causing the issue? Just curious. If it’s happening with other themes, then the issue could be with the BB plugin.

---

<div class="post-metadata">

**Author:** ![kstover](https://community.wpbeaverbuilder.com/user_avatar/community.wpbeaverbuilder.com/kstover/32/486_2.png) [@kstover](https://community.wpbeaverbuilder.com/u/kstover)\
**Post date:** [August 24, 2015, 11:35am UTC](https://community.wpbeaverbuilder.com/t/headers-already-sent-error/3942/16 "2015-08-24T11:35:47Z")

</div>

Hey guys,

I haven’t been able to track this down on our end. We do use sessions, so could that be causing the issue?

---

<div class="post-metadata">

**Author:** ![justin](https://community.wpbeaverbuilder.com/user_avatar/community.wpbeaverbuilder.com/justin/32/16_2.png) [@justin](https://community.wpbeaverbuilder.com/u/justin)\
**Post date:** [August 26, 2015, 8:08am UTC](https://community.wpbeaverbuilder.com/t/headers-already-sent-error/3942/17 "2015-08-26T08:08:33Z")

</div>

Thanks for checking in! I haven’t made much progress either. I was able to recreate it intermittently on Luis’ site but not on my own server. Are you able to recreate the issue with Beaver Builder/Ninja Demo on your end?

---

<div class="post-metadata">

**Author:** ![system](https://community.wpbeaverbuilder.com/uploads/default/original/2X/9/9db1b183a7ea1efa26199a2a2b3511d742473dae.png) [@system](https://community.wpbeaverbuilder.com/u/system)\
**Post date:** [April 27, 2019, 10:17pm UTC](https://community.wpbeaverbuilder.com/t/headers-already-sent-error/3942/18 "2019-04-27T22:17:35Z")

</div>

Closed on April 27, 2019, 10:17pm UTC


