Unable to Validate X Theme - Grey Square Appears

Hello there,

I’m unable to validate my X Theme - I’ve tried entering the purchase code multiple times, but each time I get a blank column, followed by a grey square that does not load further. When I click on the square or refresh the page, I get the message that my copy of X is not validated.

Could you check it out for me please? Thank you!

Hi Joy,

Thanks for writing in! You need to first assign your site URLs to your Themeco license page and then only you should be able to validate your site.

Please refer to our product validation guide for more information (https://theme.co/apex/forum/t/setup-product-validation/55).

Hope that helps.

Hello @mldarshana, thank you so much for your reply, but I’m afraid that didn’t work; the grey square simply appeared again.

I looked at the guide, and I understand that the validation would be successful even even if I hadn’t registered my websites on the license page before - it’d merely prompt you to, after (-- that was what happened with my earlier two copies of X). Regardless, I registered my sites this time, and it didn’t work :frowning:

Could you have a look at it please? Thanks!

Hi Joy,

I have troubleshoot your issue again and now I see the following error when trying to validate your site.
cURL error 28: connect() timed out!

You need to make sure that your PHP cURL extension is enabled on your server and functioning properly. Please follow our troubleshooting guide here (https://theme.co/apex/forum/t/troubleshooting-validation-connection-issues/201).

If you have already enabled cURL extension, try adding the following code into your child theme’s functions.php file and validate your site again. I have already installed a child theme and activated it for you.

//adjustments to wp-includes/http.php timeout values to workaround slow server responses
add_filter('http_request_args', 'bal_http_request_args', 100, 1);
function bal_http_request_args($r) //called on line 237
	$r['timeout'] = 15;
	return $r;
add_action('http_api_curl', 'bal_http_api_curl', 100, 1);
function bal_http_api_curl($handle) //called on line 1315
	curl_setopt( $handle, CURLOPT_CONNECTTIMEOUT, 15 );
	curl_setopt( $handle, CURLOPT_TIMEOUT, 15 );

Let us know how it goes.

Hi there, thanks a lot for your help! My host managed to whitelist theme.co from the firewall, and subsequently validated the site. Please consider this issue resolved. Cheers.

Glad your host fixed the issue.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.