Title: Bug in imsanity/libs/utils.php
Last modified: August 22, 2016

---

# Bug in imsanity/libs/utils.php

 *  Resolved [Jiri Hon](https://wordpress.org/support/users/jirihon/)
 * (@jirihon)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/bug-in-imsanitylibsutilsphp/)
 * Hi Jason,
    I think there is a bug in the recent version of Imsanity plugin. In
   file `libs/utils.php` on line 59 it appears to be wrong usage of function `function_exists`.
   Following the documentation the function parameter should be function name as
   a string, but in this case constant is given. This leads to generating PHP notice
   and image upload failure notice. I think this is just typo, but it would be nice
   to have fixed as soon as possible.
 * Thank you a lot for your amazing work on this plugin! I find it really useful.
   
   Jiri Hon
 * [https://wordpress.org/plugins/imsanity/](https://wordpress.org/plugins/imsanity/)

Viewing 1 replies (of 1 total)

 *  [Jason](https://wordpress.org/support/users/verysimple/)
 * (@verysimple)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/bug-in-imsanitylibsutilsphp/#post-5205561)
 * Ah crap, that was an error on my part. i just released a hotfix so if you upgrade
   to the latest it should be resolved. Thanks a bunch for reporting this!

Viewing 1 replies (of 1 total)

The topic ‘Bug in imsanity/libs/utils.php’ is closed to new replies.

 * ![](https://ps.w.org/imsanity/assets/icon.svg?rev=2420360)
 * [Imsanity](https://wordpress.org/plugins/imsanity/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/imsanity/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/imsanity/)
 * [Active Topics](https://wordpress.org/support/plugin/imsanity/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/imsanity/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/imsanity/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Jason](https://wordpress.org/support/users/verysimple/)
 * Last activity: [11 years, 9 months ago](https://wordpress.org/support/topic/bug-in-imsanitylibsutilsphp/#post-5205561)
 * Status: resolved