Make WordPress Core

Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#35345 closed defect (bug) (duplicate)

Multisite unable to update plugins

Reported by: tigerton Owned by:
Priority: normal Milestone:
Component: Upgrade/Install Version: 4.4.1
Severity: normal Keywords:
Cc: Focuses: multisite

Description

When i try to update plugins in multisite (as network admin in network settings) on a -Windows server- i get stuck when plugins try to generate or create the maintenance file.

I have found a possible fix from this previous thread,
https://wordpress.org/support/topic/unable-to-update-plugins-after-upgrade-to-42/page/3

Our fix is this,

Row 155:
wp-admin/includes/file.php
Change to:

if ( empty( $filename ) || '.' == $filename || DIRECTORY_SEPARATOR == $filename ) {

Courtesy of DionDesign found in the previous thread.

Kind regards
Tony

Change History (5)

#1 @swissspidy
11 years ago

  • Component GeneralUpgrade/Install
  • Focuses administration removed

#2 @dd32
11 years ago

This is a duplicate of #33999 and something that i've never been able to reproduce.

@tigerton Would it be possible for you to provide the input to the function, and the value of $filename on each iteration of it?

Switching to DIRECTORY_SEPARATOR straight out is likely to break in some scenario's, but if there's some examples which show the actual variable trace then adding \\ to the checks (there and everywhere else) is possible.

#3 @tigerton
11 years ago

  • Resolutioninvalid
  • Status newclosed

Hi,

Thanks for getting back. Yes i see the duplicate ticket but it was closed without a solution (understandable as of my conclusion below).

I have been unsuccessful with debug.log but i found that this might be due to a timeout/lack of memory situation and not actually filename/structure issue.

Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 65488 bytes) in C:\inetpub\wwwroot\wp-admin\includes\file.php on line 170

I had less than 800MB left on HDD and Ram was 4GB but maxed out. 10 extra GB HDD and 1GB more RAM did the trick.

*
Update: Issue still remain after massive increase of GB.
*

Last edited 11 years ago by tigerton (previous) (diff)

#4 @swissspidy
11 years ago

  • Resolution invalidduplicate

Duplicate of #33999.

#5 @SergeyBiryukov
11 years ago

  • Milestone Awaiting Review
Note: See TracTickets for help on using tickets.