Open-AudIT
https://www.open-audit.org/phpBB3/

Error while adding New System
https://www.open-audit.org/phpBB3/viewtopic.php?f=20&t=5706
Page 1 of 1

Author:  v1_pandya [ Thu May 19, 2011 5:54 pm ]
Post subject:  Error while adding New System

Hi,

I have install an OAv2 on Ubuntu Linux 10.04.1 for testing purpose. While adding an system it gives following error.
*********************************************************************************************************************
A PHP Error was encountered

Severity: Warning

Message: SimpleXMLElement::__construct(): Entity: line 884: parser error : PCDATA invalid Char value 14

Filename: controllers/system.php

Line Number: 62
A PHP Error was encountered

Severity: Warning

Message: SimpleXMLElement::__construct(): Kristal StudioDFileDescription

Filename: controllers/system.php

Line Number: 62
A PHP Error was encountered

Severity: Warning

Message: SimpleXMLElement::__construct(): ^

Filename: controllers/system.php

Line Number: 62
A PHP Error was encountered

Severity: Warning

Message: SimpleXMLElement::__construct(): Entity: line 884: parser error : PCDATA invalid Char value 1

Filename: controllers/system.php

Line Number: 62
A PHP Error was encountered

Severity: Warning

Message: SimpleXMLElement::__construct(): Kristal StudioDFileDescription

Filename: controllers/system.php

Line Number: 62
A PHP Error was encountered

Severity: Warning

Message: SimpleXMLElement::__construct(): ^

Filename: controllers/system.php

Line Number: 62
*******************************************************************************************************************
I have also install an OA version 1. which is working perfectly fine on the Same server.
Please help.

Regards

Virendra

Author:  gareth [ Tue Jun 07, 2011 11:40 pm ]
Post subject:  Re: Error while adding New System

I had a similar error when auditing a machine, which contained a blank hard drive serial number.

When pasting the XML in to Notepad++ the empty space appears as something like: [US].

If these are removed the XML will submit. Guess illegal characters need removing by the PHP script before submission?

Gareth

Author:  Mark [ Wed Jun 08, 2011 9:14 am ]
Post subject:  Re: Error while adding New System

Can you post that section of the audit result (the XML) ?
Filter out the software key (if that's the section).

Author:  gareth [ Wed Jun 08, 2011 6:27 pm ]
Post subject:  Re: Error while adding New System

Mark, the code you emailed over appears to resolve this issue.

The offending XML was:

[code]<hard_disk>
<hard_drive_caption>Generic- Compact Flash USB Device</hard_drive_caption>
<hard_drive_index>1</hard_drive_index>
<hard_drive_interface_type>USB</hard_drive_interface_type>
<hard_drive_manufacturer>(Standard disk drives)</hard_drive_manufacturer>
<hard_drive_model>Generic- Compact Flash USB Device</hard_drive_model>
<hard_drive_serial></hard_drive_serial>
<hard_drive_size></hard_drive_size>
<hard_drive_device_id>\\.\PHYSICALDRIVE1</hard_drive_device_id>
<hard_drive_partitions>0</hard_drive_partitions>
</hard_disk>
[/code]

But the illegal character does not appear when pasted to this thread.

Author:  wazoqaz [ Thu Jun 09, 2011 1:10 am ]
Post subject:  Re: Error while adding New System

I just installed Beta 1.1 and I'm having the exact same problem. However it only seems to be appearing when I audit Windows7 machines.

I have the exact same model of Dell Optiplex 980, when I audit a system with Windows XP it imports correctly, when I audit the same model, but with Windows7 then the audit fails to import. and reports

[code]A PHP Error was encountered

Severity: Warning

Message: SimpleXMLElement::__construct() [function.SimpleXMLElement---construct]: Entity: line 189: parser error : PCDATA invalid Char value 31

Filename: controllers/system.php

Line Number: 71
A PHP Error was encountered

Severity: Warning

Message: SimpleXMLElement::__construct() [function.SimpleXMLElement---construct]: <hard_drive_serial></hard_drive_serial>

Filename: controllers/system.php

Line Number: 71
A PHP Error was encountered

Severity: Warning

Message: SimpleXMLElement::__construct() [function.SimpleXMLElement---construct]: ^

Filename: controllers/system.php

Line Number: 71
[/code]


Like gareth I had the problem with the hard drive section. When I look at it via Notepad the <hard_drive_serial> field looks empty. When I look at it in Notepad++ it shows up as [US].

Just wanted to add another listing of the problem. If you could either email or post the patch I'd be happy to try it out as well for you.

Page 1 of 1 All times are UTC + 10 hours
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/