{"id":6282608,"date":"2015-06-30T12:10:08","date_gmt":"2015-06-30T12:10:08","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/php-notice-54\/"},"modified":"2016-08-30T14:59:44","modified_gmt":"2016-08-30T14:59:44","slug":"php-notice-54","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/php-notice-54\/","title":{"rendered":"PHP Notice"},"content":{"rendered":"<p>Hello Frank,<\/p>\n<p>I&#8217;m not sure why it happens. Our PHP-Error.log was full with this message:<\/p>\n<p>[30-Jun-2015 10:15:37 UTC] PHP Notice:  Undefined property: autoptimizeStyles::$dontmove in path\/to\/plugins\/autoptimize\/classes\/autoptimizeStyles.php on line 546<\/p>\n<p>Fix is pretty simple, but is there a special reason why this property is undefined?<\/p>\n<pre><code>private function ismovable($tag) {\n\t\tif(isset($this-&gt;dontmove)){\n\t\t\tif (is_array($this-&gt;dontmove)) {\n\t\t\t\tforeach($this-&gt;dontmove as $match) {\n\t\t\t\t\tif(strpos($tag,$match)!==false) {\n\t\t\t\t\t\t\/\/Matched something\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\/\/If we&#039;re here it&#039;s safe to move\n\t\treturn true;\n\t}<\/code><\/pre>\n<p>Thank you and best regards,<br \/>\nBruno<\/p>\n<p>https:\/\/wordpress.org\/plugins\/autoptimize\/<\/p>\n","protected":false},"template":"","class_list":["post-6282608","topic","type-topic","status-closed","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/6282608","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\/6282608\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=6282608"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}