Title: Random connection problems &#8211; Cloudflare to Server &#8211; when using Snippets Plugin
Last modified: September 11, 2020

---

# Random connection problems – Cloudflare to Server – when using Snippets Plugin

 *  [David](https://wordpress.org/support/users/loano1/)
 * (@loano1)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/random-connection-problems-cloudflare-to-server-when-using-snippets-plugin/)
 * Recently I have been experiencing connection problems in WordPress Admin (520
   errors, Cloudflare can’t connect to the server), which occur randomly, maybe 
   every twentieth to fiftieth call. They occur on several of my websites, but only
   if I add code for the functions.php via the snippet plugin (latest plugin version).
 * In one case it helped to set the priority of the snippet to 1, in other cases
   I just put the code (some redirect functions) into the Child Theme Functions,
   then the problem disappears as well.
 * Unfortunately I can’t detect the problem any better, my server log doesn’t show
   any errors.
 * Hence my question to the plugin author, with the latest update of the plugin,
   were there any changes that could cause the problem? WordPress version and theme
   used do not seem to make any difference.
 * And everyone, has anyone noticed anything similar or can you tell me what exactly
   the problem might be?
 * Thanks in advance!
    -  This topic was modified 5 years, 9 months ago by [David](https://wordpress.org/support/users/loano1/).
      Reason: better styling

Viewing 1 replies (of 1 total)

 *  Plugin Author [Shea Bunge](https://wordpress.org/support/users/bungeshea/)
 * (@bungeshea)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/random-connection-problems-cloudflare-to-server-when-using-snippets-plugin/#post-13732569)
 * Sorry to hear that this has been happening! Are you able to share the code that
   you’re using that’s causing this problem? If I can reproduce the problem, then
   I can see about fixing it.

Viewing 1 replies (of 1 total)

The topic ‘Random connection problems – Cloudflare to Server – when using Snippets
Plugin’ is closed to new replies.

 * ![](https://ps.w.org/code-snippets/assets/icon.svg?rev=2148878)
 * [Code Snippets](https://wordpress.org/plugins/code-snippets/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/code-snippets/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/code-snippets/)
 * [Active Topics](https://wordpress.org/support/plugin/code-snippets/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/code-snippets/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/code-snippets/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Shea Bunge](https://wordpress.org/support/users/bungeshea/)
 * Last activity: [5 years, 6 months ago](https://wordpress.org/support/topic/random-connection-problems-cloudflare-to-server-when-using-snippets-plugin/#post-13732569)
 * Status: not a support question