Title: undefined variable $webp7_perms in image-optimizer.php
Last modified: August 22, 2016

---

# undefined variable $webp7_perms in image-optimizer.php

 *  Resolved [hennell](https://wordpress.org/support/users/hennell/)
 * (@hennell)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/undefined-variable-webp7_perms-in-image-optimizerphp/)
 * On updating to the latest version of ewwww I got an error message for an undefined
   variable in ewww-image-optimizer.php
 * The undefined is $webp7_perms which seems to be defined as $webp6_perms in lines
   296 then called as webp7 in 297-298.
 *     ```
       $webp6_perms = substr(sprintf('%o', fileperms($webp7_dst)), -4);
       $ewww_debug .= "cwebp7-custom (OSX 10.7) permissions: $webp7_perms<br>";
       if ($webp7_perms != '0755') {...
       ```
   
 * Error found during localhost test with MAMP on Mac 10.9.4
 * [https://wordpress.org/plugins/ewww-image-optimizer/](https://wordpress.org/plugins/ewww-image-optimizer/)

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

 *  Plugin Author [nosilver4u](https://wordpress.org/support/users/nosilver4u/)
 * (@nosilver4u)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/undefined-variable-webp7_perms-in-image-optimizerphp/#post-5226263)
 * That should be webp7_perms in the first line, so go ahead and modify the code,
   and I’ll include it in the next bugfix release.
 *  Plugin Author [nosilver4u](https://wordpress.org/support/users/nosilver4u/)
 * (@nosilver4u)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/undefined-variable-webp7_perms-in-image-optimizerphp/#post-5226403)
 * fixed in dev: [http://downloads.wordpress.org/plugin/ewww-image-optimizer.zip](http://downloads.wordpress.org/plugin/ewww-image-optimizer.zip)

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

The topic ‘undefined variable $webp7_perms in image-optimizer.php’ is closed to 
new replies.

 * ![](https://ps.w.org/ewww-image-optimizer/assets/icon-256x256.png?rev=1582276)
 * [EWWW Image Optimizer](https://wordpress.org/plugins/ewww-image-optimizer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ewww-image-optimizer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ewww-image-optimizer/)
 * [Active Topics](https://wordpress.org/support/plugin/ewww-image-optimizer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ewww-image-optimizer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ewww-image-optimizer/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [nosilver4u](https://wordpress.org/support/users/nosilver4u/)
 * Last activity: [11 years, 9 months ago](https://wordpress.org/support/topic/undefined-variable-webp7_perms-in-image-optimizerphp/#post-5226403)
 * Status: resolved