WordPress.org

Make WordPress Core

Opened 6 months ago

Closed 6 months ago

#46741 closed defect (bug) (duplicate)

PHP Warning opendir(): failed to open dir: No such file or directory

Reported by: mikebronner Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Privacy Keywords:
Focuses: Cc:

Description

This should probably create the folder if it doesn't exist, or at least check if it exists before trying to open it.

PHP Warning opendir(/home/codepier/imaginethatcomics.com/20190330181718/public/app/uploads/wp-personal-data-exports/): failed to open dir: No such file or directory

[internal] opendir
/home/codepier/imaginethatcomics.com/20190330181718/public/wordpress/wp-admin/includes/file.php:143 list_files
/home/codepier/imaginethatcomics.com/20190330181718/public/wordpress/wp-includes/functions.php:6731 wp_privacy_delete_old_export_files
/home/codepier/imaginethatcomics.com/20190330181718/public/wordpress/wp-includes/class-wp-hook.php:286 WP_Hook::apply_filters
/home/codepier/imaginethatcomics.com/20190330181718/public/wordpress/wp-includes/class-wp-hook.php:310 WP_Hook::do_action
/home/codepier/imaginethatcomics.com/20190330181718/public/wordpress/wp-includes/plugin.php:531 do_action_ref_array
/home/codepier/imaginethatcomics.com/20190330181718/public/wordpress/wp-cron.php:133 [main]

Change History (1)

#1 @SergeyBiryukov
6 months ago

  • Component changed from General to Privacy
  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

Hi @mikebronner, welcome to WordPress Trac! Thanks for the report.

This was recently fixed in #45136.

Note: See TracTickets for help on using tickets.