License Activation Troubleshooting
Table of Contents
In some cases, a license activation can fail unexpectedly without showing any errors.
Typical symptoms:
- The license activation page refreshes without anything happening.
- The Activate button gets “stuck,” and nothing happens.
Here are the most common cases in which this happens, including how to work around the issues:
ISP Blockage
We noticed that some ISPs, especially in Turkey and Russia, are often blocking websites that utilize Cloudflare, which can block connectivity to our API servers.
Solution
You can activate the license using a proxy by following these simple steps:
1. Go to us-proxy.org
2. Get the 1st proxy details available and add the following code to the functions.php of the currently active theme:
add_action(‘http_api_curl’, function( $handle ){
curl_setopt($handle, CURLOPT_PROXY, “REPLACE_ME_WITH_PROXY_IP”);
curl_setopt($handle, CURLOPT_PROXYPORT, REPLACE_ME_WITH_PROXY_PORT);
}, 10); 3. After a successful license activation, comment out the newly added lines of code to avoid running future cURL requests through a proxy.
Caching Layer Issue
For performance reasons, many in-memory caching solutions like Memcached or Redis require setting a Byte-limit to the values they store, and to optimize performance, all Freemius settings are stored in a single record in the wp_options table, which means that if the length of the settings is greater than the configured limit, it may cause one of the following unexpected behaviors:
- The settings won’t be stored at all
- The settings will fail to properly load
- The settings will be stored incompletely, causing data corruption
This will prevent the settings from properly propagating to (or from) the Database.
Solution
Try to temporarily disable the caching layer just for the license activation process.
Database Encoding Issue
In some cases, we noticed that misconfigured encoding of the option_value column in the wp_options table could fail to store the required data after license activation. E.g. – Even though the license gets properly activated, WordPress may not “remember” it. Typically this happens when there are any UTF-8 or UTF-16 characters in the license owner’s name or address.
Solution
Try changing the encoding of the option_value column in the wp_options table to UTF-8 (or UTF-16) and then try activating the license again.
Security Layer Blockage
Freemius’ license key generator randomly creates 32-char keys using alphanumeric characters and some special characters for enhanced security. We noticed that some security plugins/layers/modules (e.g., ModSecurity) might block a license activation process if the combination of the license’s special characters “look” suspicious.
Solution
Try to temporarily disable any security plugins/layers/modules you have just for the license activation process. After the license is activated, make sure to reactivate the security components you disabled.
More docs
- Disable WooCommerce Admin
- Disable Marketing Hub
- Disable WooCommerce.com notice
- Disable WooCommerce Marketplace Suggestions
- Disable Extensions & My Subscriptions submenus
- Disable Recommended shipping solutions metabox
- Disable Recommended payments plugins metabox
- Disable WooCommerce Status Meta Box
- Disable WooCommerce Blocks (back-end)
- Disable WooCommerce Widgets
- Disable WooCommerce scripts and styles
- Disable WooCommerce Cart Fragments
- Disable WooCommerce Blocks (front-end)
- Disable unnecessary Stripe scripts
- Hide update notice for non-admin users
- Disable WordPress Dashboard widgets
- Remove the WordPress logo from the admin bar
- Remove admin footer text
- Hide standard WordPress Logo from Login Page
- Change the Logo Link on the WordPress Login Page
- Change the Logo title parameter on the WordPress Login Page
- Disable WordPress Login Language Switcher
- Disable Password Strength Meter
- Load Comments script only when needed
- Prevent auto-linking URLs in comments
- Remove DNS prefetch to s.w.org
- Disable Sidebar WordPress Widgets
- Remove WordPress & WooCommerce Meta Generator Tag
- Remove emoji styles and scripts
- Remove RSS Feed Links
- Remove the Generator Tag From RSS Feeds
- Remove Link to the Windows Live Writer Manifest File
- Remove RSD link
- Remove Shortlink From HTTP Header
- Remove Jetpack installation notice
- Disable Jetpack promotions
- Disable the Elementor Dashboard widget
- Disable SkyVerge Dashboard
- Yoast SEO: Disable Ads, Premium nags, Premium menu
- Yoast SEO: Disable Yoast SEO Admin bar item
- Yoast SEO: Remove Yoast HTML Comments from the Front-end
- Yoast SEO: Remove Yoast SEO Dashboard widget
- Disable Contact Form 7 JavaScript and CSS
- Hide “UpdraftPlus” on admin toolbar
- Hide Advanced Custom Fields admin menu
- Remove WPML Meta Generator Tag