Please insert the following line in "_autolocale_import_po_files" function in autolocale.install file.

set_time_limit(0);

This will remove the timeout and lets large imports to succeed.

Please release a version!

Thanks

Comments

hass’s picture

Never timeout sounds no good choice... maybe we should higher the 4 minutes timeout limit - to 8 minutes or 10minutes - but not unlimited.

What language are you trying to import? i saw a timeout myself with the one big RU.po file on IIS6... with no extra modules installed. But this was without autolocale module...

gábor hojtsy’s picture

Priority: Critical » Normal
Status: Active » Fixed

This might sidestep the issue, but does not solve the timeout. Most shared hosts will not allow you to run that set_time_limit() call, so they will not run longer. There is a solution for Drupal 6 in the work, by running multiple HTTP requests in batch processing, so smaller PO files are imported in steps.

Anyway, I have added a time limit setting now, with a silenced error, so hosts not allowing this will not report problems.

A (development snapshot) release is on the way soon.

Anonymous’s picture

Status: Fixed » Closed (fixed)