Title: Copy error
Last modified: October 22, 2016

---

# Copy error

 *  [w3is](https://wordpress.org/support/users/w3is/)
 * (@w3is)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/copy-error/)
 * The plugin works fine, except for an error with the copy() function. It returns
   this message:
 * Warning: copy(/home/user/website.com/wp-content/uploads/2016/09/filmes-vencedores-
   do-Trófeu-CLDF.jpg): failed to open stream: No such file or directory in /home/
   user/website.com/wp-content/plugins/rename-media-files/rename-media-files.php
   on line 160
 * The line in question is the one with the copy() function, and what’s funny is
   that the $orig_file variable isn’t empty, but somehow the file is not found (
   and believe me, it is there!).
 * BTW, I’m using your plugin because I reinstalled WP, but it is on the same server(
   Dreamhost), only under a different domain, but all the images with accented file
   names didn’t show properly, either in Media panel and the page.

Viewing 1 replies (of 1 total)

 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [9 years, 7 months ago](https://wordpress.org/support/topic/copy-error/#post-8359429)
 * > but all the images with accented file names didn’t show properly
 * Oh I bet that’s because of the sanitize bug in WordPress.
 * [https://core.trac.wordpress.org/ticket/22363](https://core.trac.wordpress.org/ticket/22363)

Viewing 1 replies (of 1 total)

The topic ‘Copy error’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/rename-media-files.svg)
 * [Rename Media Files](https://wordpress.org/plugins/rename-media-files/)
 * [Support Threads](https://wordpress.org/support/plugin/rename-media-files/)
 * [Active Topics](https://wordpress.org/support/plugin/rename-media-files/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/rename-media-files/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/rename-media-files/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * Last activity: [9 years, 7 months ago](https://wordpress.org/support/topic/copy-error/#post-8359429)
 * Status: not resolved