Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-03-28 09:10:03

Michael
Member
From: Vienna/Austria
Registered: 2004-03-25
Posts: 147
Website

Importing from Wordpress 2.1.2 times out!

Hi! For about a week I am trying to get my articles, which currently are on WP 2.1.2, imported into the current publicly downloadable version of TXP. However, when I use the Admin>Import-thingy, I get this error:

Fatal error: Maximum execution time of 60 seconds exceeded in /home/www/web273/html/relentlessboredom.org/textpattern/lib/classTextile.php on line 511

How can I get over this and solve this problem? (Or why is there still now option to use the WP-export-file?)

Michael

Offline

#2 2007-03-28 11:22:49

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: Importing from Wordpress 2.1.2 times out!

How big is the WP-export file; how many articles does it contain?
You can try increasing the maximum execution time for PHP scripts (if your webhost is willing to do this).

Offline

#3 2007-03-28 12:17:02

Michael
Member
From: Vienna/Austria
Registered: 2004-03-25
Posts: 147
Website

Re: Importing from Wordpress 2.1.2 times out!

It’s around 320 articles, the WP-export-file is about 1.2 MB.

I can try the execution time-proposition, if you tell me whether I have to get into the TXP code or whether it is my host’s thing…

Thanks,
M.

Offline

#4 2007-03-28 13:14:00

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: Importing from Wordpress 2.1.2 times out!

It’s a limitation that webhosts usually set (in php.ini) to avoid scripts from spinning out of control and running endlessly). I don’t think it’s set within TXP (though I can’t tell for sure without looking at the code)

Offline

#5 2007-03-29 01:46:11

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: Importing from Wordpress 2.1.2 times out!

New FAQ.


Alex

Offline

#6 2007-03-29 02:58:11

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

Re: Importing from Wordpress 2.1.2 times out!

Check with your host if you can use custom php.ini files. If so, enter the following in php.ini:

max_execution_time = 60; //increase if needed

If not, enter php_value max_execution_time 60 in your .htaccess file. Or, setup a local server (MAMP or Uniform Server for 5min setup) and import your database. You might need to increase the execution time too. Then export the TXP database from phpMyAdmin and import it using phpMyAdmin on the live site.

Last edited by jm (2007-03-29 02:59:08)

Offline

#7 2007-04-18 21:56:54

Michael
Member
From: Vienna/Austria
Registered: 2004-03-25
Posts: 147
Website

Re: Importing from Wordpress 2.1.2 times out!

Just a small update on this: My host raised the time to 300, after that I ran into the error again. However, my article were all imported, but it was a bit strange.

When the error was shown, I logged into TXP and looked at my article list and saw that there were around 100 articles out of 320. I thought that if 100 articles are loaded and I delete these 100 articles from my WP-install, I could import the next 100, then the next 100 and finally the last 20. I clicked the “articles” tab once again to get the exact number of articles already imported, though and suddenly I saw that there were nearly 200 all of a sudden!

I waited for another two minutes – 280.

Two minutes more: 320!

TXP got all articles, although I got this error.

Just some information to you!

Offline

Board footer

Powered by FluxBB