Jump to content

Erros


Mickey

Recommended Posts

Hi All,

 

Does anyone have any ideas what the following errors are?

 

[17-Feb-2019 16:39:54 UTC] PHP Warning: SimpleXMLElement::addChild() expects parameter 2 to be string, array given in /home/*****/public_html/crew/core/common/CentralData.class.php on line 198

[17-Feb-2019 16:39:55 UTC] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/*****/public_html/crew/core/common/CentralData.class.php:198) in /home/*****/public_html/crew/core/modules/kACARSII/kACARSII.php on line 644

 

Phpvms 5.5.2

CentralData.class.php

195  # Add any children who might exist...            
196            if(count($children) > 0) {
197                foreach($children as $key => $value) {
198                   $child->addChild($key, $value);
199               }
200           }

 

kACARSII.php

 

644       header('Content-type: text/xml');
645      $xml_string = $xml->asXML();
646        echo $xml_string;
647        return;
648    }

Link to comment
Share on other sites

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