Title: [Plugin: CP Import] Tips and Tricks: Avoiding script time-out
Last modified: August 19, 2016

---

# [Plugin: CP Import] Tips and Tricks: Avoiding script time-out

 *  [John Luetke](https://wordpress.org/support/users/johnl1479/)
 * (@johnl1479)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/plugin-cp-import-tips-and-tricks-avoiding-script-time-out/)
 * CP Import will time-out (suddenly stop importing) when it reaches PHP’s `max_execution_time`,
   but has not finished. There are 2 ways to fix this:
    1. If you have access to edit your php.ini, it is recommended that you increase
       the value of `max_execution_time` to `900` (15 minutes).
    2. If not, you will need to split your archive into chunks smaller than the initial
       suggestion of 1000 articles.
 * The cause of CP Import timing out is related to the number of media attachments
   that you have associated with each article in the batch you are trying to import.
   Articles with large numbers of media attachments take longer to import, and thus
   the `max_execution_time` limit is reached before all the article in the current
   batch can be imported.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [John Luetke](https://wordpress.org/support/users/johnl1479/)
 * (@johnl1479)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/plugin-cp-import-tips-and-tricks-avoiding-script-time-out/#post-1154870)
 * Another cause for CP Import to suddenly stop importing is that PHP `memory_limit`
   was reached. While this is a highly unlikely case, and far less probable than
   the `max_execution_time` limit being reached, it mat occur.
 *  [nphoffman](https://wordpress.org/support/users/nphoffman/)
 * (@nphoffman)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/plugin-cp-import-tips-and-tricks-avoiding-script-time-out/#post-1155044)
 * You may need to tweak your web server’s config in addition to increasing the “
   max_execution_time” setting within php.ini .
 * I just imported a blog with >1500 posts, and tons of images, into another blog.
   I wrote about how I [solved the timeout problem](http://nick-hoffman.blogspot.com/2009/09/importing-large-wordpress-blogs.html).
 * Cheers,
    Nick SoftCom Inc. [http://softcom.com](http://softcom.com)

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘[Plugin: CP Import] Tips and Tricks: Avoiding script time-out’ is closed
to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [nphoffman](https://wordpress.org/support/users/nphoffman/)
 * Last activity: [16 years, 9 months ago](https://wordpress.org/support/topic/plugin-cp-import-tips-and-tricks-avoiding-script-time-out/#post-1155044)
 * Status: not a support question

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
