Error

This is the dedicated forum for RemoteCP4: the web based dedicated server control script.

Moderators: hal|Sascha, TM-Patrol

Post Reply
User avatar
lozica
cyclist
cyclist
Posts: 47
Joined: 27 Nov 2006 20:18
Location: Slovenia

Error

Post by lozica » 17 Feb 2009 13:38

Dedimania plugin connected to: http://dedimania.net:8014/Dedimania
[remoteCP-4 Warning] -32700:parse error. not well formed on line 502 in file *****\CP\live\Dedimania\index.php

I have remote CP 4.0.2.7
Whay?? :?: :?:
sorry for bad english
Image

User avatar
k4nm4n
smooth traffic navigator
smooth traffic navigator
Posts: 262
Joined: 11 Feb 2008 10:30
Owned TM-games: TMUF
Location: Slovenia
Contact:

Re: Error

Post by k4nm4n » 17 Feb 2009 14:02

lozica wrote:Dedimania plugin connected to: http://dedimania.net:8014/Dedimania
[remoteCP-4 Warning] -32700:parse error. not well formed on line 502 in file *****\CP\live\Dedimania\index.php

I have remote CP 4.0.2.7
Whay?? :?: :?:
I had the same problem and than I switched again to Xaseco for that. I tried with the new acc and was the same. :ftw:

User avatar
hal|Sascha
Pit Crew
Pit Crew
Posts: 671
Joined: 12 Aug 2005 16:22
Owned TM-games: TMU, TMN, TMS, TMO
Location: Germany Munich
Contact:

Re: Error

Post by hal|Sascha » 18 Feb 2009 09:03

hi,

I currently have no answer for this, but I'll have a look into it today.

Sascha
CPU: Intel Core 2 Duo E6600
Mainboard: Asus P5W DH Deluxe
RAM: 2 GB
Graphics: ATI Radeon X1950XTX
Audio: Soundblaster Audigy 4
Internet: ADSL 6Mbit
OS: Windows Vista Bussiness

User avatar
f*ckfish
Pit Crew
Pit Crew
Posts: 1302
Joined: 15 Jun 2007 07:59
Owned TM-games: TMNF, TMUF
Location: Dresden, Germany
Contact:

Re: Error

Post by f*ckfish » 18 Feb 2009 11:51

Yepp, got the same one yesterday.
inactive, sorry

User avatar
hal|Sascha
Pit Crew
Pit Crew
Posts: 671
Joined: 12 Aug 2005 16:22
Owned TM-games: TMU, TMN, TMS, TMO
Location: Germany Munich
Contact:

Re: Error

Post by hal|Sascha » 28 Feb 2009 23:14

I checked it again today and can't find what causes the problem :(
I'll send slig a pm and link this thread. I hope he has a idea :mrgreen:
CPU: Intel Core 2 Duo E6600
Mainboard: Asus P5W DH Deluxe
RAM: 2 GB
Graphics: ATI Radeon X1950XTX
Audio: Soundblaster Audigy 4
Internet: ADSL 6Mbit
OS: Windows Vista Bussiness

User avatar
Slig
Pit Crew
Pit Crew
Posts: 2124
Joined: 05 Sep 2005 17:51
Owned TM-games: ALL
Location: TraxicoLand (Fr)
Contact:

Re: Error

Post by Slig » 01 Mar 2009 01:34

k4nm4n wrote:
lozica wrote:Dedimania plugin connected to: http://dedimania.net:8014/Dedimania
[remoteCP-4 Warning] -32700:parse error. not well formed on line 502 in file *****\CP\live\Dedimania\index.php

I have remote CP 4.0.2.7
Whay?? :?: :?:
I had the same problem and than I switched again to Xaseco for that. I tried with the new acc and was the same. :ftw:
It seems that the remote CP IXR2_Client fails to read the returned value. It would be good to have the raw returned data (unziped/deflated) to understand why it fails...
Setting debug on IXR2_Client would probably help : add in line 61 of live\Dedimania\index.php : $this->dedimania->debug = true;

It should look like this :

Code: Select all

  //connect to dedimania server
  $this->dedimania = new IXR2_ClientMulticall($this->url);
  $this->dedimania->debug = true;
Then you should have in log both sent xml datas sent to dedimania, and received xml datas from dedimania, which should help to understand what happen.

