WLW can 'acquire' the style of a Story type but for Page it just hangs on the 'Downloading Blog Editing Theme" stage (about 75% on the progress bar) and then reports that the theme cannot be down loaded

It does create a test page, and deletes it.
I have tried the bluemarine theme and the theme I use in production
The account used for both is user 0, so I don't see where a permission issue can be at play.

Below is the apache log for the failed effort and the succesful one

I am looking for any advice on where to look - troubleshooting ideas, etc.

Allan

Failed Attempt

mydomain.org 0.0.0.0 - - [15/Mar/2010:01:42:13 -0400] "GET /cms/blogapi/wlwmanifest.xml HTTP/1.1" 200 701 "-" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Windows Live Writer 1.0)"

mydomain.org 0.0.0.0 - - [15/Mar/2010:01:42:17 -0400] "POST /xmlrpc.php HTTP/1.1" 200 12819 "-" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Windows Live Writer 1.0)"

*** THIS IS WHEN I HIT OK TO GET THE THEME IN WLW ***
mydomain.org 0.0.0.0 - - [15/Mar/2010:01:42:28 -0400] "POST /xmlrpc.php HTTP/1.1" 200 143 "-" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Windows Live Writer 1.0)"

mydomain.org 0.0.0.0 - - [15/Mar/2010:01:42:30 -0400] "GET /cms/node HTTP/1.1" 200 40348 "-" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Windows Live Writer 1.0)"

mydomain.org 0.0.0.0 - - [15/Mar/2010:01:42:31 -0400] "GET /images/Books/love_front.jpg HTTP/1.0" 304 - "-" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET CLR 1.0.3705; .NET CLR 1.1.4322; InfoPath.2; MS-RTC LM 8)"

mydomain.org 0.0.0.0 - - [15/Mar/2010:01:42:38 -0400] "GET /cms/node HTTP/1.1" 200 40348 "-" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Windows Live Writer 1.0)"

mydomain.org 0.0.0.0 - - [15/Mar/2010:01:42:46 -0400] "GET /cms/node HTTP/1.1" 200 40348 "-" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Windows Live Writer 1.0)"

mydomain.org 0.0.0.0 - - [15/Mar/2010:01:42:54 -0400] "GET /cms/node HTTP/1.1" 200 40348 "-" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Windows Live Writer 1.0)"

mydomain.org 0.0.0.0 - - [15/Mar/2010:01:43:03 -0400] "GET /cms/node HTTP/1.1" 200 40348 "-" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Windows Live Writer 1.0)"

mydomain.org 0.0.0.0 - - [15/Mar/2010:01:43:11 -0400] "GET /cms/node HTTP/1.1" 200 40348 "-" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Windows Live Writer 1.0)"

mydomain.org 0.0.0.0 - - [15/Mar/2010:01:43:19 -0400] "GET /cms/node HTTP/1.1" 200 40348 "-" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Windows Live Writer 1.0)"

mydomain.org 0.0.0.0 - - [15/Mar/2010:01:43:27 -0400] "GET /cms/node HTTP/1.1" 200 40348 "-" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Windows Live Writer 1.0)"

mydomain.org 0.0.0.0 - - [15/Mar/2010:01:43:35 -0400] "GET /cms/node HTTP/1.1" 200 40348 "-" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Windows Live Writer 1.0)"

mydomain.org 0.0.0.0 - - [15/Mar/2010:01:43:44 -0400] "GET /cms/node HTTP/1.1" 200 40348 "-" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Windows Live Writer 1.0)"

mydomain.org 0.0.0.0 - - [15/Mar/2010:01:43:51 -0400] "POST /xmlrpc.php HTTP/1.1" 200 143 "-" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Windows Live Writer 1.0)"

Good Attempt

mydomain.org 0.0.0.0 - - [15/Mar/2010:01:29:14 -0400] "GET /cms/blogapi/wlwmanifest.xml HTTP/1.1" 200 701 "-" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Windows Live Writer 1.0)"

mydomain.org 0.0.0.0 - - [15/Mar/2010:01:29:14 -0400] "POST /cms/xmlrpc.php HTTP/1.1" 200 54255 "-" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Windows Live Writer 1.0)"

mydomain.org 0.0.0.0 - - [15/Mar/2010:01:29:14 -0400] "GET /cms/node HTTP/1.1" 200 40348 "-" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Windows Live Writer 1.0)"

mydomain.org 0.0.0.0 - - [15/Mar/2010:01:29:15 -0400] "GET /images/Books/love_front.jpg HTTP/1.0" 304 - "-" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET CLR 1.0.3705; .NET CLR 1.1.4322; InfoPath.2; MS-RTC LM 8)"

*** THIS IS WHEN I HIT OK TO GET THE THEME IN WLW ***
mydomain.org 0.0.0.0 - - [15/Mar/2010:01:29:28 -0400] "POST /cms/xmlrpc.php HTTP/1.1" 200 143 "-" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Windows Live Writer 1.0)"

mydomain.org 0.0.0.0 - - [15/Mar/2010:01:29:29 -0400] "GET /cms/node HTTP/1.1" 200 34913 "-" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Windows Live Writer 1.0)"

mydomain.org 0.0.0.0 - - [15/Mar/2010:01:29:33 -0400] "GET /cms/themes/oracle/css/positioning.php?4 HTTP/1.0" 200 1561 "-" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET CLR 1.0.3705; .NET CLR 1.1.4322; InfoPath.2; MS-RTC LM 8)"

mydomain.org 0.0.0.0 - - [15/Mar/2010:01:29:39 -0400] "GET /images/fp-description.jpg HTTP/1.0" 304 - "-" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET CLR 1.0.3705; .NET CLR 1.1.4322; InfoPath.2; MS-RTC LM 8)"

