It is currently Sun Jul 20, 2008 11:07 am

xml-rpc error response using mars edit

Discuss the development and implementation of Joomla! Plugins here.

Moderators: Toni Marie, pe7er, General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.

xml-rpc error response using mars edit

Postby amstanley on Thu Nov 08, 2007 2:57 am

fresh install of 1.5 rc3
activated xml-rpc plugin

using mars edit 2.0.3 (1026)

cannot autodiscover settings for auto configuration

When attempting to write post, no categories visible

When attempting to send post, error message reads:
Can’t do post for TEst Site because the server reported an errorThe XML parser could not parse the data.: XML-RPC Response Parsing Failed.

Anybody have an opinion on what is happening here and how I fix it?
User avatar
amstanley
Joomla! Apprentice
Joomla! Apprentice
 
Posts: 35
Joined: Sat Aug 27, 2005 2:33 am
Location: Toronto

XML-RPC Response Parsing Failed

Postby amstanley on Tue Nov 20, 2007 1:35 am

Partial Fix.
It would have helped if I had turned the xml-rpc plugin on.
Now, However, when I try to post or do anything other than d/l revcent posts, I get:
Code: Select all
XML-RPC Response Parsing Failed


When I go to the Red Sweater Blog I get a page http://www.red-sweater.com/blog/342/xml-rpc-response-parsing-failed that says the following:
XML-RPC Response Parsing Failed
May 31st, 2007

We are currently living through a minor sort of plague when it comes to remote editing of PHP-based blogs. As web hosting companies upgrade to PHP 5.2.2, some of you may notice that your attempts to publish or edit entries with MarsEdit yields an error dialog with a cryptic error “XML-Response Parsing Failed.” This bug is caused by a bug in PHP that causes blogging systems to return blank responses instead of the expected XML result.

WordPress was quick to work around the bug, and included the change in their 2.2 release. Unfortunately the 2.2 release also added a minor time zone bug, so we’ll be looking forward to 2.2.1 for complete normalcy.

If you want to fix the bug yourself on whatever system you’re using, the workaround seems to be essentially adding this line to the top of your XML-RPC php file (after the “
$HTTP_RAW_POST_DATA = file_get_contents( 'php://input' );

Nasty bug. Easy workaround. Hope this passes soon. I get new support inquiries every time DreamHost updates a batch of servers :)


I tried editing the index.php in /xmlrpc but it did not seem to have any effect, which surprised me not as I have no idea how that code actually works.

Does anyone who has a clue about this have a fix?
User avatar
amstanley
Joomla! Apprentice
Joomla! Apprentice
 
Posts: 35
Joined: Sat Aug 27, 2005 2:33 am
Location: Toronto

Joomla error code: xml-rpc error response using mars edit

Postby amstanley on Wed Nov 28, 2007 1:36 am

it turns out mars edit has a network log function which provides this data on the issue:

Network message sent: 2007-11-27 20:04:41 -0500
URL: http://soaringhorse.com/xmlrpc/index.php
Method name: blogger.newPost
Network reply received: 2007-11-27 20:04:42 -0500
URL: http://soaringhorse.com/xmlrpc/index.php
Method name: blogger.newPost
Status code: 200
Succeeded: NO
--Parse Error--
Parse Error Title: XML-RPC Response Parsing Failed
Parse Error Message: The XML parser could not parse the data.
Request text:


blogger.newPost


6A10B954F5EBCB132CE8141518DF605B9A3D1E2587


1


malcolm


[password]


test


1




Response text:


Fatal error:  Class 'JText' not found in /home/soaringh/public_html/libraries/joomla/database/table/content.php on line 124



I have posted a message in the bugtracker at http://joomlacode.org/gf/project/joomla ... em_id=7219
but I have no idea if that will attract any attention to the issue or if I have to post a new bug?
Can someone please advise?

red-sweater / marsedit support forum reference: http://www.red-sweater.com/forums/viewt ... 2579#p2579
User avatar
amstanley
Joomla! Apprentice
Joomla! Apprentice
 
Posts: 35
Joined: Sat Aug 27, 2005 2:33 am
Location: Toronto

Re: xml-rpc error response using mars edit

Postby amstanley on Tue Dec 04, 2007 4:03 am

updated to latest nightly build as downloaded on Dec 3

ran Marsedit, Attempted to post test post

Newtwork log reads:
Network message sent: 2007-12-03 22:59:55 -0500
URL: http://soaringhorse.com/xmlrpc/index.php
Method name: blogger.newPost
Network reply received: 2007-12-03 22:59:56 -0500
URL: http://soaringhorse.com/xmlrpc/index.php
Method name: blogger.newPost
Status code: 200
Succeeded: NO
--Parse Error--
Parse Error Title: XML-RPC Response Parsing Failed
Parse Error Message: The XML parser could not parse the data.
Request text:


blogger.newPost


6A10B954F5EBCB132CE8141518DF605B9A3D1E2587


1


malcolm


[password]


test


1




Response text:


