WordPress: “HTTP Loopback Connections Disabled”

You get a WordPress error that says, “HTTP Loopback Connections Disabled.”

It took me awhile to figure this one out. I was getting it on a BuddyPress install (and other have reported seeing it with BackupBuddy, among others).

Most of the web sites had pointless or ineffective solutions. Some said to add define('ALTERNATE_WP_CRON', true); to wp-config.php, which was completely irrelevant, uneffective and annoying. Others first defined what a loopback was (thanks, Sherlock) and suggested that I associate every domain with in /etc/hosts, which:

  1. This is neither an issue nor required on my other cPanel instance.
  2. That is rather ridiculous to do for each domain on a shared server setup.

What Worked for Me

It turns out that allow_url_fopen was disabled on this (new) instance. Once I enabled that (which is on by default in PHP), the errors went away. In WHM:

  1. Go to Software > MultiPHP INI Editor
  2. Enable (if disabled) allow_url_fopen, apply and restart Apache.

This may not work for you, but it fixed my problems instantly. I wasn’t aware that it was disabled, and the error message(s) were obscure. I just thought that I would make a post in case someone stumbles across it and it’s helpful.

For end-users, you can also try adding this to wp-config.php and see if it works for you:

Leave a Reply

Your email address will not be published. * Denotes required field.
You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">

Tip: Do you want an image (avatar) next to your posts? Sign up for a free Gravatar account. It only takes 5 minutes - simply click the "Create Your Own Gravatar" button, provide your e-mail address and upload a photo to associate with it.