Archive

Archive for the ‘WordPress’ Category

WordPress: “Unable to locate WordPress Plugin directory”

March 28th, 2010 Behzad No comments

Automatic plug-in updates are cool, but only when they work. I made attempts to understand what’s wrong with the “update automatically” feature several times, and always hit the same message after entering my FTP details: “Unable to locate WordPress Plugin directory”.

As a computer geek, I know why it needs FTP, but it wasn’t really clear what exactly it was looking for in the root of the FTP directory and why it didn’t find it. I figured that my server setup is a bit different from what they expected, and scanned the sources for clues.

Apparently, they are looking for the wp-settings.php file which is sitting in the root of the WP installation. So when they find the file, they know where to start looking for plug-ins folder. In my case, it was light years away from the FTP root, so here’s what I did:

  • Created an FTP user specifically for the blog
  • Made the root folder of the blog be the home directory of this user
  • Enter the user name and the password to WP when it asked for the FTP again

All went very nicely and hassle-free. Now you know what to do when you see “Unable to locate WordPress Plugin directory” when attempting to update your plug-ins automatically.

WordPress 2.3.3 Urgent Security Release

February 5th, 2008 Behzad No comments

WordPress 2.3.3 is an urgent security release. A flaw was found in our XML-RPC implementation such that a specially crafted request would allow any valid user to edit posts of any other user on that blog. In addition to fixing this security flaw, 2.3.3 fixes a few minor bugs. If you are interested only in the security fix, download the fixed version of xmlrpc.php and copy it over your existing xmlrpc.php. Otherwise, you can get the entire release here.

Also, there is a vulnerability in the WP-Forum plugin that is being actively exploited right now. If you are using this plugin, please remove it until an update is available.

Since we are talking security, remember to use strong passwords and change them regularly.  While you’re updating WP and your plugins, consider refreshing your passwords.

Embed YouTube video in wordpress blog post

November 18th, 2007 Behzad No comments

Heh! At time of writing this post, I am not familiar with wordpress features and hacks!

In the first post I just wanted to embed an YouTube video in the post body, but simply it did not worked. Thanks to Gods of Google Search and people sharing their experience. Finally I got it to work. The solution is simple just add YouTube embed code between <p> tags as below:

<p style=”text-align: center”>YOUTUBE-CODE-HERE</p>

Enjoy ;)