WordPress 3.3: It looks great!

WordPress team just announced that the new version of WordPress is available. It’s WordPress 3.3 “Sonny”. Matt posted some notes about this release. I have WordPress for multi-site installation, and since the previous upgrade went smoothly — except some minor issues — I had no reasons not to upgrade. It was easy, just took few seconds.

I like the way WordPress greets me with useful information. You will get information about new features. You know what your WordPress installation can do. Nice.

I need some more steps to upgrade since my blog is a network-blog. It took only few extra clicks. When I go to post creation page, I got a tiny  tooltip telling an information about what I can get from this installation. The media uploader is improved now. It’s drag-and-drop now. If you have problem, you can still use the basic uploader. And, it also supports additional files (.rar and .7z).

This release is also great for those who wants to start blogging using WordPress because “Help” provides more details about the current page — yes, it’s depending on the context.

If you want to read all details about this WordPress 3.3, go to WordPress Codex. For me, these are some to highlight:

  • Drag-and-Drop Media Uploader
  • Post-update About screen — After upgrading, you know what the new features are.
  • When inserting a Gallery to be ordered by Date/Time use the post_date field for ordering rather than ID

 

Missing WordPress’ Jetpack Statistics Data

I have been using WordPress Stats plugin for long time. And when Jetpack  was introduced, I had it installed right away. Everything works great. What I like about WordPress statistics data — from this plugin — is that it can give me some useful insight about my blog traffic. It’s not as detailed as Google Analytics, of course. But, it’s useful.

Yesterday, I made some modifications on the blog theme. I was not sure whether this problem has something to do with the issue or not. But, when I logged in to my WordPress dashboard and hit the Stats Page I found an error. Something regarding the invalid token.

I disabled Jetpack plugin, and had it enabled again. I did it using the standard procedure: install, connect to WorPress.com account, and configure.

All works. But, not the statistics. All statistics are gone.

I have some statistic profiles under a single WordPress.com account. I checked the other sites, and they’re all working. I’m still looking for a solution for this. I feel that all the statistics are stored at WordPress’ server. I think I will try to contact them. For now, I think I will use Google Analytics data and server log.

WordPress 3.2.1 Dashboard Problems

After upgrading to WordPress 3.2.1, I didn’t work with it right away. I found that the Dashboard had a new look, and I was fine with that. When I logged in to my WordPress Dashboard few days ago, I experienced some problems. Few key features — especially on the post editing screen — were broken.

I can’t insert image easily, the text formatting buttons also didn’t work well. I can’t edit post permalink (post slug). I went to WordPress support forums, and there were some users experiencing the same problems. There is also a forum thread as detailed troubleshooting guidelines. Reading the thread, I found the problem was on Disqus Commenting System plugin. Yes, I use Disqus for my blog. Something needed to be done with this plugin. I don’t want to use the native commenting system. So, I searched for a solution. And, I found one at Miranda@AT’s blog.

Since Disqus haven’t released an update for this issue, you need to edit the plugin manually. Here are some details:

Problem (source):

Using Opera Dragonfly, I quickly found a JavaScript error:
Uncaught exception: Syntax error, unrecognized expression: [href=edit-comments.php?page=disqus]
This is caused by a change in jQuery which was upgraded to version 1.5.2 in WordPress  3.2. Unquoted selectors are no longer allowed in jQuery 1.5.2, so this is a fairly easy fix.

Solution by Miranda@AT:

  • Open wp-content/plugins/disqus-comment-system/disqus.php
  • Go to around line 761, and find this — Use Disqus Commenting Sytem version 2.61:
    mc.find('a.wp-has-submenu').attr('href', 'edit-comments.php?page=disqus').end().find('.wp-submenu  li:has(a[href=edit-comments.php?page=disqus])').prependTo(mc.find('.wp-submenu ul'));
  • Replace this code: li:has(a[href=edit-comments.php?page=disqus]) with li:has('a[href=edit-comments.php?page=disqus]')
  • Save the file.

