WordPress.org

Support

Support » Plugins and Hacks » [Resolved] [Plugin: Media File Renamer] Stopped working after migrating to different server

[Resolved] [Plugin: Media File Renamer] Stopped working after migrating to different server

  • [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/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Jordy Meow
    Participant

    @tigroumeow

    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.

    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.

    Plugin Author Jordy Meow
    Participant

    @tigroumeow

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] [Plugin: Media File Renamer] Stopped working after migrating to different server’ is closed to new replies.