Make WordPress Core

Opened 16 years ago

Closed 16 years ago

#10037 closed defect (bug) (worksforme)

FTP Credentials not stored

Reported by: tuxman's profile Tuxman Owned by: dd32's profile dd32
Milestone: Priority: normal
Severity: normal Version: 2.7.1
Component: Upgrade/Install Keywords:
Focuses: Cc:

Description

In earlier versions of WordPress the FTP Credentials were stored automatically. Since I upgraded my blogs to 2.7 (and 2.7.1), I'll have to re-enter them every time I try to install or update a plug-in. Obviously there's something going wrong.

Change History (8)

#1 @Denis-de-Bernardy
16 years ago

  • Milestone set to 2.9

that's a better behavior from a security standpoint, but if it's a different behavior from previous versions, it's not good.

#2 @Denis-de-Bernardy
16 years ago

[22:47] <sivel> i didn't think they were stored anywhere, unless manually entered in wp-config.php
[22:47] <ddebernardy> right
[22:47] <ddebernardy> thought so too

#3 @Tuxman
16 years ago

They were (are?) stored in the DB at least.

AFAIK they were also applied automatically, but I don't know why (I only had 1 blog that time, maybe it was a plug-in?) ... however it should be possible to reuse them. Let's say with a checkbox "enable automatic updating" or sth...

#4 @filosofo
16 years ago

The ftp info is stored in option "ftp_credentials' but not saved in the case of an error.

#5 @filosofo
16 years ago

But apparently not the password, port, private_key, or public_key.

#6 @dd32
16 years ago

  • Milestone changed from 2.9 to 2.8
  • Status changed from new to accepted

Thats correct, The hostname(which includes any custom port), username, and selected method (FTP/FTPS/SSH) are stored in the ftp_credentials DB option.

The public/Private keys are not stored, nor is the password. I'm honestly not sure why the public/private keys were not stored.. but there's the defines for those anyway.

I'll investigate later.

#7 @Tuxman
16 years ago

Thanks dd32... hope to see this solved in a later version. :)

#8 @dd32
16 years ago

  • Milestone 2.8 deleted
  • Resolution set to worksforme
  • Status changed from accepted to closed

Its working as expected under current 2.8 (trunk) which will be released in under a week. therefor, closing as worksforme.

If you're still having trouble, you can attempt deleting the credentials and see if that helps, just add:

<?php delete_option('ftp_credentials'); ?>

Into a theme file temporarily and see if that helps (Note: You'll have to remove that line after visiting the page its on)

Note: See TracTickets for help on using tickets.