Make WordPress Core

Opened 18 years ago

Closed 16 years ago

#8326 closed defect (bug) (fixed)

WordPress Importer Fails with timeout after 120 seconds

Reported by: JackWolfgang Owned by: duck_
Priority: normal Milestone: WordPress.org
Component: Import Version: 2.7
Severity: normal Keywords:
Cc: Focuses:

Description

PHP 5.2.6 on Apache 2.2.9 running on *nix with MySQL version 5.0.67-community

Running an import from WP 2.6 into 2.7 Beta 3 using the WRX file causes the following error:

Fatal error: Maximum execution time of 120 seconds exceeded in <snip of file path>/wp-includes/plugin.php on line 302

I tried this multiple times with two different WRX files, and it fails the same way each time. The file sizes are 600 kilobytes and 1,140 kilobytes.

Change History (15)

#1 @JackWolfgang
18 years ago

  • Milestone 2.8 → 2.7
  • Summary WRX Import Fails in 2.7 Beta 3 → Updated Milestone

I'm not sure why that was set to 2.8 for a milestone. It would seem this should be fixed for 2.7's release

#2 @JackWolfgang
18 years ago

  • Summary Updated Milestone → WRX Import Fails in 2.7 Beta 3

Forgive my ignorance....posting my first bug here, and I didn't mean to change the summary.

#3 @ninjaWR
18 years ago

  • Keywords 2nd-opinion reporter-feedback added

ENV 1: FreeBSD 7.0-RELEASE-p2 Apache/2.2.8 (FreeBSD) PHP/5.2.5 with Suhosin-Patch
ENV 2: Windows Vista SP1 Apache/2.2.8 (Win32) PHP/5.2.5

WXR: from 2.6.3, 1413.12 KB

WXR imports fine on both environments, although on ENV 1 it took a few seconds for it to get to the author selection page.

Tested on r9857

#4 @jacobsantos
18 years ago

This has a known fix.

#5 @jacobsantos
18 years ago

  • Keywords 2nd-opinion, reporter-feedback → 2nd-opinion reporter-feedback

#6 @jacobsantos
18 years ago

  • Summary WRX Import Fails in 2.7 Beta 3 → WordPress Importer Fails with timeout after 120 seconds

#7 @jacobsantos
18 years ago

Just needs to increase the timeout, if possible for the importer.

#8 follow-up: @jacobsantos
18 years ago

Or get a faster host.

#9 in reply to: ↑ 8 @vladimir_kolesnikov
18 years ago

Replying to jacobsantos:

Or get a faster host.

What about set_time_limit(0)?

#10 @westi
18 years ago

  • Keywords 2nd-opinion removed
  • Milestone 2.7 → 2.8
  • Owner set to westi
  • Status new → assigned

Those import files don't sound particularly large.
This sounds like a slow host issue.

Can you:

  • Try running the import on a local install of 2.7 RC1
  • Share the WXR file privately with us to test with - email me peter dot westwood at ftwr dot co dot uk
  • How many Posts/Comments/Pages does the file contain.

Moving to 2.8 for now as I don't think this is a issue for a large number of installs.

#11 @Denis-de-Bernardy
17 years ago

  • Milestone 2.8 → Future Release

Punting to future...

#12 @Denis-de-Bernardy
17 years ago

  • Milestone Future Release → 2.9

#13 @ryan
17 years ago

  • Milestone 2.9 → Future Release

#14 follow-up: @ocean90
16 years ago

  • Keywords reporter-feedback removed
  • Milestone Future Release → WordPress.org
  • Owner changed from westi to duck_
  • Status accepted → assigned

Should be fixed with ​http://plugins.trac.wordpress.org/changeset/322932.

duck_ will do some final testing.

Related: #11144, #8326

#15 in reply to: ↑ 14 @duck_
16 years ago

  • Resolution → fixed
  • Status assigned → closed

Replying to ocean90:

Should be fixed with ​http://plugins.trac.wordpress.org/changeset/322932.

duck_ will do some final testing.

Related: #11144, #8326

No time outs now for me.

Note: See TracTickets for help on using tickets.