lostechies / wordpress

Our wordpress install
http://lostechies.com
Other
3 stars 2 forks source link

Unable to connect/post to wordpress from LiveWriter after https change #47

Closed jmeridth closed 8 years ago

jmeridth commented 9 years ago

livewritererror

Currently being experienced by @jbogard and @gnschenker

jbogard commented 9 years ago

What's funny is if HTTPS forces me to use the WP interface instead of WLW that was one of my arguments against getting off of WP.

That and the 4.5M page views we had last year and not wanting to break links.

jmeridth commented 9 years ago

Jimmy, Links aren't broken. They all redirect from the tests I've run. Do you have any example link(s) that are broken?

jbogard commented 9 years ago

No I was referring to moving off of WP

jmeridth commented 9 years ago

Ah. I'd love that. :)

jmeridth commented 9 years ago

This seems to be encoding related. Changing my password to have no symbols allows me to get my blog list:

->$ curl -d "<?xml version=\"1.0\"?> <methodCall> <methodName>wp.getUsersBlogs</methodName> <params> <param> <value>[username redacted]</value> </param> <param> <value>[password redacted]</value> </param> </params> </methodCall>" https://www.lostechies.com/jasonmeridth/xmlrpc.php
<?xml version="1.0"?>
<methodResponse>
  <params>
    <param>
      <value>
      <array><data>
  <value><struct>
  <member><name>isAdmin</name><value><boolean>1</boolean></value></member>
  <member><name>url</name><value><string>https://lostechies.com/jasonmeridth/</string></value></member>
  <member><name>blogid</name><value><string>37</string></value></member>
  <member><name>blogName</name><value><string>Jason Meridth&amp;#039;s Blog</string></value></member>
  <member><name>xmlrpc</name><value><string>https://lostechies.com/jasonmeridth/xmlrpc.php</string></value></member>
</struct></value>
</data></array>
      </value>
    </param>
  </params>
</methodResponse>

Still working on it. Seems wp.getPosts still fails though.

jmeridth commented 9 years ago

nm, looks like I need to pass my blog id to get the posts. that worked. still getting errors through Blogilo though. Almost there. Hopefully the fix isn't removing symbols from passwords :frowning:

erichexter commented 9 years ago

i traced the code to here. not sure how you are debugging this.. https://github.com/lostechies/wordpress/blob/master/wp-includes/class-wp-xmlrpc-server.php#L3225

erichexter commented 9 years ago

also, it looks like livewritter always calls the blogger.getusersblogs and never calls the wp.getusersblogs.

jmeridth commented 9 years ago

Was able to connect and post with MarsEdit and no errors. I put in Name: Jason Meridth and URL: https://lostechies.com/jasonmeridth and MarsEdit auto detected the following information:

screen shot 2015-07-18 at 9 16 04 am

The xmlrpc.php link and blog ID are the bits it auto detected. Can someone please try figuring out their blog id and use that xmlrpc.php url and see if LiveWriter doesn't bork?

jmeridth commented 9 years ago

Still happening. Found a Windows box.

Going to try this out: https://mu.wordpress.org/forums/topic/14046

erichexter commented 9 years ago

this is so strange. i get a different certificate when i use my blog subfolder. Which led me down the path that the certificate does not match the hostname, i wonder if thats screwing something up.

image

jmeridth commented 8 years ago

Using the new open source version of Windows Live Writer called OpenLiveWriter @andrewsiemer was able to connect and post to LT on 1/12/16. Please use OpenLiveWriter if you want to use WLW.