Title: Fixing 520 Errors
Last modified: September 16, 2016

---

# Fixing 520 Errors

 *  [thellimist](https://wordpress.org/support/users/furkan811/)
 * (@furkan811)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/520-errors/)
 * If you are getting [520](https://support.cloudflare.com/hc/en-us/articles/200171936-Error-520-Web-server-is-returning-an-unknown-error)
   error most likely your headers exceed CloudFlare’s header size limit (over 8kb).
 * We’re planning to release a new version fixing the issue.
 * To temporarly fix your website you need to disable HTTP/2 Server Push feature.
 * – SSH to your server.
    – open /your_wordpress_path/wp-content/plugins/cloudflare/
   cloudflare.php with your preferred text editor. – Put “//” in the beginning of
   line 39.
 * It should like as following
 *     ```
       // Enable HTTP2 Server Push
       //add_action('init', array('\CF\Hooks\HTTP2ServerPush', 'init'));
       ```
   
 * Disabling HTTP/2 Server Push will only reverse the added performance benefits
   to your website.
 * =================================================================
 * Cloudflare plugin has HTTP/2 Server Push feature which speeds your WordPress 
   blog. To know how HTTP/2 Server Push works please read this [blog](https://blog.cloudflare.com/announcing-support-for-http-2-server-push-2/)
   post.
 * If you have additional issues or questions feel free to comment.
    -  This topic was modified 9 years, 7 months ago by [thellimist](https://wordpress.org/support/users/furkan811/).
    -  This topic was modified 9 years, 7 months ago by [thellimist](https://wordpress.org/support/users/furkan811/).

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

 *  [ᜌᜓᜃᜒ (Yuki|雪亮) 🇵🇭](https://wordpress.org/support/users/laibcoms/)
 * (@laibcoms)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/520-errors/#post-8189965)
 * Works.
 * If it will help, my setup is:
    * Multisite * Flexible SSL * WordPress HTTPS (
   WP plugin) * WordPress MU Domain Mapping (WP plugin) * CloudFlare Flexible SSL(
   WP plugin)
 * and of course CloudFlare WP plugin.
 *  [marcoman89](https://wordpress.org/support/users/marcoman89/)
 * (@marcoman89)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/520-errors/#post-8190140)
 * Fix works. Thanks
 *  [Jack](https://wordpress.org/support/users/moxie/)
 * (@moxie)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/520-errors/#post-8190646)
 * Could work, but what regular WP user has access to SSH and nows/wants to use 
   it?
    Hopefully this will be fixed soon in the plugin.
 *  Thread Starter [thellimist](https://wordpress.org/support/users/furkan811/)
 * (@furkan811)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/520-errors/#post-8190691)
 * We’ve uploaded version 3.0.1 fixing 520 errors. If you still have any issues 
   related with this I’ll gladly help.
 * Changelog: [https://en-gb.wordpress.org/plugins/cloudflare/changelog/](https://en-gb.wordpress.org/plugins/cloudflare/changelog/)
 *  [visualblind](https://wordpress.org/support/users/visualblind/)
 * (@visualblind)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/520-errors/#post-8190724)
 * Still having http 502 errors.
 *     ```
       root@nginx02:/var/log/nginx# nginx -v && php -v
       nginx version: nginx/1.10.0
       PHP 7.0.8-0ubuntu0.16.04.2 (cli) ( NTS )
       Copyright (c) 1997-2016 The PHP Group
       Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies
           with Zend OPcache v7.0.8-0ubuntu0.16.04.2, Copyright (c) 1999-2016, by Zend Technologies
   
       root@nginx02:/var/log/nginx# dpkg -l | egrep 'php|nginx'
       rc  nginx-common                     1.10.0-0ubuntu0.16.04.2         all          small, powerful, scalable web/proxy server - common files
       ii  nginx-custom                     1.10.0-3                        amd64        nginx web/proxy server (extended version)
       ii  nginx-ee                         1.10.0-3                        all          small, powerful, scalable web/proxy server - ee files
       ii  php-common                       1:35ubuntu6                     all          Common files for PHP packages
       ii  php-curl                         1:7.0+35ubuntu6                 all          CURL module for PHP [default]
       rc  php-memcache                     3.0.9~20151130.fdbd46b-2        amd64        memcache extension module for PHP5
       ii  php-memcached                    2.2.0-51-ge573a6e+2.2.0-2build2 amd64        memcached extension module for PHP5, uses libmemcached
       ii  php-mysql                        1:7.0+35ubuntu6                 all          MySQL module for PHP [default]
       ii  php-pear                         1:1.10.1+submodules+notgz-6     all          PEAR Base System
       ii  php-readline                     1:7.0+35ubuntu6                 all          readline module for PHP [default]
       ii  php-ssh2                         0.12-39-g3dfe336+0.12-1build1   amd64        Bindings for the libssh2 library
       ii  php-xml                          1:7.0+35ubuntu6                 all          DOM, SimpleXML, WDDX, XML, and XSL module for PHP [default]
       ii  php-zip                          1:7.0+35ubuntu6                 all          Zip module for PHP [default]
       ii  php7.0-cli                       7.0.8-0ubuntu0.16.04.2          amd64        command-line interpreter for the PHP scripting language
       ii  php7.0-common                    7.0.8-0ubuntu0.16.04.2          amd64        documentation, examples and common module for PHP
       ii  php7.0-curl                      7.0.8-0ubuntu0.16.04.2          amd64        CURL module for PHP
       ii  php7.0-fpm                       7.0.8-0ubuntu0.16.04.2          amd64        server-side, HTML-embedded scripting language (FPM-CGI binary)
       ii  php7.0-json                      7.0.8-0ubuntu0.16.04.2          amd64        JSON module for PHP
       ii  php7.0-mbstring                  7.0.8-0ubuntu0.16.04.2          amd64        MBSTRING module for PHP
       ii  php7.0-mysql                     7.0.8-0ubuntu0.16.04.2          amd64        MySQL module for PHP
       ii  php7.0-opcache                   7.0.8-0ubuntu0.16.04.2          amd64        Zend OpCache module for PHP
       ii  php7.0-phpdbg                    7.0.8-0ubuntu0.16.04.2          amd64        server-side, HTML-embedded scripting language (PHPDBG binary)
       ii  php7.0-readline                  7.0.8-0ubuntu0.16.04.2          amd64        readline module for PHP
       ii  php7.0-xml                       7.0.8-0ubuntu0.16.04.2          amd64        DOM, SimpleXML, WDDX, XML, and XSL module for PHP
       ii  php7.0-zip                       7.0.8-0ubuntu0.16.04.2          amd64        Zip module for PHP
       ```
   
    -  This reply was modified 9 years, 7 months ago by [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/).
    -  This reply was modified 9 years, 7 months ago by [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/).
      Reason: put code in backticks
 *  [moody1337](https://wordpress.org/support/users/moody1337/)
 * (@moody1337)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/520-errors/#post-8190754)
 * Hey thellimist,
 * installed the fix right now, but again I got the following error:
 * upstream sent too big header while reading response header from upstream
 * The version before the 3.0.0-update works.
 *  Thread Starter [thellimist](https://wordpress.org/support/users/furkan811/)
 * (@furkan811)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/520-errors/#post-8190762)
 * Hi moody1337,
 * Can you upload a full error log?
 * Thanks
 *  [moody1337](https://wordpress.org/support/users/moody1337/)
 * (@moody1337)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/520-errors/#post-8190768)
 * Thats everything I got:
 * 2016/09/16 16:56:38 [error] 1756#1756: *129842 upstream sent too big header while
   reading response header from upstream, client: 94.135.196.154, server: test.wihel.
   de, request: “GET /wp-admin/ HTTP/2.0”, upstream: “fastcgi://unix:/run/php/php-
   fpm1.sock:”, host: “test.wihel.de”
 *  [bitsum](https://wordpress.org/support/users/bitsum/)
 * (@bitsum)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/520-errors/#post-8190912)
 * Or just remove this plugin. Why do we need it? Cloudflare works fine w/o.
 *  [lauw8](https://wordpress.org/support/users/lauw8/)
 * (@lauw8)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/520-errors/#post-8193446)
 * I had the same issue on [my website](https://echtgezondafvallen.nl), so I went
   back to version 1.3.24. They also released a new update again that is version
   3.0.2, but that one is still giving problems.
    -  This reply was modified 9 years, 7 months ago by [lauw8](https://wordpress.org/support/users/lauw8/).
    -  This reply was modified 9 years, 7 months ago by [lauw8](https://wordpress.org/support/users/lauw8/).
 *  [jwineman](https://wordpress.org/support/users/jwineman/)
 * (@jwineman)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/520-errors/#post-8193792)
 * Hi [@lauw8](https://wordpress.org/support/users/lauw8/),
 * Can you give me more details on the problems you’re seeing? What specifically
   is wrong?
 * Thanks,
    John

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

The topic ‘Fixing 520 Errors’ is closed to new replies.

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

 * 13 replies
 * 9 participants
 * Last reply from: [jwineman](https://wordpress.org/support/users/jwineman/)
 * Last activity: [9 years, 7 months ago](https://wordpress.org/support/topic/520-errors/#post-8193792)
 * Status: not resolved