After having the plugin file modified, I had the Dashboard worked normally. At least, the key features are back to normal.

Moving a WordPress-powered site to another domain: The Permalink

Yesterday, I needed to move a self-hosted WordPress site to another domain. The process was easy because it’s like copying all files, edit the configuration file and editing internal links in all posts. All process only took less than 15 minutes. But, that’s not the only thing. One of the important things needed is to maintain the article links — known as “permanent link”.

This is important because I don’t want to send the visitors coming from other sources (links in blog posts, shared link on Twitter or Facebook) to missing pages. It’s called “permanent link”, right? So, having the permanent link broken is not a good idea.

I came up with a simple solution: using .htacess. After moving all files and checking all configurations I put these lines in the .htaccess file:

RewriteEngine On
RewriteCond %{HTTP_HOST} ^.*olddomain\.com$ [NC]
RewriteRule ^(.*)$ http://newdomain.com/$1 [R=301,L]

So, when visitors visit olddomain.com/path/to/article/, the browsers will go automatically to newdomain.com/path/to/article/. Easy!

Are you using WordPress’ Post Formats feature?

If you have upgraded your WordPress installation to the latest version (right now, it’s Version 3.1), you can take advantage of its “Post Formats” feature. So, what is it anyway? WordPress Codex explains:

A Post Format is a piece of meta information that can be used by a theme to customize its presentation of a post. The Post Formats feature provides a standardized list of formats that are available to all themes that support the feature. Themes are not required to support every format on the list. New formats cannot be introduced by themes nor even plugins. The standardization of this list provides both compatibility between numerous themes and an avenue for external blogging tools to access to this feature in a consistent fashion. In short, with a theme that supports Post Formats, a blogger can change how each post looks by choosing a Post Format from a radio-button list.

This feature might be useful if you want to “format” your blog posts, especially when you want to have different output format from your WordPress theme. Just think about Tumblr service. Tumblr is very easy to use when you want to make a kind of item collections. Sometime you want to embed a video, post a link, make a regular blog post, or even embed an audio file. If you want to create a new post, you will have something like this:

Continue reading »

After using DISQUS for a month

A month ago, I migrated this blog commenting system to DISQUS and I notice that I got zero spam. Great! Previously, I used Akismet and it also worked great. Akismet can identify comment spams but the they still entered the system database.

I know, this blog doesn’t have a huge amount of traffic. But for a low traffic website, Akismet detected hundreds (and sometime thousands) of comment spams — according to the Akismet statistics in my blog. Not good. Thinking of using DISQUS for my other blogs I maintain.

How to Merge Two Blogs Using WordPress 3.0 Multi-Site Feature

Now, WordPress installation in this domain (orangescale.net) powers my other blog — in Bahasa Indonesia, using WordPress 3.0 Multi-Site feature. I decided to use this method so that I don’t have to manage two separated WordPress installation. In short: orangescale.net and thomas.or.id are now using a single WordPress installation, using orangescale.net as the primary blog.

This method works on my blog, but I don’t guarantee that you will have the exact process depending your own installation:

  • First, enable WordPress 3.0 Multi-Site feature
  • You should have access to modify domain DNS record. If your webhosting provider provide “Add-on domain” feature, it should work.
  • Create a new site under First Blog, you can use any address first.
  • Export contents from blog you want to move using WordPress export feature.
  • Import the export file you have to Second Blog.
  • Copy all media files from Second Blog to firstblog.com/wp-content/blogs.dir/files/X/ (Note: “X” is the Site ID).
  • Check all settings, escpecially the image locations in your posts. Later, the uploaded media files will use this path: seconddomain.com/files/path/to/image.jpg (the path might be different). If you have broken image path, check the settings and paths again.
  • Install WordPress MU Domain Mapping plugin. Follow the instruction. It’s easy.
  • Modify Second Blog DNS settings. Basically, you need to create an A record. Point your Second Blog domain to an IP address used by First Blog.
  • Check all plugins, blog settings, and permalink.
  • Enjoy!

