Inking in WordPress 2.0

The times they are a-changin’.

This post seems to be older than 18 years—a long time on the internet. It might be outdated.

I downloaded InkableType so I could write blog posts using ink. However, I kept getting an error whenever I tried to post it. I turned on Ethereal to see exactly what error was being passed along:

<?xml version="1.0"?>
          <value><string>Could not write file 734e.gif</string></value>

A quick Google search turned up a known bug and quick fix:

  1. Open /wp-includes/functions-post.php
  2. Find $new_file = $uploads[‘path’] . “/$filename”; and replace with $new_file = $upload[‘path’] . “/$filename”; (Note the lack of “s” on $upload)
  3. Find return array(‘file’ => $new_file, ‘url’ => $url); and replace with return array(‘file’ => $new_file, ‘url’ => $url, ‘error’ => false);

Simple as that! WP still doesn’t return a valid response, although it looks like it does. However, the post is still made successfully, ergo you can safely ignore the invalid response.

Update: Truncated filename so that IE would display Nav Bar

[tags]wordpress, XMLRPC, error, InkableType, Ink, Tablet PC[/tags]