Title: Critical plugin error
Last modified: June 28, 2019

---

# Critical plugin error

 *  Resolved [Deivydas](https://wordpress.org/support/users/eshoprent/)
 * (@eshoprent)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/critical-plugin-error/)
 * Hello,
    I’m working with your plugin and I have saw, that you have a method, 
   which use undefined variable.
 * Check you file: plugins/webp-express/lib/classes/HandleUploadHooks.php line 82.
 * Method:
 *     ```
       public static function handleMakeIntermediateSize($filename)
           {
               if (!is_null($filename)) {
                   try {
                       $filenameToConvert = SanityCheck::absPathExistsAndIsFileInDocRoot($filearray['file']);
                           self::convertIf($filenameToConvert);
                   } catch (SanityException $e) {
                       // fail silently. (maybe we should write to debug log instead?)
                   }
               }
               return $filename;
           }
       ```
   
 * Where variable $filearray[‘file’] defined??
 * Please, make a fix 🙂

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [rosell.dk](https://wordpress.org/support/users/roselldk/)
 * (@roselldk)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/critical-plugin-error/#post-11682499)
 * Whoopsie!
    Thanks, shall fix!
 *  Thread Starter [Deivydas](https://wordpress.org/support/users/eshoprent/)
 * (@eshoprent)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/critical-plugin-error/#post-11682506)
 * I have made fix for inner usage, but you should update the plugin.
 * Thanks for great plugin 🙂
 *  Plugin Author [rosell.dk](https://wordpress.org/support/users/roselldk/)
 * (@roselldk)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/critical-plugin-error/#post-11682509)
 * Fixed in [https://github.com/rosell-dk/webp-express/issues/295](https://github.com/rosell-dk/webp-express/issues/295)
 * But not released yet. Will probably release again tonight, or at least tomorrow
 *  Plugin Author [rosell.dk](https://wordpress.org/support/users/roselldk/)
 * (@roselldk)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/critical-plugin-error/#post-11683302)
 * Released (0.14.18)

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Critical plugin error’ is closed to new replies.

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

 * 4 replies
 * 2 participants
 * Last reply from: [rosell.dk](https://wordpress.org/support/users/roselldk/)
 * Last activity: [6 years, 11 months ago](https://wordpress.org/support/topic/critical-plugin-error/#post-11683302)
 * Status: resolved