WordPress.org

Ready to get started?Download WordPress

Forums

Media File Renamer
[resolved] Stopped working after migrating to different server (4 posts)

  1. Sjourney
    Member
    Posted 2 years ago #

    [Thu Feb 02 21:22:02 2012] [error] [client 76.253.76.173] PHP Warning: rename(2011/08/photo10-e1314298716184.jpg,2011/08/jo-reen-making-her-delicious-creamed-corn.jpg): No such file or directory in /srv/www/foobar.com/public_html/wordpress0/wp-content/plugins/media-file-renamer/media-file-renamer.php on line 67, referer: http://foobar.com/wordpress0/wp-admin/media-upload.php?post_id=1939&tab=gallery

    61         // Exact same code as rename-media, it's a good idea to keep track of the original filename.
     62         $original_filename = get_post_meta( $post['ID'], '_original_filename', true );
     63         if ( empty( $original_filename ) )
     64                 add_post_meta( $post['ID'], '_original_filename', $old_filename );
     65
     66         // Rename the main media file.
     67         rename( $old_filepath, $new_filepath );

    http://wordpress.org/extend/plugins/media-file-renamer/

  2. Jordy Meow
    Member
    Plugin Author

    Posted 2 years ago #

    It's going to be hard to find the issue based on that. Do you have other issues since you migrated to this new server? Is Media File Renamer still crashing? Which host are you using? Are the images all really there (2011/08/photo10-e1314298716184.jpg for instance)? Thanks for your help.

  3. Sjourney
    Member
    Posted 2 years ago #

    I'm on a Linode box, so I'm administrating the server myself. I think it has to do with php write access to the server.
    Perhaps it's a permissions issue. Looking in to it.
    Thanks for your response so far.

  4. Jordy Meow
    Member
    Plugin Author

    Posted 2 years ago #

    Is this resolved? Please start another thread if you have any issues. Thanks a lot!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic