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

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

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.

1 Like

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!

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

1 Like

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

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

 

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; }

 

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.

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!

You’re welcome! Glad you got it sorted.