{"id":5226157,"date":"2014-08-26T09:37:08","date_gmt":"2014-08-26T09:37:08","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/undefined-variable-webp7_perms-in-image-optimizerphp\/"},"modified":"2016-08-22T00:50:50","modified_gmt":"2016-08-22T00:50:50","slug":"undefined-variable-webp7_perms-in-image-optimizerphp","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/undefined-variable-webp7_perms-in-image-optimizerphp\/","title":{"rendered":"undefined variable $webp7_perms in image-optimizer.php"},"content":{"rendered":"<p>On updating to the latest version of ewwww I got an error message for an undefined variable in ewww-image-optimizer.php<\/p>\n<p>The undefined is $webp7_perms which seems to be defined as $webp6_perms in lines 296 then called as webp7 in 297-298.<\/p>\n<pre><code>$webp6_perms = substr(sprintf(&#039;%o&#039;, fileperms($webp7_dst)), -4);\n$ewww_debug .= &quot;cwebp7-custom (OSX 10.7) permissions: $webp7_perms&lt;br&gt;&quot;;\nif ($webp7_perms != &#039;0755&#039;) {...<\/code><\/pre>\n<p>Error found during localhost test with MAMP on Mac 10.9.4<\/p>\n<p>https:\/\/wordpress.org\/plugins\/ewww-image-optimizer\/<\/p>\n","protected":false},"template":"","class_list":["post-5226157","topic","type-topic","status-closed","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/5226157","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/5226157\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=5226157"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}