Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2006-05-21 12:52:22
- pera
- New Member
- Registered: 2005-03-09
- Posts: 5
Importing from WordPress Problem
I get this error after import :
Fatal error: Maximum execution time of 330 seconds exceeded in http://www.mysite.com/textpattern/textpattern/index.php
many posts are imported but still not all :(
Offline
#2 2006-05-21 22:41:08
- zem
- Developer Emeritus
- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: Importing from WordPress Problem
Ask your hosting company about increasing the maximum execution time for PHP scripts.
Alex
Offline
Re: Importing from WordPress Problem
I am not sure why, but it seems we are setting a maximum execution time of ~330seconds in the import script. Try editing it manually for now in
textpattern/include/txp_import.php
around line 161:
ini_set('max_execution_time', 300 + intval($ini_time) );
Increase the 300 (seconds) to some higher value. Be aware that it is posible that other timeouts (by the webserver etc.) could come into play as well.
Offline
#4 2006-05-24 11:18:34
- pera
- New Member
- Registered: 2005-03-09
- Posts: 5
Re: Importing from WordPress Problem
^ That fixed it :)
I guess the problem was that there was almost 2000 posts to import so 300 was to short.
Offline
Pages: 1