Cannot Validate X

Hi, I purchsed X theme some time back. Here are the facts.

The X theme was first installed and validated on a staging website with a different URL.
The X theme was then installed on the active URL, but not on the main page. The url it was installed on is www.netvid.net/wp/

I have changed the licence in the Themeco account to http://netvid.net/wp

Then I saw upgraded free to X Pro. I got another license.

Now, I cannot validate the license on X - using either of the license - both for X, and X-Pro. I then also unlocked the Xpro license.

I try deleting Cornerstone as well - but still no avail. There is no error. It’s just a white box when I enter the license and click enter. After sometime - the white box has a grey square inside - which cancels everything when I click on it.

Help would be appreciated.

Hi there,

I have checked your site and it seems that you have X installed and active. Please note that since you have upgraded your X license to a Pro license, you can only use the license to validate a site where Pro is installed and active, not X and vice versa.

So kindly install Pro on your site and activate it and validate the site using the license.

Hope this helps.

Thanks. I really don’t know how to install Pro. Where do I get it? All I can see is the paid version

Sorry - I just installd Pro - but when I use the updated license to activate it - it’s still white background, and then the grey rectangle. Same issue.

Hi @hkyantoyan,

In that case, would you mind providing your site’s URL, admin and FTP login credentials in a secure note? It looks like an internal server error and we need to directly check it before we could provide further advices :slight_smile:

Thanks!

I’ve added the secure note.

Hi @hkyantoyan,

The FTP credentials are incorrect, but I did see the error.

cURL error 28: Connection timed out after 10000 milliseconds

It could be your host security is blocking the connection between your site and our server (validation) and it caused the timeout. For the meantime, please contact your hosting provider about this. They should allow the connection to theme.co with port 80.

Then if not possible, please provide the correct FTP credentials and I’ll try to override it through code. https://codex.wordpress.org/Function_Reference/wp_remote_get

Thanks!

OK, see updated FTP here

Hi there,

How about the hosting manager login credentials? We could try its file manager.

No matter what I tried, it fails to connect to your FTP server.

Command:	PASS *********
Response:	530 Login authentication failed
Error:	Critical error: Could not connect to server

Thanks!

The path is a level higher -

/home/netvid/

Hi,

Please try adding the code below in your child theme’s functions.php file

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

Then try to validate again.

Thanks

It’s giving me an error

Your PHP code changes were rolled back due to an error on line 590 of file wp-content/plugins/royal-core/royal-core.php. Please fix and try saving again.

Call to undefined function royal_cat_classes()

Hi,

The error is coming from a third party plugin royal core.

Try deactivating that plugin, add the code I provided in your child theme’s functions.php file
then try validating again.

I tried logging in to FTP but the login provided is not working.

Thanks

I deactivated the Royal plugin, and copy/pased the code as you suggested.

Still same issue.

Please try this FTP,. It works. See secure notes.

Hi there,

Been troubleshooting this and I already overridden it through codes and I set the timeout to 360 seconds. But now, instead of 10000 milliseconds (10seconds), it displays cURL error 28: Connection timed out after 15001 milliseconds (15 seconds). Perhaps there is a limit in your hosting that can’t override? The 15 seconds by far the max allowed.

I also enabled debug logging and it’s not working. I recommend contacting your hosting provider to see if you can increase the timeout through their system.

Thanks!

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