I type in “typewriter-style” — that is to say, I prefer to leave two spaces after the period at the end of sentences. In HTML, a series of whitespace characters is rendered in the browser as a single space, so you typically don’t see two spaces following a sentence unless extra measures are taken to preserve them.
I use WordPress for this blog and I noticed that, indeed, the two spaces are preserved. However, there is an issue. If a line happens to break at the end of a sentence, the second space will be carried over to the next line. (See image above.) In this article, I will explain what is happening and present a possible solution.
Continue reading Multiple spaces between sentences in WordPress
I ran into this problem with WordPress running on a Mac OS X server. I suppose that this may happen on other servers running Apache as well. Attempting to access the WordPress site threw this error at you:
The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there was an error in a CGI script.
If you think this is a server error, please contact the webmaster.
Turned out that the .htaccess file in the root of the WordPress install had some gibberish in it. It looks like this gibberish replaced some of the actual contents of the file. I don’t know how it got there, but fixing the .htaccess file solved the problem. So, that’s something to check if you are having this problem as well!
Update, June 6, 2014: This post seems to generate more spam than normal so I am disabling comments.
WordPress has a configuration option that you can set to force administrative sessions to happen over an SSL connection (https). Just add define('FORCE_SSL_ADMIN', true); to your wp-config.php file and you’re set, as long as your web server supports https and it is configured properly. Of course, this means that you must have an SSL certificate for your server.
It turns out that if your SSL certificate is not trusted, attempts to use the Flash uploader to upload files will give you a cryptic “IO error” message. In my case, this I was using Firefox when I first encountered this. My SSL certificate is self-signed, and even though I added an exception for it in Firefox, the Flash uploader still fails.
Here’s what I learned about this problem after banging on it for a few days.
Continue reading WordPress – Flash uploader fails in an SSL administrative session
If you have a WordPress blog, and you log in, you may notice pages failing HTML or XHTML validation because of code like this:
<input type="hidden" id="_wp_unfiltered_html_comment" name="_wp_unfiltered_html_comment" value="xxxxxxxxxx" />
This code only shows up if you are logged in, and allows your comments to bypass HTML validation, so you can use whichever HTML tags you like. What is causing the problem is the “id” attribute. According to the XHTML standard, the ID must start with a letter, and here it starts with an underscore.
Continue reading WordPress – _wp_unfiltered_html_comment causing pages to fail (X)HTML validation
Hello! First post in a while.
Welcome to the new aaron-kelley.net. I’ve migrated all of my previous content to WordPress, which now powers my site. This makes the site much easier to manage than the makeshift CMS that I had in place before. Hopefully, now I will be able to find the time to add some useful content.
There will be some changes to the appearance/theme over the next few days and weeks as everything gets settled. However, all of the old content is now available here, and the site is completely usable.
WordPress is a pretty cool platform to build a web site on. It’s really starting to take off now, too. I’ve known about it for a long time, but some of the features that made me decide to go ahead and move only came in as of version 2.7 ot 2.8 (or, in the last 8 months). I recommend looking into it if you are looking to build a simple site; it’s not only for running blogs, you can manage static content pages on it as well, and it is pretty easy to extend if you know any PHP. There’s even chatter about media albums coming to WordPress in the near future, so I’m hopeful that I’ll be able to move all of my content from the photo gallery into this site, just to have everything in one place. More on this later.
Probably, next up will be a series of blog posts on Ubuntu Linux — the operating system in general, and fixes to some specific issues that I’ve come across as well as other general tips. I’ve been collecting these since I switched to Ubuntu last November but never got around to posting them online. How can I not, now that it is so easy for me? I’ll also be posting whatever random useful information that I come up with — after all, my main audience is Googlers who find a page on this site while looking for something specific, and that’s how I plan to run things for a while longer.