WordPress.org

Forums

W3 Total Cache
Will not connect to MaxCDN (32 posts)

  1. dionsis
    Member
    Posted 2 years ago #

    I have updated to the latest W3

    It will not connect to MaxCDN

    I have created an API application on the MaxCDN side, I have provided the Secret and Key and added CNAMEs

    However now that the CNAMES are propagating it seems the problem lies somewhere else.

    I have ALIAS set as the name of the MaxCDN API application, but whenever I test connectivity I get

    Error: Failed with error code 401. Please check your alias, consumer key, and private key.

    Latest WordPress, Latest W3 Total Cache.

    http://wordpress.org/extend/plugins/w3-total-cache/

  2. nemoprofeta
    Member
    Posted 2 years ago #

    I get the same error. How can we use MAXCDN?

  3. dionsis
    Member
    Posted 2 years ago #

    Just to update, MaxCDN's support responded suggesting I whitelist my IP.

    I already have a whitelisted IP so that isn't the issue in this case, this was previously working and now will not connect.

  4. Preshit Deorukhkar
    Member
    Posted 2 years ago #

    Same issue. I'm clueless as to what the ALIAS has to be. This field didn't exist in the previous version, nor does it exists on MaxCDN.

  5. Preshit Deorukhkar
    Member
    Posted 2 years ago #

    I managed to get it working. Sort of.

    I entered the alias value as the name of my zone/companyid. In my case, they're both the same so I'm not sure which it is exactly.

    Unfortunately, I can't use my custom CNAME'd domain as the hostname. I had to use the default one MaxCDN gives you.

  6. dionsis
    Member
    Posted 2 years ago #

    I entered my Zone name as ALIAS and get

    Error: No zones matching custom domain.

  7. dionsis
    Member
    Posted 2 years ago #

    I've got my Alias as Zone Name

    I set my first custom domain from being

    cdn.goldenplec.com to goldenplec.goldenplec.netdna-cdn.com which is where my CNAMES point to. It now passes

    I've left the other three as cdn1 cdn2 and cdn3

    I'm unsure why this has now passed. Is it working propely or not?

  8. Preshit Deorukhkar
    Member
    Posted 2 years ago #

    In my case, both the name of the zone and the companyid is, say, 'example'. So my default hostname is

    `example.example.netdna-cdn.com

    So I've entered 'example' as the Alias and in the 'Replace site's hostname with' field, I've entered 'example.example.netdna-cdn.com'.

    So this works for me, but I can't use my custom 'cdn.example.com' domain yet. Let's hope the plugin author responds.

  9. dionsis
    Member
    Posted 2 years ago #

    If you add CNAMES you can use your custom CNAME for JS in the head and JS in the body etc. so currently I have

    LONG MAXCDN URL -> CSS
    CNAME1 -> JS in head
    CNAME2 -> JS after <body>
    CNAME3 -> JS before </body>

    So now I just need to get my CSS loading from a CNAME and it's all working. Author response would be great

  10. Arsie Organo
    Member
    Posted 2 years ago #

    I just spoke with the MaxCDN support by the name of Ivan D. We both tried to troubleshoot the problem and here is what is his recommendations:

    1. Don't fill the Alias, Consumer Key, and Consumer Secret. The API is intended only for remote purging where you can do it by going to your MAXCDN account.
    2. Don't change your custom CNAME, leave them as is. To verify that it is still working, check your site if the images, etc are still hosted by your custom CNAME.
    3. They will talk to W3TC dev about the API he added to the latest version of W3TC because they (MAXCDN) were not informed of these changes.

    I hope the author of W3TC would respond.

  11. Frederick Townes
    Member
    Plugin Author

    Posted 2 years ago #

    We already work closely with MaxCDN. Will figure out where the confusion lies.

  12. Arsie Organo
    Member
    Posted 2 years ago #

    Cool Fred! Give us the update as soon as it is clarified.

  13. dionsis
    Member
    Posted 2 years ago #

    Thanks Fred. Appreciate that

  14. healthable
    Member
    Posted 2 years ago #

    [ Moderator note: de-capped. Please do not use all caps again, it's considered rude. ]

    this plugin is conflicting with my themes... my old themes uses my new theme footer and retains its layout+color even when i didnt activate it. and my cloudflares redirects to a 404 error page once i click save

  15. dionsis
    Member
    Posted 2 years ago #

    Healthable start your own thread as the above has nothing to do with MaxCDN

  16. epeolatry
    Member
    Posted 2 years ago #

    I think I Have fixed it ...

    Note: Not sure if it makes any difference, but I deleted my pull zone and re-created it within MaxCDN.

    1 - Enable MaxCDN within the W3 Total Cache plugin.

    2 - Click the "I have MaxCDN' button from within W3 Total Cache to generate your API keys. (API Consumer Key and Consumer Secret). Once those two keys are created, copy and paste them into the W3 Total Cache plugin.

    3 - Find your 'Alias' ... In MaxCDN, at the very top of the page, you will see icons for 'Dashboard', 'Zones', Report', 'Account'. Click on ACCOUNT. Here you will find your alias. Copy and paste that alias into the 'alias' field within your plugin.

    3 - "Replace site's hostname with:" ... the first site should be the LONG URL provided by MaxCDN. Subsequent names can be the CNAME you generated.

    4 - Make sure your IP is whitelisted.

    I tested the CDN using this method and it works.

    Let me know how it works out.

  17. Frederick Townes
    Member
    Plugin Author

    Posted 2 years ago #

    Sounds about right.

  18. dionsis
    Member
    Posted 2 years ago #

    This is pretty much what I said above, only that spot is the CSS CDN and it means that the url will be an external url.

    Is the new expectation to be that the long url of an external source to be the url of the CSS?

    This wasn't the case before, why is it the new method?

  19. brandondrury
    Member
    Posted 2 years ago #

    I don't know what a "long url" is and MaxCDN has their old MaxCDN, their new MaxCDN, and their NetDNA pages so the particular version used needs to be specified when discussing MaxCDN.

    What a disaster! 7 hours in and I almost have this upgrade working.

  20. brandondrury
    Member
    Posted 2 years ago #

    1 - Enable MaxCDN within the W3 Total Cache plugin.

    2 - Click the "I have MaxCDN' button from within W3 Total Cache to generate your API keys. (API Consumer Key and Consumer Secret). Once those two keys are created, copy and paste them into the W3 Total Cache plugin.

    3 - Find your 'Alias' ... In MaxCDN, at the very top of the page, you will see icons for 'Dashboard', 'Zones', Report', 'Account'. Click on ACCOUNT. Here you will find your alias. Copy and paste that alias into the 'alias' field within your plugin.

    3 - "Replace site's hostname with:" ... the first site should be the LONG URL provided by MaxCDN. Subsequent names can be the CNAME you generated.

    4 - Make sure your IP is whitelisted.

    I tested the CDN using this method and it works.

    I do this and the "Testing" status hangs. No response.

    I'm assuming a "Long URL" is for me brandon001.recordingreviewc.netdna-cdn.com

    Branddon

  21. ahmedeqbal
    Member
    Posted 2 years ago #

    @brandondrury,

    Forget about "Alias: " and "Test NetDNA/MAXCDN" Button, it's show error, i left empty this field, my CDN properly working without any trouble.

  22. JaredDetroit
    Member
    Posted 2 years ago #

    I followed all of the steps mentioned by epeolatry and still received "Error: Failed with error code 401...".

    When I checked my site, however, the CDN is implemented and it's working. I think the issue is with the Test button.

  23. brandondrury
    Member
    Posted 2 years ago #

    W3 Total Cache says the CDN is enabled with MaxCDN, but not a single element in WordPress points to my CDN article.

    @ahmedeqbal, I'll try ditching the Alias and see if that helps. Thanks!

  24. signageinfo
    Member
    Posted 2 years ago #

    The above methods are perfectly working fine.

    Contact me anyone who need my assistance, i will be able to help you out for no cost/free service.

    Gtalk: connect [at] signageinfo.com

    Regards
    SignageInfo

  25. M Asif Rahman
    Member
    Posted 2 years ago #

    So for now use your “temporary url” from MaxCDN/NetDNA, it will be a large url like “zonename.alias.maxcdn-cdn.com” or “zonename.alias.netdna-cdn.com“. And then CDN will work with W3 Total Cache.

    I have made a blog post with detail instruction and graphics at my blog Asif.im

  26. Anthony Somerset
    Member
    Posted 2 years ago #

    My guess would be that MaxCDN/NetDNA is not exposing the custom Cnames in the API or W3TC is unable to search them for some reason.

    I suspect we will need to either get NetDNA to support that in the API or get Frederick to update W3TC to add a field for MaxCDN/NetDNA temporary URL to use that for the API communications

    even though i'm getting zone not found, the cdn is still working correctly, i just dont have purge support for assets within w3tc

  27. brandondrury
    Member
    Posted 2 years ago #

    I ended up getting CDN to work, but it will not pass the test. It just sits and hangs.

    Brandon

  28. nalafod
    Member
    Posted 2 years ago #

    I just deleted the bucket in maxcnd created an new one with the same allias and followed the above mentioned tip to ignore the test.

    CDN is working with custom cname as normal. I guess some problem with the purging of the old stuff.

    Hope this helps

  29. ahmedeqbal
    Member
    Posted 2 years ago #

    @nalafod,

    yeah something like that, but i think, you need to figure it out manually by using MaxCDN/NetDNA Control Panel,

    Pull Zones -> Mange Cache

  30. M Asif Rahman
    Member
    Posted 2 years ago #

    Version 0.9.2.8 released few hours ago. Now custom hostname works perfectly. Just the test button still does not work.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • W3 Total Cache
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.