User avatar
hal|Sascha
Pit Crew
Pit Crew
Posts: 671
Joined: 12 Aug 2005 16:22
Owned TM-games: TMU, TMN, TMS, TMO
Location: Germany Munich
Contact:

Re: Error

Post by hal|Sascha » 01 Mar 2009 02:29

thx for responding slig :)

I set the debug value and got this: http://www.file-upload.net/download-149 ... e.log.html
CPU: Intel Core 2 Duo E6600
Mainboard: Asus P5W DH Deluxe
RAM: 2 GB
Graphics: ATI Radeon X1950XTX
Audio: Soundblaster Audigy 4
Internet: ADSL 6Mbit
OS: Windows Vista Bussiness

User avatar
Slig
Pit Crew
Pit Crew
Posts: 2124
Joined: 05 Sep 2005 17:51
Owned TM-games: ALL
Location: TraxicoLand (Fr)
Contact:

Re: Error

Post by Slig » 01 Mar 2009 03:42

hal|Sascha wrote:I set the debug value and got this: http://www.file-upload.net/download-149 ... e.log.html
It would be better without the htmlspecialchars() in the IXR2_Client debug outputs :?
Btw the interested thing would the log when there is error, here i don't think that there were any ;)

Best would be to save the info directly, and when there is a parse error, so something like that in lines 535-541 of IXR_Library.inc.php :

Code: Select all

        // Now parse what we've got back
        $this->message = new IXR2_Message($contents);
        if (!$this->message->parse()) {
            // XML error
            $this->error = new IXR2_Error(-32700, 'parse error. not well formed');
            file_put_contents('IXR2.parseerror.'.rand(100,999).'.xml',$contents);
            return false;
        }
It's better than de debug in the log : you will get only the unmodified contents of received xml, and only when there is a xmlrpc parse error.

User avatar
Slig
Pit Crew
Pit Crew
Posts: 2124
Joined: 05 Sep 2005 17:51
Owned TM-games: ALL
Location: TraxicoLand (Fr)
Contact:

Re: Error

Post by Slig » 01 Mar 2009 12:33

I just made a global valid TM utf8 filtering for nicknames on the dedimania database (and modify scripts to not store bad ones any more), perhaps that it will remove some xml parse error in dedimania responses...

User avatar
hal|Sascha
Pit Crew
Pit Crew
Posts: 671
Joined: 12 Aug 2005 16:22
Owned TM-games: TMU, TMN, TMS, TMO
Location: Germany Munich
Contact:

Re: Error

Post by hal|Sascha » 01 Mar 2009 13:29

Just did the new log files with your method, thats what I received: http://www.file-upload.net/download-149 ... s.zip.html
CPU: Intel Core 2 Duo E6600
Mainboard: Asus P5W DH Deluxe
RAM: 2 GB
Graphics: ATI Radeon X1950XTX
Audio: Soundblaster Audigy 4
Internet: ADSL 6Mbit
OS: Windows Vista Bussiness

User avatar
Slig
Pit Crew
Pit Crew
Posts: 2124
Joined: 05 Sep 2005 17:51
Owned TM-games: ALL
Location: TraxicoLand (Fr)
Contact:

Re: Error

Post by Slig » 01 Mar 2009 13:47

If you look at the files, you will see that there are bad newlines in it (i don't know why you have them).

As a workaround, if you replace :

Code: Select all

$this->message = new IXR2_Message($contents);
with :

Code: Select all

$this->message = new IXR2_Message(str_replace("\r\n",'',$contents));
... then it should work. :D (i suppose that it is always \r\n and never \n alone, else replace both).

You can also do that only if it fails without it.
Note: in dedimania responses you should never get newlines into datas, so you will not loose them.

Or else try to find why you have those newlines... ;)

User avatar
hal|Sascha
Pit Crew
Pit Crew
Posts: 671
Joined: 12 Aug 2005 16:22
Owned TM-games: TMU, TMN, TMS, TMO
Location: Germany Munich
Contact:

Re: Error

Post by hal|Sascha » 02 Mar 2009 20:13

thx slig, that works for me :)
CPU: Intel Core 2 Duo E6600
Mainboard: Asus P5W DH Deluxe
RAM: 2 GB
Graphics: ATI Radeon X1950XTX
Audio: Soundblaster Audigy 4
Internet: ADSL 6Mbit
OS: Windows Vista Bussiness

Post Reply