mydomain.org 0.0.0.0 - - [15/Mar/2010:01:29:39 -0400] "GET /lib/img/quote-close.png HTTP/1.0" 404 35543 "-" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET CLR 1.0.3705; .NET CLR 1.1.4322; InfoPath.2; MS-RTC LM 8)"

mydomain.org 0.0.0.0 - - [15/Mar/2010:01:29:40 -0400] "GET /lib/img/quote-open.png HTTP/1.0" 404 35534 "-" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET CLR 1.0.3705; .NET CLR 1.1.4322; InfoPath.2; MS-RTC LM 8)"

mydomain.org 0.0.0.0 - - [15/Mar/2010:01:29:40 -0400] "GET /cms/themes/oracle/img/nav_bg_off.gif HTTP/1.0" 404 35649 "-" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET CLR 1.0.3705; .NET CLR 1.1.4322; InfoPath.2; MS-RTC LM 8)"

mydomain.org 0.0.0.0 - - [15/Mar/2010:01:29:40 -0400] "GET /images/tooltip/tooltip-transparent.png HTTP/1.0" 304 - "-" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET CLR 1.0.3705; .NET CLR 1.1.4322; InfoPath.2; MS-RTC LM 8)"

mydomain.org 0.0.0.0 - - [15/Mar/2010:01:29:48 -0400] "GET /lib/img/quote-open.png HTTP/1.0" 404 35534 "-" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET CLR 1.0.3705; .NET CLR 1.1.4322; InfoPath.2; MS-RTC LM 8)"

mydomain.org 0.0.0.0 - - [15/Mar/2010:01:29:48 -0400] "GET /cms/themes/oracle/img/nav_bg_off.gif HTTP/1.0" 404 35649 "-" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET CLR 1.0.3705; .NET CLR 1.1.4322; InfoPath.2; MS-RTC LM 8)"

mydomain.org 0.0.0.0 - - [15/Mar/2010:01:29:48 -0400] "GET /lib/img/quote-close.png HTTP/1.0" 404 35543 "-" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET CLR 1.0.3705; .NET CLR 1.1.4322; InfoPath.2; MS-RTC LM 8)"

mydomain.org 0.0.0.0 - - [15/Mar/2010:01:29:49 -0400] "POST /cms/xmlrpc.php HTTP/1.1" 200 143 "-" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Windows Live Writer 1.0)"

Comments

allan1015’s picture

Anyone? Anyone? Bueler?

Looked over WLW module code, cant see anything that would even begin to help debugging this

And its still an issue and becoming a problem

If no one care about fixing this - perhaps some info on how wlw stores the theme/style info, maybe I can hack the data and copy the Story styling over into a Page entry

allan1015’s picture

Did some more research - added tracking to xmlrpcs (server)

The Post/Respond sequence is EXACTLY the same for a Story and a Page

The difference is that after metaWeblog.editPost it takes about 12s before the metaWeblog.deletePost on the Story (when it works)

For a Page there is about 90s between thew edit and the delete -
so what ever is going on and timing out, I guess isn't in the XML traffic, not the blogger api interface I guess.

Any ideas what WLW is doing on its side?

Still appreciate any insight into what could be wrong in the drupal setup that causes Pages to fail adn Stories to work

jdleonard’s picture

I wrote this up really quick so it may not be the easiest to follow. I'm fairly certain I've figured out why this is happening.

Here's the function of interest in wlw_blogapi.module:

/**
 * Blogging API callback. Finds the URL of a user's blog.
 */

function wlw_blogapi_blogger_get_users_blogs($appid, $username, $password) {

  $user = wlw_blogapi_validate_user($username, $password);
  if ($user->uid) {
    $types = _wlw_blogapi_get_node_types();
    $structs = array();
    foreach ($types as $type) {
      if (strcmp($type, 'blog') == 0) {
          $url = 'blog/'. $user->uid;
          $blogName =  $user->name .': '. $type;
      }
      else {
          $url = 'node';
          $blogName = $user->name .': '. $type;
      }
      $structs[] = array('url' => url($url, array('absolute' => TRUE)), 'blogid' => $type, 'blogName' => $blogName);
    }
    return $structs;
  }
  else {
    return wlw_blogapi_error($user);
  }
}

The interesting portion of the function is:


      if (strcmp($type, 'blog') == 0) {
          $url = 'blog/'. $user->uid;
          $blogName =  $user->name .': '. $type;
      }
      else {
          $url = 'node';
          $blogName = $user->name .': '. $type;
      }

This code essentially checks whether you're using the blog module (and if so, returns the URL of your blog as http://yoursite.com/blog/1 where 1 is the uid of the given username).

If you're not using the blog module, this code returns http://yoursite.com/node

I suspect what's tripping up Windows Live Writer is that its theme detection (which creates a temporary post and then looks at it quickly before deleting it) is only able to look at the post if it shows up at http://yoursite.com/node

A workaround for this is to ensure that any content type you want theme detection to work for must have the "Promoted to front page" option checked so that when the temporary theme detection post is made, WLW can find it at the URL returned.

Ideally, wlw_blogapi would allow the site admin to configure a custom blog URL to be returned for each content type.

jdleonard’s picture

jrglasgow’s picture

Status: Active » Needs review

I just noticed comment #3 and I think from that information I can fix this issue, I have some time to code it here at Drupalcon SF but not time to test it. It has been committed, and if someone can test it we can make a release with this fix.

Basically WLW_blogapi will tell WLW to look for all posts for testing purposes at 'wlw_blogapi/node' which is a clone on 'node' except it doesn't care about being promoted to front page

give it a try and let me know if it works