WordPress.org

Ready to get started?Download WordPress

Forums

Force Regenerate Thumbnails
[resolved] incorrect path even though file exists (12 posts)

  1. mpfefferle
    Member
    Posted 1 year ago #

    Getting the same error as when I use the regenerate thumbnails plugin:

    "The originally uploaded image file cannot be found at" ...

    Even though I know the files exist in that location.

    Stumped.

    http://wordpress.org/extend/plugins/force-regenerate-thumbnails/

  2. Pedro Elsner
    Member
    Plugin Author

    Posted 1 year ago #

    Do you has this message error in all images?

  3. mpfefferle
    Member
    Posted 1 year ago #

    Yes, the error is produced for all images

  4. Pedro Elsner
    Member
    Plugin Author

    Posted 1 year ago #

    WP running on windows or linux?

  5. mpfefferle
    Member
    Posted 1 year ago #

    Linux server

  6. mpfefferle
    Member
    Posted 1 year ago #

    I tried opening up the permissions for the folders/files, uninstalling/reinstalling plugins, not sure what else to do.

  7. Pedro Elsner
    Member
    Plugin Author

    Posted 1 year ago #

    Right...

    This message error is produced by PHP function file_exists().
    Check your configuration server it is a start...

    Else, you can try to use this plugin (by Viper007Bond):
    http://wordpress.org/extend/plugins/regenerate-thumbnails/

  8. mpfefferle
    Member
    Posted 1 year ago #

    I get the same error when I use his plugin.

  9. Pedro Elsner
    Member
    Plugin Author

    Posted 1 year ago #

    So, I don't have any idea to help you fix your problem =/

  10. companyjuice
    Member
    Posted 1 year ago #

    Hope this helps others that are experiencing this same issue...

    I had to strip the $fullsizepath in order for the plugin to find the existing file. This works with this Force Regenerate Thumbnails plugin as well as the Regenerate Thumbnails plugin.

    To fix, in the function ajax_process_image(), directly after this line:
    $fullsizepath = get_attached_file($image->ID);
    add this code:

    if (stripos($fullsizepath, 'C:\webroot\mydomain\wordpress\wp-content\uploads/') !== FALSE) {
    	$fullsizepath = str_ireplace('C:\webroot\mydomain\wordpress\wp-content\uploads/','',$fullsizepath);
    }

    Make sure that the string you are looking for matches the one in the failure message, of course.

  11. frengo70
    Member
    Posted 11 months ago #

    Hello
    I have the same problem
    Hi Pedro

    I have a problem

    form many image the plugin failed with this message

    "Penisolaverde" (ID 1058) failed to resize. The error message was: The originally uploaded image file cannot be found at /2013/04/Penisolaverde.jpg

    and the image exist: http://www.wikiplastic.com/wp-content/uploads//2013/04/Penisolaverde.jpg

    I have tryed adding this code

    if (stripos($fullsizepath, 'C:\webroot\wikiplastic\wp-content\uploads/') !== FALSE) {
    $fullsizepath = str_ireplace('C:\webroot\wikiplastic\wp-content\uploads/','',$fullsizepath);
    }

    but perhaps I do wrong with 'C:\webroot\wikiplastic\ ???

    thank's
    francesco

  12. Pedro Elsner
    Member
    Plugin Author

    Posted 4 months ago #

    @frengo70
    Try the new 1.7 version

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.