W3 Total Cache Pro Activation Patch

We recently noticed an increase in the number of customers experiencing activation issues with W3 Total Cache Pro. For those of you who don’t know, this is how it works:

Once you upgrade from the Community (free) version of W3 Total Cache to the Pro version ($99/yr subscription), you’re assigned a license key that in most cases is automatically applied. In the event that activation isn’t automatic, you simply need to paste the license key (which is sent via email and displayed in your browser at the time of purchase) in the License field on the General Settings page and save settings.

A number of customers were unsuccessful in getting the Pro version activated despite following the steps above, and our investigation has revealed that a patch is required in order to complete the activation process if you’re among those affected.

Two things before I reveal the patch:

  1. We’re happy to implement this patch for you! Just email us at w3tc-team@w3-edge.com and let us know that you need help. We’ll provide you with a secure link so you can send us WP Admin and filesystem (SSH or FTP) access. Note that both required to implement and verify the patch, so please be sure you have both ready.
  2. This patch will be in the next release, so most people won’t have to worry about it. We don’t have an ETA we can give you for this release, but it will be available “soon” (smile).

Without further ado.

On line 117 of /w3-total-cache/lib/W3/Licensing.php, the following line:

network_admin_url('admin.php?page=w3tc_general&w3tc_licensing_check_key'))

needs to be replaced with:

wp_nonce_url(network_admin_url('admin.php?page=w3tc_general&w3tc_licensing_check_key'), 'w3tc'))

That’s it.

Please make a backup of this file before making changes if you attempt this on your own, and as always, thanks so much for using W3 Total Cache.