WordPress.org

Support

Support » Plugins and Hacks » Imsanity » [Resolved] [Plugin: Imsanity] "File exists" error when using plugin

[Resolved] [Plugin: Imsanity] "File exists" error when using plugin

  • I tried reinstalling but I keep getting this error:

    Warning: rename(example.com/ab1-1900×1900.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/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Jason

    @verysimple

    what version of php you are running?

    I’m running 5.2.3.

    Plugin Author Jason

    @verysimple

    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.

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

    Plugin Author Jason

    @verysimple

    this fix was added in version 2.0.0

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Resolved] [Plugin: Imsanity] "File exists" error when using plugin’ is closed to new replies.
Skip to toolbar