Fix WordPress ‘Destination directory for file streaming does not exist or is not writable’

Posted by & filed under Code Snippets, PHP, WordPress.

PHP Code Snippet

Occasionally you will try and install a new plugin on a fresh install of WordPress, and come a cropper with an error that returns ‘Download failed. Destination directory for file streaming does not exist or is not writable.‘   This is usually caused by incorrect permissions in the wp-content folder, as WordPress needs to create a…

Read more »

Disable plugin updates for a specific plugin in WordPress 3.8

Posted by & filed under Code Snippets, PHP, WordPress.

PHP Code Snippet

Obviously, where possible, you should always keep your plugins and WordPress versions up-to-date to avoid any security implications. However there maybe times when you need stop a plugin from updating, for example when you have modified it. This small code snippet will stop any update notifications on a specific plugin. add_filter(‘site_transient_update_plugins’, ‘dd_remove_update_nag’); function dd_remove_update_nag($value) {…

Read more »

Overcome broken RSS feeds in WordPress

Posted by & filed under Code Snippets, PHP, WordPress.

PHP Code Snippet

If you are seeing the words “error on line 2 at column 6: XML declaration allowed only at the start of the document” when you try visiting your WordPress blog’s RSS feed, then you are not alone. It seems that there are issues with some installations where whitespace amongst core files is causing XML errors….

Read more »