Opened 20 months ago
Closed 11 months ago
#18725 closed defect (bug) (invalid)
Wordpress Auto-Update - FTP: FAILURE
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Filesystem | Version: | 3.2 |
| Severity: | normal | Keywords: | reporter-feedback |
| Cc: |
Description
FS_CHMOD_FILE and FS_CHMOD_DIR empty! in: /wp-admin/includes/class-wp-filesystem-ftpext.php
function chmod($file, $mode = false, $recursive = false) {
if ( ! $mode ) {
if ( $this->is_file($file) )
$mode = FS_CHMOD_FILE;
elseif ( $this->is_dir($file) )
$mode = FS_CHMOD_DIR;
else
return false;
}
FIX:[taken from:'/wp-admin/includes/file.php']
// Set the permission constants if not already set.
if ( ! defined('FS_CHMOD_DIR') )
define('FS_CHMOD_DIR', 0755 );
if ( ! defined('FS_CHMOD_FILE') )
define('FS_CHMOD_FILE', 0644 );
Change History (2)
Note: See
TracTickets for help on using
tickets.

the FS_CHMOD_* defines are defined by the Filesystem loader, ie. they should always be defined unless a plugin or otherwise has already defined them to something else. (This is done by the WP_Filesystem() function)
Can you enable WP_DEBUG mode (without any alterations you've made) and see what errors are displayed? (or logged?)
To enable the Debug mode, you simply need to change (or add) the define('WP_DEBUG', true); line to your wp-config.php file file