WordPress.org

Make WordPress Core

Opened 7 weeks ago

Closed 4 weeks ago

#52292 closed defect (bug) (duplicate)

Cannot delete or add images to library after upgrade to WP 5.6 with Multi site

Reported by: seniceguy Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Media Keywords:
Focuses: multisite Cc:

Description

We are having issues uploading image files and deleting image files. When we permanently delete a image the image is not deleted from the directories and shows in the library after logging out and then logging back in . We can not upload files the files get to 100 percent then hang we get the below error

Post-processing of the image failed likely because the server is busy or does not have enough resources. Uploading a smaller image may help. Suggested maximum size is 2500 pixels.

In PHP we get the below error

PHP Fatal error: Maximum execution time of 600 seconds exceeded in C:\webhost\wordpress\wp-includes\functions.php on line 7736

We have disabled all plugins and updated all themes

Our config is

windows 2016 Server
PHO 7.413
MySQL 8.0
WordPress 5.6 multi site
WordPress and temp directories have IUSR, IIS_IUSERS and network server added with full control

We rolled back our Multi site network to 5.5.3 this morning and everything is working , I believe the issues with uploading and deleting in 5.6 are related to the function $directory_cache that was added in 5.6

contact hardsog@… if needed

Change History (3)

#1 @seniceguy
6 weeks ago

  • Component changed from Upload to Filesystem API

below is the section of the functions.php file where a upload or deletion gets stuck/hangs/loops indefinably.

while ( DIRECTORY_SEPARATOR !== $path && '.' !== $path && '..' !== $path ) {

$path = dirname( $path );
unset( $directory_cache[ $path ] );

}

set_transient( 'dirsize_cache', $directory_cache );

}

#2 @seniceguy
4 weeks ago

  • Component changed from Filesystem API to Media
  • Focuses multisite added
  • Severity changed from blocker to critical

#3 @ocean90
4 weeks ago

  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Severity changed from critical to normal
  • Status changed from new to closed

Hello @seniceguy, welcome to WordPress Trac!

Thanks for the report. We're already tracking this issue in #52241.

Note: See TracTickets for help on using tickets.