WordPress.org

Make WordPress Core

Opened 3 years ago

Closed 3 years ago

#17625 closed defect (bug) (invalid)

Wordpress can't update itself nor the plugins. Askapache-password-protect

Reported by: firedev Owned by:
Milestone: Priority: normal
Severity: major Version: 3.1.3
Component: General Keywords: has-patch
Focuses: Cc:

Description

When ask apache is installed Wordpress can't update itself.
In wp-admin / admin.php there are these lines:

!defined('FS_CHMOD_DIR') && define('FS_CHMOD_DIR', (S_IRWUGO & ~ umask()));
!defined('FS_CHMOD_FILE') && define('FS_CHMOD_FILE', (S_IRWXUGO & ~ umask()));

Which are ok but S_IRWUGO = 0666 and S_IRWXUGO = 0777 so for each files WordPress sets rwxrwxrwx and rw-rw-rw- for folders which is not correct and leads to problems sometimes.

To fix this change those lines to:

!defined('FS_CHMOD_DIR') && define('FS_CHMOD_DIR', (S_IRWXUGO & ~ umask()));
!defined('FS_CHMOD_FILE') && define('FS_CHMOD_FILE', (S_IRWUGO & ~ umask()));

I suggest to include this into the release.

Change History (1)

comment:1 dd323 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

Lovely, A plugin overriding things it shouldn't.

Trac is for reporting bugs in the WordPress core, this is a plugin issue and should be reported via the Support forums for that plugin, like I see you have already done. http://wordpress.org/support/topic/fix-wordpress-cant-update-itself-or-plugins

Note: See TracTickets for help on using tickets.