Fatal error:  Class 'dom_xmlrpc_fault' not found in /home/soaringh/public_html/plugins/xmlrpc/blogger.php on line 212





someone has been tinkering but is not quite there...
User avatar
amstanley
Joomla! Apprentice
Joomla! Apprentice
 
Posts: 35
Joined: Sat Aug 27, 2005 2:33 am
Location: Toronto

Re: xml-rpc error response using mars edit

Postby charlvn on Mon Dec 31, 2007 2:26 am

I attempted to fix this with revision 9780. I am unable to test though so please let me know if it's not working.
Charl van Niekerk
User avatar
charlvn
Joomla! Apprentice
Joomla! Apprentice
 
Posts: 21
Joined: Wed Mar 21, 2007 7:49 am
Location: South Africa

Re: xml-rpc error response using mars edit

Postby amstanley on Mon Dec 31, 2007 2:34 am

If I download the nightly build will the fixes be in it?
I'll d/l tomorrow am and test it.

Thanks a lot for the effort.
It's much appreciated...
User avatar
amstanley
Joomla! Apprentice
Joomla! Apprentice
 
Posts: 35
Joined: Sat Aug 27, 2005 2:33 am
Location: Toronto

Re: xml-rpc error response using mars edit

Postby charlvn on Mon Dec 31, 2007 3:10 am

The fix should be included in the next nightly build. If unsure just check the CHANGELOG.php; if you see the following the fix should be included with the copy you downloaded:

31-Dec-2007 Charl van Niekerk
# Fixed [#8516] xmlrpc throws errors when using third party blog/content entry tools

Best of luck!
Charl van Niekerk
User avatar
charlvn
Joomla! Apprentice
Joomla! Apprentice
 
Posts: 21
Joined: Wed Mar 21, 2007 7:49 am
Location: South Africa

Re: xml-rpc error response using mars edit

Postby amstanley on Mon Dec 31, 2007 2:58 pm

So I downloaded the nightly build and put it up on the server...
confirmed in the changelog that the fix is in it.

loaded Marsedit.
I get a good list of recent posts.
I create a new post
- no options (categories, front page) are available.

when I post I get the following log entry:

Code: Select all
Network message sent: 2007-12-31 09:52:58 -0500
URL: http://soaringhorse.com/xmlrpc/index.php
Method name: blogger.newPost
Network reply received: 2007-12-31 09:52:58 -0500
URL: http://soaringhorse.com/xmlrpc/index.php
Method name: blogger.newPost
Status code: 200
Succeeded: NO
--Fault Error--
Fault code: 801
Fault string: Post check failed
Request text:
<?xml version="1.0" encoding="utf-8"?>
<methodCall>
   <methodName>blogger.newPost</methodName>
   <params>
      <param>
         <value><string>6A10B954F5EBCB132CE8141518DF605B9A3D1E2587</string></value>
         </param>
      <param>
         <value><string>1</string></value>
         </param>
      <param>
         <value><string>[username]</string></value>
         </param>
      <param>
         <value><string>[password]</string></value>
         </param>
      <param>
         <value><string>this is a test of marsedit...</string></value>
         </param>
      <param>
         <value><boolean>1</boolean></value>
         </param>
      </params>
   </methodCall>

Response text:
<?xml version="1.0"?>
<methodResponse>
<fault>
<value>
<struct><member><name>faultCode</name>
<value><int>801</int></value>
</member>
<member>
<name>faultString</name>
<value><string>Post check failed</string></value>
</member>
</struct>
</value>
</fault>
</methodResponse>
User avatar
amstanley
Joomla! Apprentice
Joomla! Apprentice
 
Posts: 35
Joined: Sat Aug 27, 2005 2:33 am
Location: Toronto

Re: xml-rpc error response using mars edit

Postby amstanley on Mon Dec 31, 2007 3:03 pm

I notice you closed the tracker item;
should I submit a new one?
User avatar
amstanley
Joomla! Apprentice
Joomla! Apprentice
 
Posts: 35
Joined: Sat Aug 27, 2005 2:33 am
Location: Toronto

Re: xml-rpc error response using mars edit

Postby charlvn on Mon Dec 31, 2007 4:20 pm

Yes please submit a new tracker item, thanks! The previous bug seems to have been sorted out as it's returning the XMLRPC error correctly now instead of returning a PHP error. However, it would appear you're now experiencing a different bug.

Kind Regards,
Charl
Charl van Niekerk
User avatar
charlvn
Joomla! Apprentice
Joomla! Apprentice
 
Posts: 21
Joined: Wed Mar 21, 2007 7:49 am
Location: South Africa

Re: xml-rpc error response using mars edit

Postby aini on Thu Jan 24, 2008 3:36 am

Anyway, It is not a bug

please put the title tag in your content submission

Joomla your content
just ordinary woman :-[
http://nuraini.net
User avatar
aini
Joomla! Intern
Joomla! Intern
 
Posts: 61
Joined: Sun Apr 15, 2007 3:17 am
Location: Taipei, Taiwan


Return to Plugins

Who is online

Users browsing this forum: No registered users and 1 guest