I experienced an issue with getting timed out when exporting a fairly large content type earlier today. Our hosting provider's php memory was set at 356M and we were still hitting the wall. We requested an increase, but before that, hacked up a script that called the content copy module w/o the overhead of theming and such.
Just posting in the event this info can serve someone at some point.
<?php
// $Id: cckexp.php,v 1.36 2010/02/08 07:42:55 icstars Exp $
/**
* @file
* handles exporting of a single content type and returns the text to the screen
*/
include_once './includes/bootstrap.inc';
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
module_load_include('inc', 'node', 'node.pages'); // new for Drupal 6
include_once( $_SERVER['DOCUMENT_ROOT']. base_path() . drupal_get_path('module', 'content') .'/includes/content.admin.inc');
include_once( $_SERVER['DOCUMENT_ROOT']. base_path() . drupal_get_path('module', 'node') .'/content_types.inc');
$type_name=;
$exportable_fields = array();
$groups = array();
if ($type_name) {
$type = content_types($type_name);
$exportable_fields = content_copy_fields($type_name);
if (module_exists('fieldgroup')) {
$groups = fieldgroup_groups($type_name);
}
}
$form = array();
$form['type_name'] = $type_name;
$form['weight'] = '35';
$form['parent'] = '';
foreach($exportable_fields as $field){
$form['fields'][$field] = $field;
}
$form['op'] = 'Export';
$form['submit'] = 'Export';
$form['step'] = '2';
$form['form_id'] = 'content_copy_export_form';
$filecontents = content_copy_export($form);
echo '' . $filecontents . '';
Comments
set php_value max_execution_time
You may try the following if you already have not done it.
Write "php_value max_execution_time" property with some large value (e.g. 10000) in the corresponding PHP x section of your .htaccess file.
Then restart your server.
duly noted. thanks
duly noted.
thanks