Sep 22 2009

Problems with WordPress MU 2.8.4a and PPSX files

WordPress MU 2.8.4a refuses to upload .ppsx (PowerPoint Show files for PowerPoint 2007/2008) because the extension hasn’t been defined in the functions “wp_check_filetype” and “wp_ext2type” in /wp-content/functions.php

Not having ppsx defined here causes WordPress? MU to throw the warning “File type does not meet security guidelines. Try another.” when uploading the file (even when the ppsx file type itself is blessed in WPMU’s admin options).

I’ve reported the bug to WordPress MU Track here:

Update

The fix isn’t quite so straightforward as just adding .ppsx to the list of valid PowerPoint extensions, because technically PowerPoint Shows for 2007 have their own MIME type:

  • application/vnd.openxmlformats-officedocument.presentationml.slideshow

As does PowerPoint 2007:

  • application/vnd.openxmlformats-officedocument.presentationml.presentation

Specifying the wrong MIME type for PowerPoint Show files caused WordPress to add a .ppt extension to the file, which played havoc with subsequent downloads. The fix was to specify the MIME type in wp_check_filetype:

  • ‘ppsx’ => ‘application/vnd.openxmlformats-officedocument.presentationml.slideshow’

My bug report at WordPress MU was closed because this is technically something that needs to be changed in core WordPress; I’ll be reporting it there shortly.

No responses yet

Jan 30 2009

Fixing SSL Directory Errors in WordPress MU

“You are in a maze of tiny, twisty passages, all a like”.

That line shows up in Zork and its variants when you get lost in a labyrinth, and it’s how I feel right now trying to puzzle through the best way (or hell, ANY way of securing WordPress Mu in directory mode).

What I’m trying to do is this:

  • I want to enable secure logins and admin pages (so that these pages are protected via SSL and have https addresses).

I’ve got a WordPress Mu install setup in directory mode, e.g.:

  • The main blog is at wordpress.foo.edu.
  • The daughter blogs will appear in subdirectory format, e.g. wordpress.foo.edu/bar

In normal WordPress, this goal can be accomplished by setting two constants in the config file:

  • define('FORCE_SSL_LOGIN', true);
  • define('FORCE_SSL_ADMIN', true);

Another option is to make use of the Admin-SSL plugin:

With WordPress Mu, it seems things are a bit trickier. Ok, a lot trickier.

Both methods will protect the main blog at wordpress.foo.edu, I get nothing but 404s when I try and access any of the daughter blog admin pages at wordpress.foo.edu/bar/wp-admin. Traffic is successfully redirected to https, but the server simply spits out a 404 page, saying there’s nothing there to load.

This is the same thing that happens when you, ahem, forget to include the htaccess file with the various mod_rewrite commands that allow for clean urls in WordPress, so my assumption was I’d just need some more mod_rewrite magic to get WordPress to properly serve these pages.

This led me on a mad chase to try and figure out the best way to do that. Instructions in the following post seem like they should work:

And yet not. More 404s. More headaches. It could just be that I’ve been working on this too long, and need to let it simmer overnight. It seems to me that there must be a way to use mod_rewrite to force Wordpress Mu to resolve these https addressses the same as it does http, but I’m just not seeing it.

My guess is that this all would work just fine using the subdomain method, but we really want to use the directory one.

So yes. There’s a maze. With tiny twisty passages. And they are all alike. Time to hit the reset button, and tackle it with new eyes tomorrow. In the mean time, if anyone has any bright ideas, please let me know.

Update: 2/2/2009

You knew it was going to be something small and obscure right? And you new it was going to be something that prevent the .htaccess file from firing, right?

When last I wrote on Friday, sub-blogs failed to load whenever you tried to access an https-enabled page. I couldn’t help having this gut feeling that my issue had NOTHING to do with .htaccess/mod_rewrite and everything to do with a server configuration issue.

On Sunday, I did some experiments, and I discovered that when I tried to load an SSL-enabled daughter blog, the htaccess file was never even executed.  I tested this by purposefully breaking the htaccess file so it would cause a server error; when I loaded https://wordpress.foo.edu”, I got a “page not found” not a “you idiot, you broke the server” error.

