WordPress.org

Make WordPress Core

Opened 22 months ago

Closed 22 months ago

Last modified 13 months ago

#44170 closed defect (bug) (duplicate)

wp-cron.php missing file or directory /wp-personal-data-exports/

Reported by: dingo_d Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.9.6
Component: Cron API Keywords: dev-feedback
Focuses: Cc:

Description

I updated the site where I have bugsnag, which will report any warnings and errors, and I got these errors

PHP Warning POST /wp-cron.php
opendir(wp-content/uploads/wp-personal-data-exports/): failed to open dir: No such file or directory

The stack trace is

/wp-admin/includes/file.php:143 list_files  
/wp-includes/functions.php:6015 wp_privacy_delete_old_export_files  
/wp-includes/class-wp-hook.php:286 WP_Hook::apply_filters 
/wp-includes/class-wp-hook.php:310 WP_Hook::do_action 
/wp-includes/plugin.php:515 do_action_ref_array 
/wp-cron.php:126[main]

I also got this warning

PHP Warning POST /wp-cron.php
closedir() expects parameter 1 to be resource, boolean given

With the following stack

/wp-admin/includes/file.php:168 list_files  
/wp-includes/functions.php:6015 wp_privacy_delete_old_export_files  
/wp-includes/class-wp-hook.php:286 WP_Hook::apply_filters 
/wp-includes/class-wp-hook.php:310 WP_Hook::do_action 
/wp-includes/plugin.php:515 do_action_ref_array 
/wp-cron.php:126[main]

It's related to the new privacy folder.

I'm not sure if that folder is created on clean install, but it's not created on update. Maybe that is the issue.

Change History (3)

#1 @iandunn
22 months ago

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

This sound like it'd be fixed by #44158. I'm guessing the folder couldn't be created on your server because of permissions issues.

#2 @dingo_bastard
22 months ago

Could be, the server is tightly set up. Thanks for clarification :+1:

#3 @dd32
13 months ago

  • Reporter changed from dingo_bastard to dingo_d
Note: See TracTickets for help on using tickets.