{"id":8189795,"date":"2016-09-16T11:11:10","date_gmt":"2016-09-16T11:11:10","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/520-errors\/"},"modified":"2016-09-16T11:13:32","modified_gmt":"2016-09-16T11:13:32","slug":"520-errors","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/520-errors\/","title":{"rendered":"Fixing 520 Errors"},"content":{"rendered":"<p>If you are getting <a href=\"https:\/\/support.cloudflare.com\/hc\/en-us\/articles\/200171936-Error-520-Web-server-is-returning-an-unknown-error\">520<\/a> error most likely your headers exceed CloudFlare\u2019s header size limit (over 8kb).<\/p>\n<p>We&#8217;re planning to release a new version fixing the issue.<\/p>\n<p>To temporarly fix your website you need to disable HTTP\/2 Server Push feature. <\/p>\n<p>&#8211; SSH to your server.<br \/>\n&#8211; open \/your_wordpress_path\/wp-content\/plugins\/cloudflare\/cloudflare.php with your preferred text editor.<br \/>\n&#8211; Put &#8220;\/\/&#8221; in the beginning of line 39.<\/p>\n<p>It should like as following<\/p>\n<pre><code>\/\/ Enable HTTP2 Server Push\n\/\/add_action(&#039;init&#039;, array(&#039;\\CF\\Hooks\\HTTP2ServerPush&#039;, &#039;init&#039;));<\/code><\/pre>\n<p>Disabling HTTP\/2 Server Push will only reverse the added performance benefits to your website.<\/p>\n<p>=================================================================<\/p>\n<p>Cloudflare plugin has HTTP\/2 Server Push feature which speeds your WordPress blog. To know how HTTP\/2 Server Push works please read this <a href=\"https:\/\/blog.cloudflare.com\/announcing-support-for-http-2-server-push-2\/\">blog<\/a> post.<\/p>\n<p>If you have additional issues or questions feel free to comment.<\/p>\n","protected":false},"template":"","class_list":["post-8189795","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/8189795","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":2,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/8189795\/revisions"}],"predecessor-version":[{"id":8189803,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/8189795\/revisions\/8189803"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=8189795"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}