The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

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

  1. Sjourney
    Posted 4 years ago #

    [Thu Feb 02 21:22:02 2012] [error] [client] 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 );
     66         // Rename the main media file.
     67         rename( $old_filepath, $new_filepath );


  2. Jordy Meow
    Plugin Author

    Posted 4 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
    Posted 4 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
    Plugin Author

    Posted 4 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

  • Media File Renamer
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic