• Resolved timholz

    (@timholz)


    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 6 years, 9 months ago by timholz.
    • This topic was modified 6 years, 9 months ago by timholz.
    • This topic was modified 6 years, 9 months ago by timholz.
Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Contributor viper007bond

    (@viper007bond)

    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

    (@timholz)

    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 6 years, 9 months ago by timholz.
    • This reply was modified 6 years, 9 months ago by timholz.
    Thread Starter timholz

    (@timholz)

    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

    (@timholz)

    update:

    update_post_meta($attach_id, '_wp_attached_file', $fileurldb);

    • This reply was modified 6 years, 9 months ago by timholz.
    Plugin Contributor viper007bond

    (@viper007bond)

    Glad you got it sorted out. ??

    Thread Starter timholz

    (@timholz)

    Thanks for your care. All the best and thanks for the plugin.

    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

    (@timholz)

    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.