continued issues with Post via XML-RPC (serendipity_event_xmlrpc)

Creating and modifying plugins.
Post Reply
Imajica
Regular
Posts: 59
Joined: Mon Dec 05, 2016 6:26 pm
Location: Racine
Contact:

continued issues with Post via XML-RPC (serendipity_event_xmlrpc)

Post by Imajica » Fri Jun 28, 2019 5:30 pm

Morning Folks,

I hate to admit it but I am at the end of the line with Post via XML-RPC (serendipity_event_xmlrpc)
I've been troubleshooting and haven't made any headway, even going so far as to copy an older version of the plugin from a working system (on the same host) and pulling the latest directly from github
Issue:

When you try to post using offline blog software it post never makes it to the database, and it is unable to download the theme

here is the rpc.log right after turning on debug

Code: Select all

[28.06.2019 15:08]<?xml version="1.0" encoding="utf-8"?>
<methodCall>
 <methodName>metaWeblog.getRecentPosts</methodName>
 <params>
  <param>
   <value>
    <string>1</string>
   </value>
  </param>
  <param>
   <value>
    <string>John</string>
   </value>
  </param>
  <param>
   <value>
    <string>password</string>
   </value>
  </param>
  <param>
   <value>
    <int>1</int>
   </value>
  </param>
 </params>
</methodCall><?xml version="1.0" encoding="UTF-8"?>
<methodResponse>
<params>
<param>
<value><array>
<data>
</data>
</array></value>
</param>
</params>
</methodResponse>
---------------------------------------
[28.06.2019 15:08]<?xml version="1.0" encoding="utf-8"?>

<methodCall>
 <methodName>metaWeblog.newPost</methodName>
 <params>
  <param>
   <value>
    <string>1</string>
   </value>
  </param>
  <param>
   <value>
    <string>John</string>
   </value>
  </param>
  <param>
   <value>
    <string>password</string>
   </value>
  </param>
  <param>
   <value>
    <struct>
     <member>
      <name>title</name>
      <value>
       <string>Temporary Post Used For Theme Detection (ce9f438e-4d76-4762-b167-c4c13c1e0a22 - 3bfe001a-32de-4114-a6b4-4005b770f6d7)</string>
      </value>
     </member>
     <member>
      <name>description</name>
      <value>
       <string>&lt;p&gt;This is a temporary post that was not deleted. Please delete this manually. (e2a04a2b-a6f6-43df-81eb-55523094b9fa - 3bfe001a-32de-4114-a6b4-4005b770f6d7)&lt;/p&gt;</string>
      </value>
     </member>
     <member>
      <name>mt_text_more</name>
      <value>
       <string />
      </value>
     </member>
     <member>
      <name>mt_keywords</name>
      <value>
       <string />
      </value>
     </member>
     <member>
      <name>wp_slug</name>
      <value>
       <string />
      </value>
     </member>
     <member>
      <name>mt_basename</name>
      <value>
       <string />
      </value>
     </member>
     <member>
      <name>wp_password</name>
      <value>
       <string />
      </value>
     </member>
     <member>
      <name>categories</name>
      <value>
       <array>
        <data />
       </array>
      </value>
     </member>
     <member>
      <name>mt_excerpt</name>
      <value>
       <string />
      </value>
     </member>
    </struct>
   </value>
  </param>
  <param>
   <value>
    <boolean>1</boolean>
   </value>
  </param>
 </params>
</methodCall><?xml version="1.0" encoding="UTF-8"?>
<methodResponse>
<params>
<param>
<value><string>Data truncated for column 'moderate_comments' at row 1</string></value>
</param>
</params>
</methodResponse>
---------------------------------------

[28.06.2019 15:08]<?xml version="1.0" encoding="utf-8"?>
<methodCall>
 <methodName>mt.setPostCategories</methodName>
 <params>
  <param>
   <value>
    <string>Data truncated for column 'moderate_comments' at row 1</string>
   </value>
  </param>
  <param>
   <value>
    <string>John</string>
   </value>
  </param>
  <param>
   <value>
    <string>password</string>
   </value>
  </param>
  <param>
   <value>
    <array>
     <data />
    </array>
   </value>
  </param>
 </params>
</methodCall><?xml version="1.0" encoding="UTF-8"?>
<methodResponse>
<params>
<param>
<value><boolean>0</boolean></value>
</param>
</params>
</methodResponse>
---------------------------------------

Imajica
Regular
Posts: 59
Joined: Mon Dec 05, 2016 6:26 pm
Location: Racine
Contact:

Re: continued issues with Post via XML-RPC (serendipity_event_xmlrpc)

Post by Imajica » Sat Jul 27, 2019 12:39 am

I'm still digging into this

When you attempt to post you get this:

Code: Select all

<methodResponse>
<fault>
  <value>
    <struct>
      <member>
        <name>faultCode</name>
        <value><int>404</int></value>
      </member>
      <member>
        <name>faultString</name>
        <value><string>Invalid post ID.</string></value>
      </member>
    </struct>
  </value>
</fault>
</methodResponse>
looking at the database (maria) I see the the collation is utf8_unicode_ci and in the ones that work properly it's latin1_swedish_ci

Post Reply