An Envato demo import that fails or gets stuck usually means PHP ran out of time or memory while downloading the demo’s images, or the theme author’s demo server didn’t respond. To fix it, raise your PHP limits, clear the half-finished import, read the debug log, and if the theme’s wizard still fails, import the demo files by hand. You’ll end with the demo content on your site and no duplicate menus.
Quick answer: Give PHP more memory and time, remove the partial import, then retry. If the one-click importer still fails, import the demo files manually with standard WordPress tools.
- Raise PHP limits:
memory_limit512M,max_execution_time300,max_input_vars5000. - On a fresh site, reset the database to remove the partial import.
- Turn on
WP_DEBUG_LOG, retry the import and readwp-content/debug.log. - If it still fails, import
content.xml, widgets and Customizer settings manually. - Regenerate thumbnails once the content is in.
In this guide
- Before You Start
- Why Envato Theme Demo Imports Get Stuck
- Step 1: Raise Your PHP Limits
- Step 2: Clear the Failed, Partial Import
- Step 3: Read the Debug Log for the Exact Failure
- Step 4: Import the Demo Files Manually
- Step 5: Regenerate Missing Thumbnails
- If It Still Doesn’t Work
- Frequently Asked Questions
- Next Steps
Typical symptoms are an AJAX error, a 504 Gateway Timeout, a spinner that never stops, or a homepage with broken styling and four copies of every menu.

