Resolving problems with license validation
When you install and activate WP Rocket, the validation of your license happens in the background.
If license validation does not happen automatically, you will see a screen like this:
It is not an issue that your license info is grey-ed out. You are not expected to edit these fields, they are automatically detected.
First, simply try clicking Save Changes. In many cases, that’s all that is needed. If that doesn’t help, move on to the next steps.
Whitelist our IP addresses
Ask your web host to whitelist both of our IP addresses:
Note: Whitelisting these IP addresses solves the issue in 99% of cases!
Our server needs to contact your site to do this. If your site is blocking external HTTP requests we will be unable to validate your license and you will see a message in your dashboard asking for your API key. Here's how you can resolve this.
Check your wp-config.php file and see if this line is present:
define( 'WP_HTTP_BLOCK_EXTERNAL', true );
If so, it is blocking the license validation.
This may be a good idea for security reasons, but it's better to whitelist approved hosts like us : *.wp-rocket.me
So you can delete the above constant, or set it to FALSE, and use the WP_ACCESSIBLE_HOSTS to whitelist us (and any other necessary domains via a comma separated list). For example:
define( 'WP_ACCESSIBLE_HOSTS', '*.wp-rocket.me,*.wordpress.org,localhost' );
Deactivate security plugins
Some security plugins, depending on their settings, may also block the validation process. Please temporarily disable them while attempting to validate your license.