[TYPO3-l10nmgr] Import large translation fails on timeout

Jigal van Hemert | alterNET internet BV jigal at alternet.nl
Wed Nov 19 11:18:39 CET 2008


Importing a large XML translation file failed because of exceeding the
maximum execution time limit.

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)?

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 :-/

-- 

kind regards,
Jigal van Hemert
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.netfielders.de/pipermail/typo3-project-l10nmgr/attachments/20081119/b6477855/attachment.htm 


More information about the TYPO3-project-l10nmgr mailing list