[TYPO3-dev] large import in L10N Manager fails in TCEmain
Peter Russ
peter.russ at 4many.net
Wed Nov 19 15:50:52 CET 2008
--- Original Nachricht ---
Absender: Jigal van Hemert
Datum: 19.11.2008 13:04:
> Importing a large XML translation file in L10N Manager 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)?
>
> BTW Can't file a bug report for the time being, because of "the t3org
> issue". :-)
>
> Please let me know where this should be fixed and if possible how...
>
Can't do the fix this way because changing time limit e.a. will not be
possible on systems where safemode is activated :-(
As you will only import that once change time limit in php.ini for the
import, force-reload, import and change back.
Regs. Peter.
--
Fiat lux!
Docendo discimus.
_____________________________
4Many® Services
XING: http://www.xing.com/go/invuid/Peter_Russ
More information about the TYPO3-dev
mailing list