[wp-trac] [WordPress Trac] #33227: "Delete Permantently" Only Deletes Original Size (UTF-8 file names)
WordPress Trac
noreply at wordpress.org
Wed May 11 01:55:28 UTC 2016
#33227: "Delete Permantently" Only Deletes Original Size (UTF-8 file names)
-------------------------------------------+-----------------------------
Reporter: pavelevap | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Future Release
Component: Media | Version: 4.1
Severity: normal | Resolution:
Keywords: needs-patch reporter-feedback | Focuses:
-------------------------------------------+-----------------------------
Comment (by thomaswm):
In order to track down the error, I've removed the `@` in line 4917 of
`wp-includes/post.php`:
{{{
@ unlink( path_join( $uploadpath['basedir'],
$intermediate_file ) );
}}}
When deleting the file `äöü.jpg`, I end up with the following lines in my
error.log:
{{{
[Wed May 11 03:48:17.775811 2016] [:error] [pid 31260] [client
127.0.0.1:51648] PHP Warning: unlink(/data/wordpress/www/wp-
content/blogs.dir/169/files/2016/05/\xc3\xa4\xc3\xb6\xc3\xbc\xc3\xa4\xc3\xb6\xc3
\xbc-150x150.jpg): No such file or directory in /data/wordpress/www/wp-
includes/post.php on line 4917
[Wed May 11 03:48:17.775872 2016] [:error] [pid 31260] [client
127.0.0.1:51648] PHP Warning: unlink(/data/wordpress/www/wp-
content/blogs.dir/169/files/2016/05/\xc3\xa4\xc3\xb6\xc3\xbc\xc3\xa4\xc3\xb6\xc3
\xbc-300x225.jpg): No such file or directory in /data/wordpress/www/wp-
includes/post.php on line 4917
[Wed May 11 03:48:17.775903 2016] [:error] [pid 31260] [client
127.0.0.1:51648] PHP Warning: unlink(/data/wordpress/www/wp-
content/blogs.dir/169/files/2016/05/\xc3\xa4\xc3\xb6\xc3\xbc\xc3\xa4\xc3\xb6\xc3
\xbc-768x576.jpg): No such file or directory in /data/wordpress/www/wp-
includes/post.php on line 4917
[Wed May 11 03:48:17.775930 2016] [:error] [pid 31260] [client
127.0.0.1:51648] PHP Warning: unlink(/data/wordpress/www/wp-
content/blogs.dir/169/files/2016/05/\xc3\xa4\xc3\xb6\xc3\xbc\xc3\xa4\xc3\xb6\xc3
\xbc-1024x768.jpg): No such file or directory in /data/wordpress/www/wp-
includes/post.php on line 4917
[Wed May 11 03:48:17.775977 2016] [:error] [pid 31260] [client
127.0.0.1:51648] PHP Warning: unlink(/data/wordpress/www/wp-
content/blogs.dir/169/files/2016/05/\xc3\xa4\xc3\xb6\xc3\xbc\xc3\xa4\xc3\xb6\xc3
\xbc-825x510.jpg): No such file or directory in /data/wordpress/www/wp-
includes/post.php on line 4917
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/33227#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list