Title: Error: Empty hostname / CNAME list
Last modified: August 21, 2016

---

# Error: Empty hostname / CNAME list

 *  [dzulfriday](https://wordpress.org/support/users/dzulfriday/)
 * (@dzulfriday)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/error-empty-hostname-cname-list/)
 * I am using rackspace cloud files, i setup 2 websites. The first website is just
   fine. The second one, it has been a few days, when i test Cloud files upload 
   it will show:
 * Error: Empty hostname / CNAME list.
 * Both websites are using the same CHICAGO node, why is this happening?
 * The weird is, i try upload the themes files is ok, shows green.
 * [http://wordpress.org/plugins/w3-total-cache/](http://wordpress.org/plugins/w3-total-cache/)

Viewing 15 replies - 1 through 15 (of 18 total)

1 [2](https://wordpress.org/support/topic/error-empty-hostname-cname-list/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/error-empty-hostname-cname-list/page/2/?output_format=md)

 *  [cwalton](https://wordpress.org/support/users/cwalton/)
 * (@cwalton)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/error-empty-hostname-cname-list/#post-4043432)
 * Me too.
 *  [AlexJS](https://wordpress.org/support/users/alexjs/)
 * (@alexjs)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/error-empty-hostname-cname-list/#post-4043433)
 * Same here using EU node
 * “Error: Empty hostname / CNAME list.”
 * Triggered here:
 * wp-w3-total-cache / lib / W3 / Cdn / Base.php
 * /**
    * Test domains * * [@param](https://wordpress.org/support/users/param/) 
   string $error * [@return](https://wordpress.org/support/users/return/) boolean*/
   function _test_domains(&$error) { $domains = $this->get_domains();
 *  if (!count($domains)) {
    $error = ‘Empty hostname / CNAME list.’;
 *  return false;
 *  }
 * Not sure why as I provide the bucket.s3.amazon link …
 * Anybody?
 *  [head4space](https://wordpress.org/support/users/head4space/)
 * (@head4space)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/error-empty-hostname-cname-list/#post-4043452)
 * I get the same error when I try to set up W3 Total Cache for Rackspace CDN. I’ve
   tried creating the container myself or letting the plugin create the container.
   Both have the same result.
 * The files upload (when you press the buttons to send them to the CDN) but when
   I enable the CDN it cannot see these files and so the site has no CSS, JS, Images
   etc.
 *  [geophray](https://wordpress.org/support/users/geophray/)
 * (@geophray)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/error-empty-hostname-cname-list/#post-4043455)
 * I’ve got the same problem with an Amazon S3/Cloudfront setup. It seems to upload
   the files to S3 fine, and they are available via cloudfront if I try to pull 
   up an image directly, but on the back end it keeps giving me that error. It’s
   weird because the files are being served from cloudfront when my site loads, 
   but when I run a test through webpagetest.org or yslow, it shows that none of
   my files are being loaded through the CDN. (I know they are loading in my browser
   because some of the files are missing from my local server, but they still load
   with the rest of the website.)
 *  [head4space](https://wordpress.org/support/users/head4space/)
 * (@head4space)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/error-empty-hostname-cname-list/#post-4043457)
 * I’ve since found that if I let the plugin create the container (and not create
   it myself) and let it create the link that the error message is still present
   but it works.
 * I’ve pressed all the upload buttons and now have around 150Mb of data being served
   from the rackspace CDN.
 * After making the change make sure to purge the Page Cache, otherwise your local
   cache might give you mixed results.
 * If you have a look at my page [http://www.head4space.com](http://www.head4space.com)
   and look at the URL for any of the images you will see that they are now being
   server by the CDN.
 *  [debenedictis](https://wordpress.org/support/users/debenedictis/)
 * (@debenedictis)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/error-empty-hostname-cname-list/#post-4043458)
 * There is another thread on this topic that describes an edit you can make to 
   lib/W3/AdminActions/CdnActionsAdmin.php to fix this:
 *  [V 0.9.3 CDN Cloudfront Error – Empty Access Key](http://wordpress.org/support/topic/v-093-cdn-cloudfront-error-empty-access-key)
 * It worked for me.
 *  [geophray](https://wordpress.org/support/users/geophray/)
 * (@geophray)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/error-empty-hostname-cname-list/#post-4043459)
 * Thanks for the tip [@debenedictis](https://wordpress.org/support/users/debenedictis/).
   Unfortunately that solution didn’t resolve the problem for me, although it looks
   like it did for a couple of other people with a similar problem.
 *  [scotthenning](https://wordpress.org/support/users/scotthenning/)
 * (@scotthenning)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/error-empty-hostname-cname-list/#post-4043460)
 * [@geophray](https://wordpress.org/support/users/geophray/) Having same issue 
   here with RackSpace and above issue does not work.
 *  [itagility](https://wordpress.org/support/users/itagility/)
 * (@itagility)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/error-empty-hostname-cname-list/#post-4043486)
 * I have the same problem on Amazon S3/Cloudfront. I can’t get rid of the error
 *  anonymized-9246034
 * (@anonymized-9246034)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/error-empty-hostname-cname-list/#post-4043515)
 * Not sure if this is allowed (anyone can correct me or flag this as such), but
   I disabled cdn in w3tc and temporarily installed CDN Linker as suggested by maxcdn.
   There’s a lite version within the WordPress.org and a full version through github.
   Both are free.
 * [http://wordpress.org/plugins/ossdl-cdn-off-linker/](http://wordpress.org/plugins/ossdl-cdn-off-linker/)
 * [https://github.com/wmark/CDN-Linker](https://github.com/wmark/CDN-Linker)
 * Depending on your cdn setup, if you have 4 dns entries, then you would add %4%
   to you cdn listing as such;
 *  http[:]//cdn%4%.domain-name(dot)com
 * Works perfectly and the best option since the cdn option is still broken. I tried
   the suggested edit/hack, but it didn’t work for me either. Once w3tc is fixed,
   then can I go back to one plugin for everything…although in life, anything all-
   in-one tends to be problematic.
 *  [elida](https://wordpress.org/support/users/marsviolet/)
 * (@marsviolet)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/error-empty-hostname-cname-list/#post-4043531)
 * I have the same problem.
    I changed my rachspac API and then entered the new 
   on in w3tc and now I am getting this error.
 *  [Vince Vega](https://wordpress.org/support/users/miramax/)
 * (@miramax)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/error-empty-hostname-cname-list/#post-4043532)
 * When I test Rackspace Cloud Files, I also get the error:
 * Error: Empty hostname / CNAME list.
 * I’m seeing the following in the log:
 * PHP Warning: array_merge(): Argument #1 is not an array in /var/www/dev.mysite.
   com/wp-content/plugins/w3-total-cache/lib/W3/AdminActions/CdnActionsAdmin.php
   on line 377
 * The function that’s failing is action_cdn_test(), somehow it’s not getting the
   CNAME that is entered in the CDN config.
 * We started seeing transfer queue errors today, so things are feeling very wobbly.
   We’re considering a downgrade to a prior version of W3TC…here’s a link to the
   0.9.2.11 if anyone’s interested: [http://downloads.wordpress.org/plugin/w3-total-cache.0.9.2.11.zip](http://downloads.wordpress.org/plugin/w3-total-cache.0.9.2.11.zip)
 * Any word on a fix for this?
 *  anonymized-9246034
 * (@anonymized-9246034)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/error-empty-hostname-cname-list/#post-4043533)
 * [@vince](https://wordpress.org/support/users/vince/),
 * Disable CDN in W3TC and use CDN Linker ([https://github.com/wmark/CDN-Linker](https://github.com/wmark/CDN-Linker))
   until the issue is resolved. It’s easier than removing and downgrading W3TC….
   and it works.
 *  [jmarx75](https://wordpress.org/support/users/jmarx75/)
 * (@jmarx75)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/error-empty-hostname-cname-list/#post-4043541)
 * In using rackspace cloudfiles, the plugin actually does work in that it uploads
   the file to my container. It’s just the TEST button that is not working for me.
   I’m actually working on writing a patch for that, but just so you guys know you
   should be able you should be able to effectively use the plugin with rackspace
   cloudfiles(I haven’t tested the others).
 *  [Gavin Smith](https://wordpress.org/support/users/gavinsmithleapcomau/)
 * (@gavinsmithleapcomau)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/error-empty-hostname-cname-list/#post-4043577)
 * I had the same issue with WordPress 3.6.1 and version 0.9.3 of the W3 Total Cache
   plugin.
 * Rolling back to version 0.9.2.11 appears to have resolved this issue for me.

Viewing 15 replies - 1 through 15 (of 18 total)

1 [2](https://wordpress.org/support/topic/error-empty-hostname-cname-list/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/error-empty-hostname-cname-list/page/2/?output_format=md)

The topic ‘Error: Empty hostname / CNAME list’ is closed to new replies.

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

## Tags

 * [cdn](https://wordpress.org/support/topic-tag/cdn/)
 * [rackspace](https://wordpress.org/support/topic-tag/rackspace/)

 * 18 replies
 * 15 participants
 * Last reply from: [Brendan](https://wordpress.org/support/users/br3nd4n/)
 * Last activity: [12 years, 1 month ago](https://wordpress.org/support/topic/error-empty-hostname-cname-list/page/2/#post-4043652)
 * Status: not resolved