Tag Archives: wordpress 2.6

WordPress 2.6 ignores upload preferences

July 17th, 2008

WordPress 2.6 was released only a few days ago, so it isn’t too suprising that there are some bugs.  But this bug seems like it would have been very easy to catch.

From my investigation, it appears that WordPress 2.6 ignores the upload preferences that I have set.  By default WordPress likes to upload files, such as images, into a directory commonly located in /wp-content/uploads/.  From there it creates a hierarchy based on the date you upload a piece of media.

For some reason, I had changed my preferences a while ago to be /wp-content/mobile/photos/ ((Presumably because I thought the only photos I’d uploading using WordPress would have been from my mobile phone.)).  The only problem is now that this setting is ignored, when I want to upload a photo through WordPress’ “Add media” upload tool, it results in a broken image.

This is fairly easy to fix even while I write a post, since I’m able to edit the HTML of the post.  However, WordPress handles each piece of media the same as it would a post to your site.  So there is all types of data stored in the database for each media file uploaded.  Title, description, caption, thumbnail URL, original URL, being some of the metadata that is being stored.  Most of these I can edit through WordPress, some of them I can’t.

Take a look at my photos page.  There is a broken image there, not because the file does not exist, but because WordPress is looking in the wrong spot.  Unless I edit my database manually I will not be able to get that image to display properly.

I’ll do that soon, but I’m hoping someone sees this post that can address the problem for the next release.

Addendum: As db pointed out in the comments, the files are going to the correct locations. It just seems that the reference to the file, being written to the database, is in correct.

Update on July 18: As Simon points out in the comments, this is not necessarily a bug but it is unexpected behavior.  Read his comment for details on how to fix this in your 2.6 install, but it appears it will be “taken care of” in 2.6.1.

Ten things you need to know about the upcoming WordPress 2.6

July 1st, 2008

Aaron Brazell, who has done just about as much development on top of WordPress as anyone I’ve ever met, likes to break down each release of WordPress just prior to its release with these lists of things you should know about it.

It is obvious that Aaron knows WordPress down to its very core, including even the unused code, and that makes him perfectly suited for these types of updates.  He probably does research on each release before it comes out because his previous job position at b5media demanded that he know what was coming on the platform.  He still uses WordPress on a daily basis as he is the cofounder and lead editor for Technosailor on which this article is written.

These lists are extremely useful to those that do not have the expertise nor the time to focus on what is coming in each release of WordPress before they are released.

A note about WordPress 2.6: This, like 2.5, is an excellent release and I’m really looking forward to it.  I’m hoping that Apple updates to a version of Safari that Google Gears can run on, since Google has said it runs in the latest Webkit nightlies, soon since I won’t be able to use the Gears integration with WordPress until they do.

Source: Technosailor: 10 Things You Need to Know About WordPress 2.6.