So I switched gears and started looking at issues with httpd.conf and ssl.conf. That’s when I came across the very nifty “Installing WordPress Mu” ebook [pdf], where I saw this bit of advice: 

Permalinks do not work or Can’t find subblogs in subfolder install
If everything looks like it installed okay, but when you start clicking on links and you get 404’s or server errors, you need to do a little Apache configuration. Even if you have mod_rewrite enabled, and the htaccess file is there, on some setups the web account is set to not let these settings through. You’ll need to go to terminal mode and edit the httpd.conf file. See back on page 5, and while you’re in there, look for the directive of your virtual host, find this line “AllowOverride None” and change it to “AllowOverride FileInfo Options”. With no quotes. :)

Sounds familiar … doesn’t it?

So I look at the wordpress entry in httpd.conf and see that yeah, AllowOverride is configured as “AllowOverride FileInfo Option”. But ssl.conf? THAT was set to “AllowOverride None” As a result, WordPress MU worked just fine on regular pages, but failed on secure ones.

Changing ssl.conf so that AllowOverride was set to “AllowOverride FileInfo Options” fixed the problem. Apache, htaccess and Wordpress are on speaking terms again, login/admin traffic is automagically routed to https, and the freaking page LOADS.

[sigh]. It’s only obvious in hindsight.

3 responses so far

Jan 16 2009

Podcasting plugins for WordPress Mu

We’re gearing up for a WordPress Mu pilot at the college, and I’m feverishly researching plugins to use with it. Here are the big three I found:

  • PodPress: The godfather of podcast plugins. It hasn’t been updated in a while, and there have been mixed reports about how well version 8.8 works with WordPress 2.7. A new version 9 is apparently in the works, but no one knows if/when it will appear. The file upload interface is a bit clunky, but there are a huge number of backend-options, plus stat tracking.
  • Podcasting: A simple plugin that requires you know the URL of the file you want to podcast. That’s fine for tech-savvy people, but I think it’s going to fail the “quick and easy” test for everyone else.
  • Blubrry: The lead contender. It works with the regular file upload interface for WordPress; if you insert a file into a post using the regular interface, it adds an MP3 player to the post. It also has a nice selection of backend feed options.

I still need to experiment with how these different plugins handle video files (so far, Blubrry worked like a charm), and I’m continuing to look at other options. I’d love to get some feedback on how well these different plugins work, as well as recommends for plugins not on the list

4 responses so far

Nov 13 2008

Slickr and WordPress Mu

One of my design goals for WordPress Mu is to be able to easily support faculty and student photo galleries. One way of doing that is to go with an externally hosted solution like Flickr, and then use a plug-in to pull said photos into WordPress posts.

Slickr is a AJAX-based plug-in for WordPress that does exactly that. It looks good — check out the demo here — but there are some practical problems with it. The biggest is that it bases its galleries on Flickr albums rather than tags. This is fine, except that non-pro, free Flickr accounts are limited to three albums, while you can have an unlimited number of tags.

It’s a useful tool, especially for those who want to have a social networking tie-in to their photo galleries, but unless I pay for pro accounts for my industrial-strength users, it’s not the right solution. Instead, I’m looking at NextGen Gallery, a locally-hosted solution that simple photo galleries, slide shows, and the uploading of zipped files.

No responses yet

Oct 31 2008

Displaying inline lists of posts from a WordPress category?

In looking at WordPress Mu as a possible lightweight CMS for campus organizations and departments, I’ve found myself on a quest … a quest to figure out if/how WordPress can display an inline list of posts from a given WordPress category.

So what do I mean by that? Well, consider this actual use example from the “Research Tools” database I ported over to Drupal for a recent Library redesign project. The original database contained a number of records relating to research tools (journals, indexes, etc.) relating to a particular subject area. These records were assigned to categories like “Africana Studies: Major Research Tools” and “Africana Studies: Other Research Tools”. The original database then dynamically served up lists of these research tools on a single “Africana Studies” themed web page.

