{"id":9844322,"date":"2018-01-08T15:44:25","date_gmt":"2018-01-08T15:44:25","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/ob_start-and-html-minifying-error\/"},"modified":"2018-01-08T16:06:16","modified_gmt":"2018-01-08T16:06:16","slug":"ob_start-and-html-minifying-error","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/ob_start-and-html-minifying-error\/","title":{"rendered":"ob_start and HTML minifying error"},"content":{"rendered":"<p>I encountered a problem with another plug-in (&#8216;Fast Velocity Minify&#8217;), but caused by AIO SEO. You can see the thread <a href=\"https:\/\/wordpress.org\/support\/topic\/minfy-html-error\/\" rel=\"noopener\" target=\"_blank\">here<\/a>.<\/p>\n<p>Basically, it is &#8211; with AIO SEO Force Rewrite set to &#8216;on&#8217; and HTML Minifying set to enable on the other plug-in &#8211; that AIO prints a line saying &#8216;ob_start_detected&#8217; (no tags around it).<br \/>\nThat&#8217;s in itself right, as FVM uses &#8216;ob_start&#8217; in the minifying function. However, it gives an error in validating the html with \u201cStray end tag \u2018head&#8217;\u201d and \u201c\u2018body\u2019 start tag seen, but element of the same type was already open\u201d.<\/p>\n<p>The page renders OK, but I hate having validating errors. When I just empty the string that&#8217;s echoed, everything is OK, incl. rewriting of the Page Title, as far as I can see.<\/p>\n<p>So the question is: is it really needed that string is printed?<\/p>\n<p>If I understand it right, &#8216;Force Rewrite&#8217; targets the TITLE if it may be overwritten by the theme or another plug-in. But that&#8217;s not what FVM does, it only minifies HTML.<\/p>\n","protected":false},"template":"","class_list":["post-9844322","topic","type-topic","status-publish","hentry","topic-tag-html","topic-tag-minifying"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/9844322","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":3,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/9844322\/revisions"}],"predecessor-version":[{"id":9844391,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/9844322\/revisions\/9844391"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=9844322"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}