WordPress.org

Ready to get started?Download WordPress

Forums

Imsanity
[resolved] "File exists" error when using plugin (6 posts)

  1. eugleong
    Member
    Posted 2 years ago #

    I tried reinstalling but I keep getting this error:

    Warning: rename(example.com/ab1-1900x1900.jpg,example.com/ab1.jpg) [function.rename]: File exists in example.com\wp-content\plugins\imsanity\imsanity.php on line 67

    Warning: Cannot modify header information - headers already sent by (output started at example.com\wp-content\plugins\imsanity\imsanity.php:67) in example.com\wp-includes\pluggable.php on line 897

    http://wordpress.org/extend/plugins/imsanity/

  2. Jason
    Member
    Plugin Author

    Posted 2 years ago #

    what version of php you are running?

  3. eugleong
    Member
    Posted 2 years ago #

    I'm running 5.2.3.

  4. Jason
    Member
    Plugin Author

    Posted 2 years ago #

    strange, your version of php is not behaving the same as I would expect. try this if you feel comfortable. In the /wp-content/plugins/imsanity folder locate and edit the file 'imsanity.php'

    At line 67 it should look like this:

    rename($newPath, $oldPath);

    Add a new statement above that so it looks like this:

    unlink($oldPath);
    rename($newPath, $oldPath);

    If this works then I'll add it to the next update.

  5. eugleong
    Member
    Posted 2 years ago #

    It works perfect! Thanks so much Jason! Awesome plugin.

  6. Jason
    Member
    Plugin Author

    Posted 2 years ago #

    this fix was added in version 2.0.0

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags