Demo Content Not Loading (taking forever)

I have been waiting for a few hours for demo content to load to the site.
I has been stuck in the same spot for a while.

This is the 4th time I’ve attempted to load the content.
I have tried disabling all plugins to see if that was the issue, but it didn’t help.

Please advise.

Hi There @mitchdong

Thanks for writing in! I’m sorry to hear that you’re having this issue. First of all, make sure that you have installed the latest version of X theme and Cornerstone plugin by checking the latest version numbers from here (https://theme.co/changelog/). You need to update, if you’re using an older versions by following our guide here (https://theme.co/apex/forum/t/setup-updating-your-themes-and-plugins/62). Also make sure that you’re using the latest version of WordPress as well.

If you’re fully updated, then you need to check your server configurations. Make sure that you’re running PHP v5.6.x or later to avoid any incompatibility issues. Also make sure that you have enabled PHP cURL extension on your server.

If you’re still having issues, setup a child theme and activate it by following our guide here (https://theme.co/apex/forum/t/setup-how-to-setup-child-themes/57), then add the following code into your child theme’s functions.php file and then try to re-generate your demo content and see if that helps.

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

If none of the above solutions worked, please provide us with your WordPress login credentials in a secure note to investigate your issue further.

Thanks!

I have done everything you suggested besides the child theme. If I plan to populate the site with demo content then upgrade it to X Pro, will that mess anything up? I see that there are separate downloads for each theme…

Let me know. I will include my login info in a separate message.

Hello @mitchdong,

I have logged in and check your site. ​We recommend that you increase your memory allocated to PHP. To increase it, please edit your wp-config.php file and insert these lines:

define( 'WP_MEMORY_LIMIT', '256M' );
define( 'WP_MAX_MEMORY_LIMIT', '512M' );

You can add it before the line
/*That's all, stop editing! Happy Blogging. */

And also, please increase your PHP time out to at least 300s. You only have 60s which could also be the reason why every time you import the demo, it will not continue because of getting timed out. To increase it, please check out this links:

We would loved to know if this has work for you. Thank you.

Thank you for the help. I tried editing the php file, but it wouldn’t allow me to modify it. I looked into it further and it appears that I need support to edit it. Are you able to edit it for me?

Thank you

Hi,

Sorry but we have no control over file permission.

You need to contact your hosting provider regarding that issue or better ask them to increase php memory limit for you.

Thanks

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