Expanded demos unable to import got error when importing agency demo content

expanded demos unable to import got error when importing agency demo content.

Hello There,

You could be having a curl time out during the import. We would highly to suggest that you use a child theme. This allows you to make code changes that won’t be overwritten when an X update is released.

After the child theme is set up, please add the following code 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 );
}

Tip: After your child theme is setup, please review how we recommend making template changes in Customization Best Practices.

Please let us know how it goes.

Still problem occur. when trying to upload agency demo content/expanded demo. using x-child theme and adding the code.

“Were sorry, the demo failed to finish importing.”

Hi @jonmar19,

In this case, please share us your admin credentials and FTP so we could check your setup closer.

Don’t forget to set it in a secure note.

Thanks.

Hi nico I did put a secure note. Please do check wp credentials and dashboard. Why i cannot upload expanded agency demos.

Thank you.

Hi there,

I checked the website. Please disable all plugins and only keep the Cornerstone and the Revolution Slider turned on.

Then please read the troubleshooting section of the article below and contact your hosting service provider to fix the issue:

Thank you.

What plugins is causing this? so i will not use it anymore. Deactivate all the plugins and i did the demo installed/upload.

Thank you so much.

Hi There,

To find out, you could try testing for a plugin conflict. You can do this by deactivating all third party plugins, and seeing if the problem remains. If it’s fixed, you’ll know a plugin caused the problem, and you can narrow down which one by reactivating them one at a time.

Let us know how it goes!

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