# \[Solved\] Help with errors non-static method, can't not modify header information

**URL:** <https://forum.phpvms.net/t/solved-help-with-errors-non-static-method-cant-not-modify-header-information/12851>\
**Category:** kACARS\
**Created:** [April 21, 2019, 4:20pm UTC](https://forum.phpvms.net/t/solved-help-with-errors-non-static-method-cant-not-modify-header-information/12851 "2019-04-21T16:20:00Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![ARV187](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/a/439d5e/32.png) [@ARV187](https://forum.phpvms.net/u/ARV187)\
**Post date:** [April 21, 2019, 4:20pm UTC](https://forum.phpvms.net/t/solved-help-with-errors-non-static-method-cant-not-modify-header-information/12851/1 "2019-04-21T16:20:00Z")

</div>

Hi, someone know how fix this error messages? Thank you!

---

<div class="post-metadata">

**Author:** ![ProAvia](https://forum.phpvms.net/user_avatar/forum.phpvms.net/proavia/32/135_2.png) [@ProAvia](https://forum.phpvms.net/u/ProAvia)\
**Post date:** [April 21, 2019, 6:25pm UTC](https://forum.phpvms.net/t/solved-help-with-errors-non-static-method-cant-not-modify-header-information/12851/2 "2019-04-21T18:25:39Z")

</div>

This is probably not a kACARS\_Free issue. The issue is with your SchedulesData.class.php

Search the forums for the phrase “non static method”. This has been covered many times before. And if you have this error here, most probably you will eventually have it in other places as well.

---

<div class="post-metadata">

**Author:** ![ARV187](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/a/439d5e/32.png) [@ARV187](https://forum.phpvms.net/u/ARV187)\
**Post date:** [April 21, 2019, 6:52pm UTC](https://forum.phpvms.net/t/solved-help-with-errors-non-static-method-cant-not-modify-header-information/12851/3 "2019-04-21T18:52:49Z")

</div>

I know, There are a post with the issue static method, I fixed the ones that I saw in the post. I will check again!!.

So…“cannot modify header information”? any clue?

Thanks!

---

<div class="post-metadata">

**Author:** ![ProAvia](https://forum.phpvms.net/user_avatar/forum.phpvms.net/proavia/32/135_2.png) [@ProAvia](https://forum.phpvms.net/u/ProAvia)\
**Post date:** [April 21, 2019, 7:22pm UTC](https://forum.phpvms.net/t/solved-help-with-errors-non-static-method-cant-not-modify-header-information/12851/4 "2019-04-21T19:22:05Z")

</div>

Fix the first one and see if the header info one goes away.

---

<div class="post-metadata">

**Author:** ![ARV187](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/a/439d5e/32.png) [@ARV187](https://forum.phpvms.net/u/ARV187)\
**Post date:** [April 22, 2019, 2:28pm UTC](https://forum.phpvms.net/t/solved-help-with-errors-non-static-method-cant-not-modify-header-information/12851/5 "2019-04-22T14:28:41Z")

</div>

It was just the only line one that had not changed more than a year ago with “static”. 😅

SchedulesData.class.php L739 public **static** function getLatestBid($pilotid).

&nbsp;

I can’t reproduce the error again nor before applying the fix, It only appeared once. Seems that the “you may be able to continue” was serious and has not reappeared.

Will the “cannot modify header information” be fixed after the change?

I found the file, in L394 say: “header(‘Content-type: text/xml’);”

```
public function sendXML($params) { $xml = new SimpleXMLElement("\<sitedata /\>"); $info\_xml = $xml-\>addChild('info'); foreach($params as $name =\> $value) { $info\_xml-\>addChild($name, $value); } header('Content-type: text/xml'); $xml\_string = $xml-\>asXML(); echo $xml\_string; # For debug #$this-\>log("Sending: \n".print\_r($xml\_string, true), 'kacars'); return; }

```

&nbsp;

---

<div class="post-metadata">

**Author:** ![ProAvia](https://forum.phpvms.net/user_avatar/forum.phpvms.net/proavia/32/135_2.png) [@ProAvia](https://forum.phpvms.net/u/ProAvia)\
**Post date:** [April 22, 2019, 2:50pm UTC](https://forum.phpvms.net/t/solved-help-with-errors-non-static-method-cant-not-modify-header-information/12851/6 "2019-04-22T14:50:50Z")

</div>

Did changing SchedulesData.class.php fix the issue? Or are you still seeing the “header” issues?

Sometimes it could be a transient issue. Clicking on “Continue” usually will allow the application to continue - and you may not see the issue again.

---

<div class="post-metadata">

**Author:** ![ARV187](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/a/439d5e/32.png) [@ARV187](https://forum.phpvms.net/u/ARV187)\
**Post date:** [April 22, 2019, 6:21pm UTC](https://forum.phpvms.net/t/solved-help-with-errors-non-static-method-cant-not-modify-header-information/12851/7 "2019-04-22T18:21:05Z")

</div>

The application allow me to continue and I never saw the issue again, but I wanted fix the issue anyway, and there are a forgotten row without static function hehe.

So, thanks for your help!

---

<div class="post-metadata">

**Author:** ![ProAvia](https://forum.phpvms.net/user_avatar/forum.phpvms.net/proavia/32/135_2.png) [@ProAvia](https://forum.phpvms.net/u/ProAvia)\
**Post date:** [April 23, 2019, 12:12am UTC](https://forum.phpvms.net/t/solved-help-with-errors-non-static-method-cant-not-modify-header-information/12851/8 "2019-04-23T00:12:12Z")

</div>

You’re welcome! Glad you got it sorted.
