Are you a GenerateCustomer?

Do you have an active GP Premium or GenerateBlocks Pro license key?

Create a GenerateSupport account for GeneratePress and GenerateBlocks support in one dedicated place.

Create an account
Already have a GenerateSupport account? Login

Just browsing?

Feel free to browse the forums. Support for our free versions is provided on WordPress.org (GeneratePress, GenerateBlocks).

Want to become a premium user? Learn more below.

403 error by GB Block Pro

  • Hi GP Team,

    I have GP one license. But, when I am working function.php file, came out 403 error. After deactivated GP pro, then no more error. When I checked GP Block Pro, showing upgrade. I used Pro-licensed at GP. I cannot find where to upgrade it in GP Block Pro.

    Thanks

  • Hi there,

    When you say GP block Pro, do you mean Genreateblocks Pro? And it’s not showing the new version available for the plugin?

    If so, can you try adding this PHP code to see if it helps with the issue?

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

    As for the functions.php issue, I’m not sure I understand, can you explain some more?

  • Hi Ying,
    Why need to add code at functions.php? It should have built-in or connect through GP one. I want to minimise coding.

    Are there any other way?

    Thanks

  • Hi there,

    Does this 403 error appear when you’re trying to activate the GB Pro license under GenerateBlocks > Settings?

  • – Nope. When I working function.php file, 403 error came out.After deactivated GB Pro ,it has no more error and site is back to normal.
    – GB setting under WP admin area, found upgrade. When I click login to GP one page. What to do to continue it?

  • I have implemented the code. it works. But, it should not be the case.

  • You mean the code here?

    The snippet activates the Secondary API, which serves as a backup proxy if your server can’t communicate with the primary API for license activation. Its sole purpose is to bypass any issues with the primary server.

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