Opened 13 years ago
Closed 12 years ago
#18725 closed defect (bug) (invalid)
Wordpress Auto-Update - FTP: FAILURE
Reported by: | href | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 3.2 |
Component: | Filesystem API | Keywords: | reporter-feedback |
Focuses: | 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