[TYPO3-l10nmgr] Import large translation fails on timeout

Andreas Otto andreas at otto-hanika.de
Wed Nov 19 18:25:08 CET 2008


Hi Jigal,

Jigal van Hemert | alterNET internet BV schrieb:
> Importing a large XML translation file failed because of exceeding the
> maximum execution time limit.

Yes, that can happen.

> PHP Fatal error: Maximum execution time of 30 seconds exceeded in
> /<path_to_typo3>/typo3_src-4.1.6/t3lib/class.t3lib_tcemain.php on line
> 2489, referer:
> http://<domain.ext>/typo3conf/ext/l10nmgr/cm1/index.php?id=1&srcPID=0
> 
> I suspect that the problem is in the calls:
> 
> tx_l10nmgr_l10nBaseService::saveTranslation() ->
> tx_l10nmgr_l10nBaseService::_submitContentAndGetFlexFormDiff() ->
> t3lib_TCEmain::process_datamap() -> t3lib_TCEmain::process_cmdmap() ->
> t3lib_TCEmain::localize() -> t3lib_TCEmain::copyRecord()
> 
> In t3lib/class.t3lib_tcemain.php in the process_datamap() function on
> line 630 foreach loops through each element in the table. add
>     set_time_limit(ini_get('max_execution_time') != '' ?
> ini_get('max_execution_time') : 30);
> to inner loop to allow processing of large bulks (large imports)?

That might not always work, depending on your server setup.

> Can't file a bug report for the time being, because of "the t3org issue".
> 
> My only concern with this issue is that the core team might point to
> l10nmgr for providing too much data and not setting a suitable timeout
> value and l10nmgr pointing to the core for not allowing the processing
> of large datasets :-/

No, that will not happen.
We will try find a proper solution for that - but not for the next release.


Regards,
Andreas

-- 

Amazon wishlist: <http://www.amazon.de/gp/registry/14PIOKAJCIH95>


More information about the TYPO3-project-l10nmgr mailing list