Jump to content

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


Recommended Posts

  • Administrators
Posted

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.

  • Thanks 1
Posted

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!

Posted

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).

 

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

 

  • Administrators
Posted

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.

Posted

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!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...