logo

Wordpress automatic plugin upgrade ftp details fix

logo

Wordpress 2.5 has a great new feature called automatic plugin upgrade which basically upgrades your plugins automatically with a single click without needing to do it manually via ftp. For some reason i keep having to input my FTP details just before it’s about to upgrade. I’ve found a fix for this and i will tell you how to fix it below.

All you need to do is add the following code to your wp_config.php file:

define(‘FTP_HOST’, ‘ftp://example.com/’);
define(‘FTP_USER’, ‘example_user’);
define(‘FTP_PASS’, ‘example_pass’);
//Set to true if your host uses SSL connections
define(‘FTP_SSL’, false);

I got the above code from this site, but there is a mistake in the code the author put…

define(‘FTP_HOST’, ‘ftp://example.com/’)
define(‘FTP_USER’, ‘example_user’);
define(‘FTP_PASS’, ‘example_pass’);
//Set to true if your host uses SSL connections
define(‘FTP_SSL’, false);

Spot the difference? There is a missing colon at the end of line 1. I hope this helps some of you that are having trouble with having to enter your ftp details everytime you go to automatically upgrade your plugins.

5 Responses to “Wordpress automatic plugin upgrade ftp details fix”

  1. Ryan McCue says:

    Whoops, I must have missed that. I’ve fixed it now. :-)

  2. No problem, glad i could help :)

  3. Carlton Bale says:

    Two things. First of all, your code above is not valid because you have fancy quotes in it. Consider using the Sem Unfancy Quote plug-in to keep that from happening.

    Secondly, ; is a semicolon, not a colon. ;-)

    There is a bug with WordPress 2.5.0 and 2.5.1 where the setting to use FTP over SSL can not be deactivated once activated. So no matter what changes you make to the config page in the GUI, it will not work. The only way to override that setting is to set FTP_SSL to False in the wp-config.php file as you mention above.

  4. Adrian says:

    qSPNodqSToJiX

Leave a Reply

logo
logo
© daparky.com 2009