I don’t know whether it’s an easy process or not, but here I want to show you that WordPress 3.0 Multi-Site feature can be useful. If you’re still comfortable to manage multiple blog installations, you don’t need to use this method.

It’s not a problem-free solution, of course. And it might be tricky sometimes. For example, about the plugin activation. Which plugins should be installed ‘globally’ or ‘locally’. Some plugins might work without any modifications. Here, I still have a plugin that does not work on my Second Blog. It works well on my primary blog, but not on the secondary. So far, I’m happy with the result.

Some Notes About Enabling Multi-Site option in WordPress 3.0

After upgrading my blog using WordPress 3.0, I was thinking of taking the opportunity to have the multi-site option. Previously, I played with WordPress Multi User. So, I think it would something I’m familiar with. If you’re not familiar with WordPress 3.0 features, you can check WordPress Codex first. You can find lots of useful information there. It’s a good place to start.

Currently, this blog is already using Multi-Site feature. The setup was easy, but I want to share few things I had during the ‘migration’. By default, this feature is disabled. So, you will see no settings/option under your WordPress Dashboard menus. If you’re ready to enable this feature, the first thing you need to do is to modify WordPress configuration file (wp-config.php). Add this line of code into wp-config.php:

define('WP_ALLOW_MULTISITE', true);

Continue reading »

WordPress 3.0 Error: Briefly unavailable for scheduled maintenance

I have upgraded this blog to WordPress 3.0 not long after it was available for download. Everything went without any major issues. I only use it without special hacks. One thing that makes this version a little bit different is that WordPress will bring your site offline if there is/are something not working. For example, when you’re upgrading your plugins. WordPress will temporarily bring your site under maintenance mode.

If all process were completed, you should be happy. Otherwise, you will need to do some extra works. WordPress will display this kind of error message: “Briefly unavailable for scheduled maintenance.” You will be locked out from your admin area. Your website will be inaccessible. Solution? Easy. You need to go to login to your webhosting server, and remove .maintenance file. You can find it in your blog folder — the same location with your wp-config.php.

WordPress 3.0 Installation Process

Today, I tried the upcoming WordPress 3.0 distribution. It’s not yet released. I installed WordPress 3.0 Beta 2. I do this because I want to know whether I will have some WordPress installations upgraded or not, to find the possibilities and considerations.

The installation process is similar to the previous versions, but I think it’s improved now. After you fill in the database information, usually you will need to provide website name/title, and email address. The installation process will create “admin” as the first user, with randomly generated password. Here are some new fields during the installation process.

Better? Better. Previously, I usually modify the “admin” username directly from database manager — I’m using phpMyAdmin. Some people think that it’s a good practice to remove/change the default administrator login in the system. Now, you can have whatever username for the administrator.

Previously, the first thing you will need to do after you have your WordPress installed is changing the randomly generated password, since it’s not easy to remember. Setting up password during installation should be a time saver.

I haven’t dug any other features like the multi-site, custom menus, and other things offered in this distribution. Later.

Automatic WordPress Backup (to Amazon S3)

Today, I tried another WordPress plugin called “Automatic WordPress Backup”. This plugin will help blog owners to create backup remotely to Amazon S3 service. Since I’m using it and pretty satisfied with the billing usage, I installed it at some WordPress-powered blogs I maintain.

I use one of the available buckets under my account. For this bucket, I set its ACL (Access Control List) to private, of course. After this plugin installed and activated, I only needed to put my Access Key ID and Secret Access Key.

I decided not to include all files for my backup. I only need the database and uploaded contents. After the settings were saved, I simply hit the backup button. The process depends on the disk and database usage. I found that it was pretty fast. One of my backup files was around 300 MB, and it only took less than 5 minutes to complete the process. Also, the backup file was compressed. This should be useful to cut the usage process as you only need to store a single file for each backup.

