Title: error plugin does not find image in uploads folder
Last modified: February 8, 2018

---

# error plugin does not find image in uploads folder

 *  Resolved [timholz](https://wordpress.org/support/users/timholz/)
 * (@timholz)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/error-plugin-does-not-find-image-in-uploads-folder/)
 * Hi
    I am testing image sizes and tried regenerate thumbnails. The following message
   returns when i try to regenerate thumbnails for one image:
 * `ERROR: The file with the full-size image could not be found in your Upload-Directory../
   wp-content/uploads/2018/02/gtb_9783898091114.jpg. Without this file thumbnails
   cannot be created.`
 * In the plugin (class-regeneratethumbnails-regenerator.php) i printed `$this->
   fullsizepath.` and it returns the following path:
 * `/Applications/MAMP/htdocs/wordpress/wp-content/uploads/../wp-content/uploads/
   2017/12/gtb_9783492200134.jpg`
 * The path is not correct.
 * I checked the directory and found the image.
    What am i doing wrong here? regards
   theo
 * p.s.: Just to compare, i made a quick test with the plugin «force regenerate 
   thumbnails», and this worked out well.
    -  This topic was modified 8 years, 4 months ago by [timholz](https://wordpress.org/support/users/timholz/).
    -  This topic was modified 8 years, 4 months ago by [timholz](https://wordpress.org/support/users/timholz/).
    -  This topic was modified 8 years, 4 months ago by [timholz](https://wordpress.org/support/users/timholz/).

Viewing 8 replies - 1 through 8 (of 8 total)

 *  Plugin Contributor [viper007bond](https://wordpress.org/support/users/viper007bond/)
 * (@viper007bond)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/error-plugin-does-not-find-image-in-uploads-folder/#post-9955157)
 * That’s… weird. There shouldn’t be double periods in the path.
 * Have you done anything special, such as defining any path constants in your `
   wp-config.php` file?
 * What’s the value in the database? You’ll find it in the `post_meta` table with
   the `meta_value` of `_wp_attached_file`.
 *  Thread Starter [timholz](https://wordpress.org/support/users/timholz/)
 * (@timholz)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/error-plugin-does-not-find-image-in-uploads-folder/#post-9956127)
 * Hi – thanks for responding.
    W3 total Cache adds this to wp-config.php:
 * `define( 'WPCACHEHOME', '/home/name/public_html/www.name.ch/name/wp-content/plugins/
   wp-super-cache/' ); //Added by WP-Cache Manager`
 * and at the bottomm of the same file i see:
 *     ```
       //Disable File Edits
       define('DISALLOW_FILE_EDIT', true);
       ```
   
 * But i don’t think that this has an effect???
 * I checked db according to your instructions:
 * `xxx_postmeta` > `meta_value` no such thing as `_wp_attached_file`
 * In my db the images live in `xxx_posts` with a `post_type` of `attachement`.
 * I checked with another db and found in `xxx_postmeta` under `meta_key` the value`
   _wp_attached_file` and the corresponding url.
 * So, i guess something is wrong with my first database. However the site works.
   
   Thanks for your care.
 * regards
    -  This reply was modified 8 years, 4 months ago by [timholz](https://wordpress.org/support/users/timholz/).
    -  This reply was modified 8 years, 4 months ago by [timholz](https://wordpress.org/support/users/timholz/).
 *  Thread Starter [timholz](https://wordpress.org/support/users/timholz/)
 * (@timholz)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/error-plugin-does-not-find-image-in-uploads-folder/#post-9958536)
 * Hi – problem resolved. Since i get all images programmatically i forgot to add:
 * `update_post_meta($attach_id, '_wp_attachment_file', $fileurldb);`
 * Your plugin works fine. Sorry for the disturbance.
    regards
 *  Thread Starter [timholz](https://wordpress.org/support/users/timholz/)
 * (@timholz)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/error-plugin-does-not-find-image-in-uploads-folder/#post-9958834)
 * update:
 * `update_post_meta($attach_id, '_wp_attached_file', $fileurldb);`
    -  This reply was modified 8 years, 4 months ago by [timholz](https://wordpress.org/support/users/timholz/).
 *  Plugin Contributor [viper007bond](https://wordpress.org/support/users/viper007bond/)
 * (@viper007bond)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/error-plugin-does-not-find-image-in-uploads-folder/#post-9961147)
 * Glad you got it sorted out. 🙂
 *  Thread Starter [timholz](https://wordpress.org/support/users/timholz/)
 * (@timholz)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/error-plugin-does-not-find-image-in-uploads-folder/#post-9961150)
 * Thanks for your care. All the best and thanks for the plugin.
 *  [vladcizsol](https://wordpress.org/support/users/vladcizsol/)
 * (@vladcizsol)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/error-plugin-does-not-find-image-in-uploads-folder/#post-10134872)
 * I have the same problem. Could you please guide me where to insert update_post_meta(
   $attach_id, ‘_wp_attached_file’, $fileurldb); ?
 *  Thread Starter [timholz](https://wordpress.org/support/users/timholz/)
 * (@timholz)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/error-plugin-does-not-find-image-in-uploads-folder/#post-10136368)
 * Hard to say. In my case i had to put it in a plugin, that i wrote. How do you
   get the images?

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘error plugin does not find image in uploads folder’ is closed to new 
replies.

 * ![](https://ps.w.org/regenerate-thumbnails/assets/icon-128x128.png?rev=1753390)
 * [Regenerate Thumbnails](https://wordpress.org/plugins/regenerate-thumbnails/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/regenerate-thumbnails/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/regenerate-thumbnails/)
 * [Active Topics](https://wordpress.org/support/plugin/regenerate-thumbnails/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/regenerate-thumbnails/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/regenerate-thumbnails/reviews/)

 * 8 replies
 * 3 participants
 * Last reply from: [timholz](https://wordpress.org/support/users/timholz/)
 * Last activity: [8 years, 2 months ago](https://wordpress.org/support/topic/error-plugin-does-not-find-image-in-uploads-folder/#post-10136368)
 * Status: resolved