Old-style upload plugin for WordPress

I just started working with WordPress and i found out that uploads weren’t working :-( . After making sure that the webserver user was granted upload permission (chown webservuser wordpressdir/wp_contents/uploads) and confirming the file paths it was still broken. While “Googling” for a solution, i found a nice plugin called Filosofo Old-Style Upload plugin that enables what they call ‘old-style’ uploading. I’m starting fresh with WordPress 2.3.3, so i don’t know about ‘old-style’ WordPress, but i do know that i want to have control over what I upload and where I upload it.

Anyways, i found the problem causing the “Is its parent directory writable by the server?” message. It was caused by PHP safe mode, so beware to check for php safe mode to be off if you want file uploads to your filesystem to work. My current hosting provider (servage.net) has PHP safe mode enabled by default.

I guess it would be a nice feature if on the upload page a warning would appear to tell you that due to PHP safe mode, file uploads might not be allowed, or is there a better way?

WordPress 2.3.3 validation errors

I’m very found of websites that are completely XHTML compliant. I found out that a default wordpress 2.3.3 installation is not XHTML compliant. After some research i found out that a validation error occurred due to two link sections with the same id-name. After removing a link section (by leaving one blogroll category), the validation error was gone, as expected.

Of course i can fix it myself, but it’s a good thing to first look around (“Googling” :) ) and see if you are not the only one with the problem and if there might be a solution at hand. Luckily, most of the time, there *is* a solution at hand, in this case thanks to other fellow WordPress users, like Andrew:

http://www.vayanis.com/2007/08/09/wordpress-22s-link-widget-validation-errors/

I chose the durable ‘My Links’-Widget-solution to prevent future 2.3.x updates from overwriting the ‘in-php-code’-hack. Let’s hope it get’s fixed soon, because multiple blogroll links sections should not break valid XHTML IMHO.

The issue is registered as a bug with WordPress trac: http://trac.wordpress.org/ticket/4287

The source i used can be downloaded here (rename to MyLinksWidget.php and use standard plugin deployment for WordPress) : MyLinksWidget.php. I hope this can help anyone.