[wp-trac] [WordPress Trac] #45136: wp-personal-data-export cron error if folder not exists - create folder
WordPress Trac
noreply at wordpress.org
Fri Dec 21 00:31:33 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: Privacy | Version:
Severity: normal | Resolution:
Keywords: reporter-feedback needs-patch | Focuses:
-------------------------------------------+------------------------------
Changes (by arena):
* keywords: reporter-feedback => reporter-feedback needs-patch
* version: 4.9.6 =>
Comment:
I confirm that this is a bug.
Apparently, the directory 'wp-personal-data-exports' is only created when
the first personal data file is generated.\\
On the other side, the wp-cron job scans every hour the directory 'wp-
personal-data-exports' and do not test if the folder exists. ( hook name :
wp_privacy_delete_old_export_files )
**My config :**
- Version de WordPress : 5.1-alpha-44356
- Version de PHP/MySQL : 7.2.3 / 5.7.17
**wp-cron called by :**
/wordpress/wp-cron.php?doing_wp_cron=1545348420.1551721096038818359375
**WARNINGS :**
PHP [E_WARNING] 2 : opendir( X:\..\wordpress/wp-content/uploads/wp-
personal-data-exports/,wordpress/wp-content/uploads/wp-personal-data-
exports/): The system cannot find the file specified. (code: 2) in
wordpress\wp-admin\includes\file.php at line 143
PHP [E_WARNING] 2 : opendir( X:\..\wordpress/wp-content/uploads/wp-
personal-data-exports/): failed to open dir: No such file or directory in
wordpress\wp-admin\includes\file.php at line 143
PHP [E_WARNING] 2 : closedir() expects parameter 1 to be resource, boolean
given in wordpress\wp-admin\includes\file.php at line 168
--
Ticket URL: <https://core.trac.wordpress.org/ticket/45136#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list