The backup files will be automatically delivered to my Amazon S3 bucket and when the process completed, I can see the backup history. To download the backup, I only need to click on the backup links.

The backup links are built using pre-signed URLs so that only the account holder (or someone who knows the URLs) can download them.

WordPress, Amazon S3 and CloudFront

Amazon Web Service Logo

In the last two days, I was working on an experiment to use Amazon Simple Storage Service (S3) and Amazon CloudFront together with WordPress. It’s not primary for my blog, but for my friend. There are many tutorials and good recommendation on this. Since my friend using WordPress as the publishing platform, and it is easy to integrate with S3 and CloudFront, I gave it a try. But, what is Amazon Simple Storage Service (S3)?

Amazon S3 provides a simple web services interface that can be used to store and retrieve any amount of data, at any time, from anywhere on the web. It gives any developer access to the same highly scalable, reliable, fast, inexpensive data storage infrastructure that Amazon uses to run its own global network of web sites. The service aims to maximize benefits of scale and to pass those benefits on to developers. (from Amazon S3 website)

Actually, using Amazon S3 might be just fine. Since I want to make experiment, I decided to subscribe to Amazon CloudFront, too.

Amazon CloudFront delivers your content using a global network of edge locations. Requests for your objects are automatically routed to the nearest edge location, so content is delivered with the best possible performance. Amazon CloudFront works seamlessly with Amazon Simple Storage Service (Amazon S3) which durably stores the original, definitive versions of your files. Like other Amazon Web Services, there are no contracts or monthly commitments for using Amazon CloudFront — you pay only for as much or as little content as you actually deliver through the service. (from Amazon CloudFront website)

This is my first attempt using those two service. The subscription is easy. Create an account at Amazon, fill in the billing information, and start subscribing. That’s all. After few attempts, I finally have it working. I hope it’s working without any issues. Anyway, for WordPress integration, I use Amazon S3 for WordPress plugin. Let’s wait until the end of the month to get the billing statement.

Haikumattic

I think I like the concept behind new Automattic’s website. The products and descriptions are haiku-powered. This is how they explain about WordPress.com service:

Hassle-free blogging
Even with your own domain
Freemium model

About Akismet:

Remember the days
Innocent inboxes gleam
Be spam-free again.

For complele list, go to Automattic’s site.

body_class() for WordPress Theme Designer

I just upgraded my WordPress engine to the latest version. This new version offers some improved and new features. One of them is about body_class() function. Nathan Rice has a definition about this:

The body_class() function operates in nearly the exact same manner as the post_class() function that was introduced in WordPress 2.7. The only differences are the classes it generates. The body_class() function will generate the classes mostly based on where your viewer is on your site.

I used post_class() when it was introduced in WordPress 2.7. This body_class() new function is a great addition for WordPress theme designers. Well, actually it’s not only for WordPress Theme designers, but it’s more for those who want to have/do more on the template. We can have some automatically generated HTML tags like these:

  • <body class="single postid-12">, or
  • <body class="page page-id-9 parent-page-id-0 page-template-default">, or
  • <body class="page-template page-template-tutorial-php logged-in">

See the patterns? Jump to Nathan Rice’s blog posts to read more details. In short, if you want to use this function, just modify your <body> tag. Change it into <body <?php body_class(); ?>>. That’s it!

Post by Email for WordPress-powered Blog

Recently WordPress hosted service introduced a new featured call Post by Email. It’s like Posterous. This new feature is available for WordPress.com users. If you’re using WordPress.com, head to Post by Email detailed information.

But, what about self-installed WordPress? This feature is already in the distribution for long time ago. But, I think most people prefer posting in standard way. If you need to blog/post by email into your self-installed WordPress, I think you should try Postie. The feature is similar like what hosted WordPress users have, but of course, you need a little extra work. If you’re experienced with your self-installed WordPress, it should not be difficult to have this plugin work.

WordPress Automatic Upgrade and Default Theme

