import from movable type can timeout and doesn't obey php max_execution_time
|Reported by:||stevecrozz||Owned by:|
|Severity:||normal||Keywords:||movable type, import, has-patch, needs-testing|
When importing entries with large numbers of comments, the import script can timeout. Raising php's max_execution_time in php.ini doesn't help because the execution time is reset to a hardcoded 30 seconds in mt.php ironically to keep the script from timing out. In some cases it has the opposite effect and doesn't allow for larger timeouts to be set without modifying the import script.
I'm attaching a patch that works for me. This patch simply checks to see if max_execution_time has been set and uses its value (if set) to provide to set_time_limit(), otherwise it uses the same hardcoded 30 second limit.
Change History (10)
- Milestone changed from Unassigned to 3.0
- Resolution invalid deleted
- Status changed from closed to reopened