[wp-trac] [WordPress Trac] #45136: wp-personal-data-export cron error if folder not exists - create folder
WordPress Trac
noreply at wordpress.org
Sat Oct 20 07:38:08 UTC 2018
#45136: wp-personal-data-export cron error if folder not exists - create folder
--------------------------+-----------------------------
Reporter: DuckDagobert | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 4.9.8
Severity: major | Keywords:
Focuses: |
--------------------------+-----------------------------
Fix the wp-personal-data-exports function that is hooked to cron that it
will create the folder if it doesn't exist.
PHP Error: opendir(/mypath/wp-content/uploads/wp-personal-data-exports/):
failed to open dir: No such file or directory
File: /mypath/wp-admin/includes/file.php on line 143
Error URL: https://myurl.com/wp-cron.php
Trace:
#1 /mypath/wp-admin/includes/file.php(143): opendir()
#2 /mypath/wp-includes/functions.php(6056): list_files(, 100, Array)
#3 /mypath/wp-includes/class-wp-hook.php(286):
wp_privacy_delete_old_export_files()
#4 /mypath/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(,
Array)
#5 /mypath/wp-includes/plugin.php(515): WP_Hook->do_action(Array)
#6 /mypath/wp-cron.php(126): do_action_ref_array(wp_privacy_dele...,
Array)
PHP Error: closedir() expects parameter 1 to be resource, boolean given
File: /mypath/wp-admin/includes/file.php on line 168
Error URL: https://myurl.com/wp-cron.php
Trace:
#1 /mypath/wp-admin/includes/file.php(168): closedir(false)
#2 /mypath/wp-includes/functions.php(6056): list_files(, 100, Array)
#3 /mypath/wp-includes/class-wp-hook.php(286):
wp_privacy_delete_old_export_files()
#4 /mypath/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(,
Array)
#5 /mypath/wp-includes/plugin.php(515): WP_Hook->do_action(Array)
#6 /mypath/wp-cron.php(126): do_action_ref_array(wp_privacy_dele...,
Array)
--
Ticket URL: <https://core.trac.wordpress.org/ticket/45136>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list