BLOG:CMS :: Support Forum

Support Forum for BLOG:CMS

You are not logged in.

#1 26.08.2007 22:10

xsoft
BLOG:CMS Junior
From: Czech republic
Registered: 02.08.2006
Posts: 34
Website

XML RPC error - Invalid Server Response

Tak mam po roce pouzivani opet problem s XML RPC.
Problem se objevil po prechodu na novy hosting a je stejny ve vedri 4.2.0 i 4.2.1. Pouzivam na to Windows Live Writer (nastavovany porad a porad stejne, puvodni, ove nastaveni) a vsechny pokusy konci chybou:

Invalid server response - The response to the blogger.getUserBlogs method received from weblog server was invalid.

Zkousel jsem to na Movabletypu i Metaweblog API a stejny vysledek.
(url .../admin/xmlrpc/server.php)

Protoze se to nedalo moc debuovat, tak jsem juknul pres sniffera co to tam hazi:

Code:

POST /admin/xmlrpc/server.php HTTP/1.0
User-Agent: Windows Live Writer/1.0.109
Content-Type: text/xml
Host: www.pocitac.com
Content-Length: 398
----------: ----------

<?xml version="1.0" encoding="utf-8"?><methodCall><methodName>blogger.getUsersBlogs</methodName><params><param><value><string>ffffffabffffffce6dffffff93ffffffac29ffffffc9fffffff826ffffffdeffffffc9ffffffe43c0b763036ffffffa0fffffff3ffffffa963377716</string></value></param><param><value><string>xsoft</string></value></param><param><value><string>moje-heslo</string></value></param></params></methodCall>HTTP/1.1 200 OK
Date: Sun, 26 Aug 2007 19:41:33 GMT
Server: Apache/2.2.3 (Debian) PHP/5.2.0-8+etch7 mod_ssl/2.2.3 OpenSSL/0.9.8e
X-Powered-By: PHP/5.2.0-8+etch7
Generator: BLOG:CMS 4.2.0
Set-Cookie: lastVisit=deleted; expires=Sat, 26-Aug-2006 19:41:33 GMT; path=/
Content-Length: 0
Connection: close
Content-Type: text/html

Jako vraceni 0 bytu, hmm .. blby co. Nemate nekdo nejaky napad? Treba zapnuti/vypnuti modulu pres .htaccess, pridani/odebrani modulu do PHP. Ale tak nejak uz jsem vykousel skoro vse co me napadlo a nevim.

Google vraci vsechny odkazy na XML RPC validatory jako nefunkcni, tak nevim co s tim. Zkousel jsem i pouzit 3 starsi xmlrpc adresare i vypnuti mod_rewritu v tom adresari (ktery stejne nepouzivam) a nic.

Opravdu rad bych xml pouzival i dal, protoze vkladani obrazku a nasedny ftp upload je imho mnohem prijemnejsi nez vestavene editory (byt pekne, tak s obrazky a pluginami na screenshoty si porad nerozumi).

Offline

 

#2 26.08.2007 22:24

xsoft
BLOG:CMS Junior
From: Czech republic
Registered: 02.08.2006
Posts: 34
Website

Re: XML RPC error - Invalid Server Response

Tak myslim, ze za to muze tenhle bug - http://bugs.php.net/bug.php?id=41293

Offline

 

#3 27.08.2007 16:37

xsoft
BLOG:CMS Junior
From: Czech republic
Registered: 02.08.2006
Posts: 34
Website

Re: XML RPC error - Invalid Server Response

Zatim jsem zkousel par zmen .. ani jedna nepomohla.
(server.php, xmlrpcs.inc.php, ...)

Code:

            /* ADDING FIX: see: http://bugs.php.net/bug.php?id=41293 */
            if (!isset($HTTP_RAW_POST_DATA)){
                   $HTTP_RAW_POST_DATA = file_get_contents('php://input');
            } 

$GLOBALS['HTTP_RAW_POST_DATA'] = file_get_contents("php://input");
$HTTP_RAW_POST_DATA = file_get_contents('php://input');

if (!isset($GLOBALS['HTTP_RAW_POST_DATA'])){
    $GLOBALS['HTTP_RAW_POST_DATA'] = file_get_contents('php://input');
}

if ( !isset( $HTTP_RAW_POST_DATA ) ) {
        $HTTP_RAW_POST_DATA = file_get_contents( 'php://input' );
}

// fix for mozBlog and other cases where '&lt;?xml' isn't on the very first line
if ( isset($HTTP_RAW_POST_DATA) )
$HTTP_RAW_POST_DATA = trim($HTTP_RAW_POST_DATA);            


//if (isset($HTTP_RAW_POST_DATA)) {
$data = $HTTP_RAW_POST_DATA;
} else {
$data = implode("\r\n", file('php://input'));
}

Offline

 

#4 02.09.2007 21:18

xsoft
BLOG:CMS Junior
From: Czech republic
Registered: 02.08.2006
Posts: 34
Website

Re: XML RPC error - Invalid Server Response

Jeste ze je vikend.
Vyreseno a fix - http://www.pocitac.com/?item=blogcms-ja … ive-writer

.. jinak to vypada, ze asi XMLRPC nikdo nepouziva. to by se preci nekdo ozval, nebo to nekdo pouziva a funguje mu to spravne?

Offline

 

#5 21.01.2008 19:19

Ola
newbie...
Registered: 21.01.2008
Posts: 2

Re: XML RPC error - Invalid Server Response

Me pomohlo tam nakopnout soubory z nejnovejsi verze nucleusu ..

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson

TOPlist