Last few weeks, I worked on a WordPress theme design. But, it was the first time I used default as its theme folder. If you use WordPress, you might know how WordPress will deal with default theme folder. It will be used if something goes wrong with the theme. For example, you’re working on a theme file, and it’s broken, your WordPress theme will be automatically reverted to the default folder.

I chose to use default folder because I always want to have this theme loaded. But, I found that it was not the best decision to make. Why?

It’s about WordPress automatic upgrade feature. When WordPress 2.7.1 was available, I upgraded using its web-based upgrade system. Click on the automatic ugprade button, and voila! Latest version was installed. BUT, it will overwrite my theme files, which are located in the default theme folder. Luckily, I still have the backup. So, I re-uploaded the theme files into different theme folder.

WordPress Plugins Search and Comment Threading

Finally, WordPress now offers a better search engine for its plugin directory. It is using Sphinx right now. But, it does not search plugins by authors and tags. It only reads all information from readme.txt file which is delivered in every plugins uploaded to directory.

Another improvement — well, I think I should call it “feature” — is that WordPress.com is now supporting comment threading feature. This feature is included in the core if you’re using self-hosted WordPress 2.7.1. Since WordPress.com seems already upgrade to the latest version, we can now use this feature also. Just go to Settings and choose Discussion from your WordPress.com dashboard.

Troubleshooting: Can’t Login After WordPress Upgrade

Today, I was helping my client upgrading her WordPress-powered blog. He was using WordPress 2.6.x series. I upgraded using the standard procedur, and I thought the whole process was painless. But, it was not. I could not access its “Dashboard”. The login screen was there, but when I entered the username and password — I was 1,000% sure that I typed a correct combination — nothing happened.

Few months ago, I had a problem with the “Redirect Loop”. I made a speculation: removing all plugins under wp-content/plugins/ directory. Of course, after I made sure that I had the list of all active plugins. After that, I tried to login again, and voila! I continued re-installing all plugins needed. Problem solved.

The first maintenance release for WordPress 2.7 is ready to download. Using the auto-upgrade tool from the dashboard, it should not be painful. I’ve upgraded, and it only took few seconds. :)

About Facebook Connect for WordPress

I installed Facebook Connect as an experiment for this blog last week. With some modifications, it works fine here. If you’re using WordPress and want to try Facebook Connect, here are few things you might need to know. Anyway, I’m using Facebook Connect 0.9.9 plugins for WordPress. It’s recommended to use the latest version. When I write this post, the newest version is 1.0.

When Facebook users are “connected” to your blog, it means:

  • They will be registered to your blog as “Subscriber” in your WordPress system. Some account information — from Facebook — will be inserted. They are “Full name” and Facebook Profile ID.
  • The usernames will be a combination of FB_ prefix with profile ID. So, you will have usernames like these: FB_1015647304, FB_1226611178, FB_678048415, etc.
  • The “Website” field will be their Facebook profile page.
  • Biographical Info will be derived from Facebook profile based on the data at the time they’re connected.
  • Email address will not be inserted as user profile data. Connected users can edit their profile (edit display name, email address, website URL, etc) by signing in to your WordPress Dashboard. This will make them supply their email addresses.
  • Facebook profile images will be used as avatars.

Right now, I have some questions (for myself) about this Facebook Connector plugin.

  • Can they “disconnect” from my blog? I don’t see an option for this. The only thing I can do to “disconnect” them from my blog is by deleting their account in my WordPress system.
  • Some Facebook users have been connected. And then, what? What’s the benefit of being “connected”? I know, it’s like creating a small community for a blog. But, what’s the other benefit?

I will leave Facebook Connect here for now. But, I’m thinking of removing it later. Anyway, Facebook Connector is not a bad plugin. It’s great piece of plugin to make connection between your WordPress-powered blog and Facebook.

Live search:

I'm @thomasarie on Twitter

Subscribe to RSS

Enter your email address and get recent updates sent to your email in the morning.

This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.

Designed by Thomas Arie. Icon character by Fredy Sujono.