Continue Reading »

2 responses so far

Oct 31 2008

WordPress 2.6 Flash Image Uploader Broken

My wife uses WordPress for her blog, and complained the other night that she was no longer able to use the Flash uploader to add photos to her web site. Digging around the web for an answer, I came across this support post on WordPress.org: Image/Media Uploader problems? It walks through some common problems, and then gets to this big:

3. Update your Adobe Flash to the latest version (esp you Linux users!): Flash. NOTE: NOT TO VERSION 10. The new Flash version 10 is incompatible. The latest version 9 of Flash is what you want. There will likely NOT be a fix for this any time soon, since the problem is actually with Flash 10 itself. Stick with Flash 9 for the time being.

This raises the question of how one installs Flash 9 if you’ve already got Flash 10. Adobe doesn’t make this easy — I couldn’t find a direct link from the Adobe Flash home page — but fortunately Google dug up the archived version page:

The problem is even after reverting back to Flash 9, this still doesn’t work. Oh I can click the button now and select a file, but once selected said file never uploads; the browser just sits there. Searching it around, it appears I’m not the only one experiencing this.

So the short answer seems to be “use the browser uploader and hope the flash one is fixed … someday.”

One response so far

Oct 30 2008

PodPress with WordPress Mu

podPress is a podcasting module for WordPress created by Mighty Seek. It allows you to customize your feed, attach (but not upload) files to the feed, and track statistics about who’s doing what with the podcast (e.g. playing it on the site, downloading it, etc.)

It comes with an audio player (I haven’t mucked about with the video options yet) that allows audio to be played on the page.  It supports built-in previews showing you how the podcast’s entry will look in the most popular podcasting directories (including iTunes and Yahoo).

podPress lets you preview what your entry will look like in iTunes, Yahoo and other popular directories.

The good news is that it appears to work out of the box with WordPress Mu, which is fantastic. One of our major goals for the WordPress pilot is to be able to support podcasting, and I think this would be a great tool for doing it. It also helps that almost every podcaster I know who uses WordPress also uses podPress … and I know a lot of podcasters.

A screen shot of the podPress file attachment interface.

The only downside to the app that I can see is that you can’t upload files as part of it; you need to upload the file using the “add media” buttons in WordPress, copy the path to said file, and then paste that path into the podPress portion of the page.

It’s clunkier than I expected; if nothing else I’d like for it to be able to browse the user’s media directory. I can see this cutting and pasting of urls being a little clunky for new users, but given the rest of podPress’s feature set, I think we can live with it.

One response so far

Oct 28 2008

LDAP and WordPress Mu

An absolutely essential component of any WordPress roll-out we do is support for LDAP, either directly through an LDAP module or indirectly through Shibboleth support. Fortunately, there’s a current LDAP plugin available that handles the first part; I’m still looking into what Shib support there may be.

This plugin worked out of the box for me with WordPress Mu 2.6.x, which is always a nice thing.

4 responses so far

Oct 27 2008

Experiences with WordPress Mu

I’m looking at doing a pilot of WordPress Mu as a campus-wide blogging platform, and I’m curious as to what others experiences have been with the software. At this point I’m kicking the tires and figuring out what plug-ins we’d need to include to do what we want to do.

I see four big needs for the blogging platform:

  • Blogging (it does this out of the box, no big deal)
  • Podcasting (in theory, I think it creates RSS enclosures for uploaded files, but I’d rather that give people a finer degree of control)
  • Video Insertion (plugins for YouTube, Hulu, etc.)
  • Photo Galleries

PodPress seems a logical choice for Podcasting, but I’ve heard mixed reports about how well it works with Mu. Photo Galleries are another challenge; we’re debating going with a hosted service like Flickr vs. a locally installed option like Gallery. Authentication is the big issue there; if we go with Flickr, everyone has to maintain their own accounts. If we go with Gallery or something hosted locally, then we have a better chance of integrating it into our existing authentication schemes.

Using Mu? Curious about our own experiments? Post a comment below.

No responses yet