I can’t validate Generate Blocks Pro License

  • An error occurred, please try again.

    I just installed Generate Block Pro on an existing site with GeneratePress/ GP Premium.
    I have the new comprehensive license. My pre-existing Generate Blocks pro license is still active.
    I have GB 2.60 installed. Everything else is current.
    I can not enter a valide registration key. I entered both that I have and neither work.

    All I get is this crytpic message (p.s. I have tried again several times.)
    “An error occurred, please try again”

    How to proceed?

  • Hi there,

    Can you try adding the code below, and retry the license activation?

    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 );

    Adding PHP: https://docs.generatepress.com/article/adding-php/

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