Before You Start
- Check first: open Pages in your dashboard. If the demo pages are already there, the import may have finished and only image processing failed; skip to Step 5.
- Access: a WordPress administrator account and File Manager or FTP access. The WP-CLI commands need SSH.
- Time: 20–60 minutes, depending on the demo’s size.
- Warning: Step 2 deletes every post, page, user and setting. Only use it on a new build with nothing worth keeping, and back up the database first. On a live site, work on a staging copy instead; see how to set up a WordPress staging site.
Why Envato Theme Demo Imports Get Stuck
Theme authors on Envato often pack dozens of pages, hundreds of stock photos, Customizer presets, Slider Revolution sliders and full WooCommerce catalogs into one demo. When you start the importer, a single PHP process tries to download all those files, insert hundreds of database rows, and create up to ten resized copies of every image.
That workload usually fails for one of four reasons:
- PHP execution timeout: the importer runs past your server’s
max_execution_time(often only 30 seconds by default) while downloading large images. - PHP memory exhaustion: parsing a 30MB+ XML file pushes the PHP process past your hosting plan’s memory limit.
- Low max_input_vars: large Customizer settings and mega menus get cut off because PHP’s default
max_input_varslimit is 1000. - Blocked or slow downloads: your host’s firewall blocks the outgoing requests that fetch images from the author’s demo server, or that server is simply slow to respond.
If the theme itself isn’t installed and active yet, follow the guide to install an Envato WordPress theme and import demo content before changing server settings.
Step 1: Raise Your PHP Limits
Most demo imports freeze because the server stops the PHP process partway through. More execution time and memory is usually enough to let the importer finish.
Connect with your host’s File Manager, FTP or SSH, open your WordPress root folder, and apply one of the options below. On Hostinger, you can also set these values in hPanel; see how to increase the PHP memory limit in WordPress on Hostinger.
Option A: Edit .htaccess (Apache or LiteSpeed)
Open your root .htaccess file and place these lines right before the # BEGIN WordPress block:
php_value upload_max_filesize 128M
php_value post_max_size 128M
php_value memory_limit 512M
php_value max_execution_time 300
php_value max_input_time 300
php_value max_input_vars 5000This gives PHP five minutes (300 seconds) per request and 512MB of memory for large XML files. If the site returns a 500 error right after you save, your host runs PHP through PHP-FPM or CGI, where php_value isn’t allowed. Remove the lines and use Option B.
Option B: Edit php.ini or .user.ini
If your site runs on Nginx, or your host ignores PHP settings in .htaccess, add these values to the server’s php.ini (on a VPS) or to a .user.ini file in the WordPress root folder:
upload_max_filesize = 128M
post_max_size = 128M
memory_limit = 512M
max_execution_time = 300
max_input_time = 300
max_input_vars = 5000The PHP runtime configuration documentation explains each setting.
Option C: Define Limits in wp-config.php
WordPress can also ask PHP for more memory itself, as long as the host allows it. Open wp-config.php and paste this right above the /* That's all, stop editing! Happy publishing. */ line:
define('WP_MEMORY_LIMIT', '512M');
define('WP_MAX_MEMORY_LIMIT', '512M');
set_time_limit(300);The WordPress wp-config.php documentation covers these constants.
Whichever option you use, check the result under Tools > Site Health > Info > Server. The PHP memory limit, max execution time and max input variables rows should show the new values.
Step 2: Clear the Failed, Partial Import
When an import crashes halfway, your database is left half-filled. Running the importer again straight away creates duplicate menus (“Primary Menu 1”, “Primary Menu 2”), leftover categories and duplicate pages.
If this is a fresh build with no real content yet, reset the database to a clean state before trying again.
With SSH and WP-CLI, run these commands from your site’s root folder. The first deletes all WordPress tables; the second creates a fresh install and asks you for a new admin password. This removes every post, page, user and setting, so only do it on a build with nothing worth keeping:
wp db clean --yes
wp core install --url="https://example.com" --title="My Site" --admin_user="admin" --admin_email="dev@example.com" --prompt=admin_passwordReplace the URL, title, username and email with your own. Each command ends with a WP-CLI “Success” line. Then log in with the new admin details and re-activate your theme and its required plugins. Images from the failed attempt stay in wp-content/uploads; delete that folder’s contents too if you want a completely clean start.
If you prefer the dashboard, install the WP Reset plugin, go to Tools → WP Reset, type reset into the confirmation box, and click the reset button. This resets the database without deleting your uploaded theme or plugin files.
Step 3: Read the Debug Log for the Exact Failure
If the import still stalls after raising the limits, let WordPress record the exact error. Add these lines to wp-config.php, above the “stop editing” line:
define('WP_DEBUG', true);
define('WP_DEBUG_LOG', true);
define('WP_DEBUG_DISPLAY', false);
@ini_set('display_errors', 0);Run the demo import again. As soon as it fails or hangs, open wp-content/debug.log in File Manager, or show its last lines from your site’s root folder over SSH:
tail -n 50 wp-content/debug.logLook for these common errors:
cURL error 28: Operation timed out after 30000 milliseconds: the author’s demo server is slow, down, or blocking requests from your host’s IP. Try again later, ask your host whether outgoing requests are blocked, or use the manual import in Step 4 without attachments.Allowed memory size of 268435456 bytes exhausted: PHP is still limited to 256MB. Either your change hasn’t taken effect, or your host enforces a hard cap that config files can’t override; check Site Health and ask your host.Cannot redeclare function...: a bundled demo plugin conflicts with another active plugin. Deactivate plugins the theme doesn’t require and retry.
Set WP_DEBUG back to false once the import works.
Step 4: Import the Demo Files Manually
When a theme’s one-click importer keeps failing, skip it and import the raw demo files yourself. Most ThemeForest packages include them in folders named demo-data or inc/importer/data, or as a separate download in your Envato account.
Extract your theme package and look for these four files:
content.xmlordemo-content.xml(pages, posts, menus and custom post types)widgets.wieorwidgets.json(sidebar and footer widgets)customizer.dat(theme settings, colours and typography)revslider.zip(Slider Revolution templates)
1. Import Content with the WordPress Importer
Go to Tools → Import in your dashboard. Under WordPress, click Install Now, then Run Importer.
Upload the content.xml file. On the author screen, assign the content to your admin user. If your server struggles with image timeouts, uncheck “Download and import file attachments”. This imports the pages, posts and menus without downloading the demo images. When it finishes, the demo pages appear under Pages.
2. Import Widgets with Widget Importer & Exporter
Install the Widget Importer & Exporter plugin (or use the One Click Demo Import plugin if your theme is built for it). Go to Tools → Widget Importer & Exporter, select your .wie or .json file, and click Import Widgets.
3. Import Customizer Settings
Install the Customizer Export/Import plugin. Go to Appearance → Customize → Export/Import, choose your theme’s customizer.dat file, check “Download and import image files”, and run the import.
4. Import Slider Revolution Templates
If the demo includes Slider Revolution, open the Slider Revolution menu in your dashboard, click Manual Import, and select the slider .zip files from your theme’s download folder.
Step 5: Regenerate Missing Thumbnails
If the importer stopped during image processing, grid layouts and featured images can look stretched or blank. Regenerating thumbnails fixes images that were downloaded but never resized. It can’t recreate images you skipped during a manual import.
With WP-CLI, run this from your site’s root folder to rebuild every registered image size:
wp media regenerate --yesWP-CLI reports progress for each image and ends with a “Success” line. From the dashboard instead, install Regenerate Thumbnails by Alex Mills, open Tools → Regenerate Thumbnails, and click Regenerate Thumbnails For All Attachments.
If It Still Doesn’t Work
- The import finishes but pages look unstyled: the page builder’s CSS wasn’t generated. For Elementor themes, regenerate Elementor’s files under Elementor > Tools; if the editor hangs, see how to fix Elementor stuck on the loading screen.
- Menus or pages appear twice: the importer ran more than once. Reset as in Step 2, or delete the duplicates under Pages and Appearance → Menus.
- The demo files aren’t in the package: check the theme’s documentation or support page; some authors only host them on their own server.
Frequently Asked Questions
Why does my demo import stop at 99%?
Usually because PHP timed out during the final image processing. By then the database entries and pages are already created. Check your Pages list: if the demo pages are there, the import actually finished, and you only need to regenerate thumbnails as in Step 5.
Will re-importing a demo delete my current blog posts?
No, but it will duplicate content. Standard demo importers don’t delete anything; they add the demo data again on top, which creates duplicate posts, pages and menus. Reset the database to a clean state before another full attempt, and only on a site with no content you need.
What max_input_vars do ThemeForest themes need?
At least 3000. Multi-purpose themes with large mega-menu builders or big theme options panels often need max_input_vars = 5000 to avoid cutting off saved settings. Check the value under Tools > Site Health > Info > Server after changing it.
Can I import demo content on localhost without an internet connection?
Partly. Layout files, page content and menu structures import offline, but remote images fail, because the importer can’t reach the author’s server. Import with attachments switched off, then add your own images later.
Next Steps
Once the demo content is in place, assign your menus under Appearance → Menus and set your homepage under Settings → Reading. Turn off debug logging, then delete demo pages you won’t use. The post-import fixes in the Envato theme install guide cover the homepage, menus and Elementor styling in detail.

