license key activation error

  • purevelvetdesign

    Hi there,

    i can’t activate all licenes, always throw some errors.
    Can you help me please?

    I already tried this: https://docs.generatepress.com/article/license-key-activation-issues/

    Thanks

  • Hi,

    Since you’ve already worked through those steps, the next move is to enable debug logging so we can see exactly what’s happening during the activation request.

    1. Enable WP_DEBUG and WP_DEBUG_LOG in your wp-config.php: https://wordpress.org/support/article/debugging-in-wordpress/

    2. Add this to your site (Adding PHP):

    add_action( 'http_api_debug', function( $response, $context, $class, $r, $url ) {
        if ( 'https://generatepress.com' !== $url && 'https://api.generatepress.com' !== $url ) {
            return;
        }
    
        error_reporting( error_reporting() & ~E_NOTICE );
        error_log( '------ Start GeneratePress license key debugging ------' );
        error_log( '--- HTTP response or WP_Error object. ---' );
        error_log( print_r( $response, true ) );
        error_log( '--- HTTP transport used. ---' );
        error_log( $class );
        error_log( '--- HTTP request arguments. ---' );
        error_log( print_r( $r, true ) );
    }, 10, 5 );

    3. Try activating the license key again.

    4. Share the contents of wp-content/debug.log with us — you can paste any sensitive details into the Private Information field when replying.

  • purevelvetdesign

    Hi George,

    thanks.
    I shared debug.log content in the private information area.

  • Hi,

    The debug log shows Cloudflare is intercepting the activation request with a browser challenge, which is why it’s returning a 403. This is a Cloudflare firewall rule on your server’s end blocking outbound requests to our domain.

    1. Secondary API snippet — Looking at the log, the requests are still going to generatepress.com rather than api.generatepress.com, which suggests the secondary API filter may not be active. Can you confirm it’s been added and that there’s no caching plugin that might be preventing it from loading?
    2. Cloudflare firewall — If your site is behind Cloudflare, please try switching to DNS-only mode temporarily and attempt activation again. If that works, you’ll need to add our IP (162.159.135.42) to your Cloudflare allowlist before switching proxy mode back on.
  • purevelvetdesign

    Hi,

    thank you.
    I don’t use any cloudflare service, nor server either website.
    I implemented second api again now and GeneratePress Activation gone fine now.
    GenerateCloud Activation also went fine.

    What still doesn’t work is GenerateBlocks Pro Activation.
    I use a plugin called WP Login Lockdown with several security rulaes and features.

  • Since you’re using WP Login Lockdown, please try temporarily deactivating it and attempt the GB Pro activation again.

  • purevelvetdesign

    Nope, didn’t worked

  • purevelvetdesign

    screenshot

  • Hello,

    Make sure the key you’re entering is specifically for GenerateBlocks Pro, not GP Premium or GenerateCloud. Is that the case?

  • purevelvetdesign

    Hi George,

    there is only on key for all in my acount.
    Isn’t it?

    Best,
    André

  • Hi.

    A GeneratePress One license covers everything under a single key, so that’s not the issue. Can you confirm that you are trying to activate a GeneratePress One license?

    This will need some investigation on our end. Could you share your server’s IP address in the private section? You can find it by visiting https://whatismyip.com from your server, or by asking your host.

  • purevelvetdesign

    Hi,

    I was trying to activate Generate Blocks Pro, that don’t work.

    Cap-2026-05-27-at-08-53-55

  • Hi André,

    Can you try replacing the previous Secondary API snippet with this one?

    add_filter( 'pre_http_request', function( $pre, $args, $url ) {
        // Check for GeneratePress URLs.
        if ( 'https://generatepress.com' === $url || 'https://generatepress.com/' === $url ) {
            return wp_remote_post(
                'https://api.generatepress.com',
                array(
                    'timeout'   => $args['timeout'],
                    'sslverify' => $args['sslverify'],
                    'body'      => $args['body'],
                )
            );
        }
        // Check for GenerateBlocks URLs.
        if ( 'https://generateblocks.com' === $url || 'https://generateblocks.com/' === $url ) {
            return wp_remote_post(
                'https://api.generateblocks.com',
                array(
                    'timeout'   => $args['timeout'],
                    'sslverify' => $args['sslverify'],
                    'body'      => $args['body'],
                )
            );
        }
        return $pre;
    }, 10, 3 );

    That should fix the GenerateBlocks Pro activation as well.

  • purevelvetdesign

    Hi Alvind,

    yes I implemented and activation for Generate Blocks Pro went fine now 🙂

    Thanks!

  • No problem, glad to hear that!

Viewing 15 posts - 1 through 15 (of 15 total)
  • You must be logged in to reply to this topic.