Technology

PHP Fatal Flex Scanner Internal Error

Recently when coding in PHP I got this error:

Fatal error: fatal flex scanner internal error–end of buffer missed in [file] on [line number]

Turns out it was because I forgot to close a comment block (forgot the */). Thought I’d post it here in case it helps someone. 🙂

WordPress 2.6 Features

Originally published on April 24, 2008. Updated on May 5, 20, 22, June 16, and June 20.

WordPress 2.6 may not be due until August 2008, but already I’ve managed to compile a list of features and enhancements that we’ll likely be seeing in this next major WordPress release. (I’ll continue to update this post as we approach the release date.)

Don’t Let Google Truncate Your Blog Post Titles!

Here are two tips to avoid having Google truncate your post titles with the dreaded ellipsis:

  1. Show the Post Title First — The default WordPress theme shows the name of the blog before the title of the post. Reordering your title tag puts the text more relevant to the searcher’s query (the post title) first. Plus it’s better for SEO, since your post title keywords are given more prominence.
  2. Keep Your Titles Short — Once you have your post titles at the beginning, you should avoid truncation by keeping the titles under 64 characters or so if possible.

How to Find and Fix 404 Errors

If you’ve changed post slugs, taxonomy slugs, or permalink structures, you likely created 404 pages (page-not-found URLs) along the way.

These 404 pages certainly aren’t helpful for visitors who stumble across them and can increase your bounce rate. It can be a particular problem if search engines, pingbacks, and/or internal and external links are sending traffic to the old URLs.

Here’s how to resolve the issue:

WordPress: What to Do If Plugin Deactivation Breaks Your Blog

Say you just disabled a plugin, and now your WordPress blog’s front-end says “Fatal error: Call to undefined function.” Part of your site may even be missing.

The problem is that your theme is calling on the plugin you deactivated. However, since that plugin is gone, the site displays an error and then stops rendering the rest of the page.

Here’s what to do:

How to Backup Your WordPress Theme

If you’re about to make a modification to your theme files that you aren’t sure about, it’s a good idea to backup your theme, especially if your theme is custom-made (i.e. you can’t just re-download it if something goes wrong), or if you have many other theme modifications you want to preserve.

Here are two ways to do it:

In Defense of WordPress 2.5’s New Widget Manager

ScreenshotIf you’ve been keeping up with WordPress 2.5, you probably know the intuitive drag-and-drop sidebar assembly of WordPress 2.2/2.3 has been replaced with a more cluttered method of widget administration, involving a dropdown to select the sidebar you want to work with (see screenshot).

At first glance this seems like a step backwards, but I came across a post called “In defense of the WordPress 2.5 widget panel” that makes a very good point: