1. Anonymous User
  2. RO CSVI
  3. Monday, 25 August 2025
  4.  Subscribe via email
Some of my export templates were quitting after 300 seconds, so I set my servers:

php's max_execution_time to 3000
post_max_size 256M
memory_limit 768M

but I still get this error at 300 seconds:

An error has occurred during the export. Below the information received from the server.
Status error: 500
Status message: error
Request Timeout

This request takes too long to process, it is timed out by the server. If it should not be timed out, please contact administrator of this web site to increase 'Connection Timeout'.



I have a lot of orders so any of the order related export templates had this issue of quitting after 300 seconds. All the other export templates completed the export relatively quick.



I did a test to see if it does timesout in a different file on the same site. I put a test.php file in the base directory and ran it, and it lasted at least 525 seconds:
<?php
$executionStartTime = microtime(true);
echo date('h:i:s')."\n" ;

if (ob_get_level() == 0) ob_start();
for ($i = 0; $i<105; $i++){
echo "<br> ".$i*5;
echo str_pad('',4096)."\n";
ob_flush();
flush();
sleep(5);
}

echo "Done.";

ob_end_flush();

echo date('h:i:s');

$executionEndTime = microtime(true);
$seconds = $executionEndTime - $executionStartTime;
echo "This script took $seconds to execute.";
?>
I assume it would keep executing until 3000 seconds like I set my server to.


I read this document:
https://rolandd.com/documentation/ro-csvi/manage-timeouts
but it seems like that is more geared towards import and not exporting

Went in to the template itself and I changed the template limits to :

Override System Limits? Yes
Maximum Execution Time: 3000
Maximum Amount Of Memory: 768M

But it still didn't work.

For reference, my joomla sql database is 23MB zipped and 135MB extracted.
Attachments (1)
Accepted Answer Pending Moderation
Hello,
I read this document:
https://rolandd.com/documentation/ro-csvi/manage-timeouts
but it seems like that is more geared towards import and not exporting

For export template we have an option to set From and To record on File tab. If you have too many records you can set these fields and do partial exports.


I have a lot of orders so any of the order related export templates had this issue of quitting after 300 seconds. All the other export templates completed the export relatively quick.

Try setting export as cron job and see how that goes. Read the document Setting up a cron job in RO CSVI to set export as cron job. See if that makes any difference.
Kind regards,

Tharuna

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. 1 day ago
  2. RO CSVI
  3. # 1
Accepted Answer Pending Moderation
Hi,

Some of my export templates were quitting after 300 seconds, so I set my servers:

php's max_execution_time to 3000
post_max_size 256M
memory_limit 768M

but I still get this error at 300 seconds:
Check if these changes have taken effect by going to System Information in Joomla and then the PHP page.

Went in to the template itself and I changed the template limits to :
This only works if your server is configured to allow these values to be changed during runtime, which is often only the case on dedicated servers. Shared hosting never allows this.

I read this document:
https://rolandd.com/documentation/ro-csvi/manage-timeouts
but it seems like that is more geared towards import and not exporting
That is correct because on import we can work around time limits by restarting the process, for export that is a lot more complicated because the output to your computer is happening and if we refresh the page, the output to your computer stops. This is why Tharuna suggested to run it via CLI or a cron job as this usually never has a timeout as it does not run via the browser.

The only thing I wonder is if the 500 error is due to the timeout or due to another issue which in turn causes the timeout.

I have a lot of orders so any of the order related export templates had this issue of quitting after 300 seconds. All the other export templates completed the export relatively quick.
If you set your export template to export only 10 orders for example, does that export finish?
Kind regards,

RolandD

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. 1 day ago
  2. RO CSVI
  3. # 2
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!