Category Archives: Wordpress

Blogging with Microsoft Word 2007

One of the tools that you can readily utilize for blogging is an offline software editor to write, edit and publish posts to your blog. One (new entrant) among such editors is Microsoft’s
Word 2007.

Supported Blog Providers/Engines

Word 2007 – a part of the Office 2007 suite – provides in-built functionality to connect to different types of blogging systems and perform editing and publishing tasks from within the very familiar interface of Word. Supported are some of the major blogging engines out there:

If your blogging engine is not in the above list, then Word also provides an option of ‘Other’, where you can connect to your blog through the API provided by your blogging engine. Consult your blog provider to check how to publish from a software editor, outside of you blog. Most bloggers would be pretty happy though, just like me, to find WordPress in that list.

Connecting to My Blog from Word

It was a breeze to connect Word to my WordPress blog. All I had to do was to provide the URL of my WordPress blog (relative to the xmlrpc.php file) and my username and password for the blog. That was it! Now I am composing this post of mine from within Word, and (if everything goes well) I will be successfully publishing it from within Word as well.

One Caveat

There is, however, one important thing that needs to be checked: the way Word formats HTML content, inserting its own markup and what-not into the code. This is the biggest issue when composing or copy-pasting rich-text from Word, or other word processors, into a web-based visual editor (such as TinyMCE). That is why word processors are generally avoided for HTML based content creation (not even for copy pasting) to the extent that it’s highly discouraged. I will edit this post after publishing to check what has been done with the code behind the visual layer: whether Word 2007 throws its own garbage into the code or keeps it clean and tidy XHTML.

Word 2007 Blogging Features

I will be writing a tutorial in my next post on how-to utilize Word 2007 to post on your WordPress blog. For now, a brief list of blogging features that are provided in Word2007:

  • Publish: Publish the post to your blog account
  • Publish as Draft
  • Home Page: Opens the home page of your blog in web browser
  • Insert Category: Categorize your post from the already defined categories on your blog account, or type a new one
  • Open Existing: Open an already published post on your blog for editing in Word
  • Manage Accounts: Add, remove or modify your blog accounts

Now that it’s time to publish, I realize that Word lacks the ability to tag my post! Tagging is now supported by WordPress and I love to tag my posts with the relevant keywords of the post rather than putting them in one or two generic categories. Now this step will need to be carried out manually. Oh well. Let’s publish.

WordPress Feed Issue: Blank line before XML declaration

Gosh! Yet another issue in my WordPress!

This is the third time in less than two weeks that I had to troubleshoot my installation of WordPress 2.5.

This time, however, the issue was not with WordPress itself, but this particular theme that I am using – Illacrimo. The feed for this blog was throwing an error:

I learned about the error when I tried to burn my feed through FeedBurner, which informed me that the feed (RSS XML) was not well-formed:

The URL you entered does not appear to be a valid feed. We encountered the following problem: Error on line 2: The processing instruction target matching “[xX][mM][lL]” is not allowed.

It directed me to Feed Validator to check the feed’s validity, and for sure it was not well formed:

line 1, column 1: Blank line before XML declaration

So what now? Google zindabad! On WordPress Support I found this and this, but I didn’t find any concise and to the point answer there.

I found a concise and workable solution on W3C’s site – check it out.

Why does this error occur?

If an XML declaration (<?xml ... ?>) appears in your feed, it must be the first thing in the feed, before any whitespace.

Unfortunately, with WordPress it seems all too easy for a plugin, a theme, or for your configuration file to contain a blank line. Further compounding this problem, some — but not all — feed readers compensate for this common error, allowing the error to go undetected for quite a while.

What’s the solution?

The solution is to trim/delete any blank lines outside of the <? ... ?> in the PHP code of either the theme files (functions.php) or WordPress files (wp-config.php, wp-rss2.php, wp-atom.php).

I had a blank line between two PHP code sections in the theme’s functions.php file. It was not evident at first, but thankfully, I finally got it to work! Now my feeds are working fine.

So go ahead and subscribe! 😀

WordPress 2.5 – Yet another issue!

WordPress 2.5 is finally here, and I have upgraded to it from the initial Release Candidate 1 I had installed initially. WordPress is a blessing, and I love this new version!

But, after tackling with an issue in WP 2.5 RC 1, yet another issue was waiting to be tackled in this ‘final’ 2.5 version.

The issue was with TinyMCE Visual Editor. The Visual/HTML tabs were non-functional … in short, it was messed up (as seen in the image above. Image Source)!

I found a thread in WordPress Support on this issue, and this solution worked for me. Another post and solution here as well. Following is the solution that worked for me:

1. Compression is enabled on the server. If it’s set properly (in php.ini) the compressor for TinyMCE would detect it and not try to compress the js. To check for double compression: with Firefox, go to [your-site]/wp-includes/js/tinymce/tiny_mce_config.php. Should be a large text (js) file, starting with “var tinyMCEPreInit = …” and last line starting with “tinyMCE.init({mode:”none”,…”.

If it’s not – edit tiny_mce_config.php, looking for
'compress' => true,
change to
'compress' => false,

WordPress 2.5 RC1 Media Upload Problem Resolved

Software: WordPress 2.5RC1
Problem: Media Upload Problem
Status: Resolved!

As I was setting up this blog, I started out with WordPress 2.5 RC1 (Release Candidate 1). However, I faced a major issue with the new media uploading features that they have provided in 2.5; it failed to upload any media (I was trying audio). With some search, I stumbled on WP Support Forums and found that a few others were facing the same problem.

Finally, today, a working solution was posted. Thanks to Philip Barron for coming up with the solution here.

Solution: .htaccess tweak re mod_security and image upload using Windows Firefox