Forums

[Plugin: Regenerate Thumbnails] Stopped working, error msg (11 posts)

  1. shaneholden
    Member
    Posted 9 months ago #

    Regenerate thumbnails was working perfectly for me, but without any reason that I can find, it just stopped. I've added no more plugins, functions, etc., just stopped one night and started the next. I've been doing it in batches through the dropdown menu in the Media section

    The error I keep getting now is:

    (ID 1493) failed to resize. The error message was: The originally uploaded image file cannot be found at...

    Any idea what's going on?

  2. shaneholden
    Member
    Posted 5 months ago #

    I'm still getting

    Debugging Information
    
    Total Images: 1
    Images Resized: 0
    Resize Failures: 1
    
    "dsc_1565" (ID 1359) failed to resize. The error message was: The originally uploaded image file cannot be found at /home/shane/public_html/wp-content/uploads/2008/12/dsc_1565.jpg

    for images from 02/2009 and older. Every one back to that point worked perfectly. Any idea what the issue may be?

  3. Alex Mills (Viper007Bond)
    Moderator
    Posted 5 months ago #

    Does /wp-content/uploads/2008/12/dsc_1565.jpg exist?

  4. shaneholden
    Member
    Posted 5 months ago #

    Yessir. I've tried it on many others past that and none work. Anything newer (uploaded after that point) work just fine.

  5. Alex Mills (Viper007Bond)
    Moderator
    Posted 5 months ago #

    Are you any good with PHP? If so, are you willing to help me debug?

    I'm curious what the output of var_dump( get_attached_file( 1359 ) ) is.

  6. shaneholden
    Member
    Posted 5 months ago #

    I wish I could say I was good with it. If it's something fairly simple that you could walk me through, I'd be more than willing to do it. Or, if it's something that's not so easy, I'd be up for giving you access to debug it. Just let me know

  7. Alex Mills (Viper007Bond)
    Moderator
    Posted 5 months ago #

    Try adding this to the top of your theme's functions.php file:

    add_action( 'admin_init', 'viper_debug' );
    function viper_debug() {
    var_dump( get_attached_file( 1359 ) );
    exit();
    }

    Then visit your admin area, copy/paste the little bit of output (if it's showing your admin area, then it's not working), and then remove the code to get your admin area back.

  8. shaneholden
    Member
    Posted 5 months ago #

    Here's the output

    string(63) "/home/shane/public_html/wp-content/uploads/2008/12/dsc_1565.jpg"

  9. Alex Mills (Viper007Bond)
    Moderator
    Posted 5 months ago #

    Okay, so that's working correctly. Looking back to the error message that's rather obvious though. Whoops. *facepalm*

    Did you change hosting at some point or anything? I'm thinking that perhaps the absolute path isn't correct.

    Try this:

    add_action( 'admin_init', 'viper_debug' );
    function viper_debug() {
    var_dump( __FILE__ );
    exit();
    }
  10. shaneholden
    Member
    Posted 5 months ago #

    I have changed hosting before, but as far as I can remember, it was before the month & year that get this error.

    This new code gives me:

    string(70) "/home/shanehol/public_html/wp-content/themes/shaneholden/functions.php"

    I appreciate your time!

  11. shaneholden
    Member
    Posted 3 months ago #

    Hi Alex, just wanted to check and see if you've had a chance or had any luck with this?

    Thanks so much!

Reply

You must log in to post.

About this Topic