export of records fails if we have large number of records.
We have around 50,000 Contacts. When we are trying to export all of them export fails with 500 Internal server error.
Increasing the memory limit to 1GB solves the issue.
Welcome to Vtiger Community. To gain access for account, please contact [ community @ vtiger.com ]
We have around 50,000 Contacts. When we are trying to export all of them export fails with 500 Internal server error.
Increasing the memory limit to 1GB solves the issue.
Following code changes to modules/Vtiger/actions/ExportData.php, Line 175
$outstream = fopen("php://output", "w");
foreach($entries as $row)
{
fputcsv($outstream, $row);
}
fclose($outstream);
instead of
$header = implode("\", \"", $headers);
$header = "\"" .$header;
$header .= "\"\r\n";
echo $header;
foreach($entries as $row) {
$line = implode("\",\"",$row);
$line = "\"" .$line;
$line .= "\"\r\n";
echo $line;
}
should solve the issue.
This was taken care with #106 (closed)
Status changed to closed
Milestone changed to 6.5.0
Copyright 2023 Vtiger. All rights reserved.