I keep running into the following error:

An AJAX HTTP error occurred. HTTP Result Code: 500 Debugging information follows. Path: /mysite/batch?id=7&op=do StatusText: Internal Server Error ResponseText:

This is on a brand new install of drupal 7.23 on Bartik on WAMP. It is happening during the "uploading translations" process after I enable locale and l10n_update and I add the French language. It happens when it is reporting that it is uploading drupal-7.23.fr.po (13 of 45) at 29%.

This happens when only locale and l10n_update are enabled and when other contributed modules are also enabled. I have tried multiple attempts in different combinations but the result is always the same.

i'm really stuck here...

Comments

ThomS’s picture

Re-installed wampserver 2.2e. Installed Drupal and enabled locale and l10n_update. New error code:

An AJAX HTTP error occurred. HTTP Result Code: 200 Debugging information follows. Path: /p2020/batch?id=4&op=do StatusText: OK ResponseText: ( ! ) Fatal error: Maximum execution time of 240 seconds exceeded in C:\wamp\www\p2020\includes\database\database.inc on line 2168 Call Stack #TimeMemoryFunctionLocation 10.0005370376{main}( )..\index.php:0 20.352219858064menu_execute_active_handler( )..\index.php:21 30.380420831232call_user_func_array ( )..\menu.inc:517 40.380520831368system_batch_page( )..\menu.inc:517 50.380620831368_batch_page( )..\system.admin.inc:2364 60.380720831904_batch_do( )..\batch.inc:80 70.380720831904_batch_process( )..\batch.inc:161 80.393421383984call_user_func_array ( )..\batch.inc:284 90.393421384008_l10n_update_batch_import( )..\batch.inc:284 100.393521384056l10n_update_source_import( )..\l10n_update.batch.inc:175 110.393521384056l10n_update_import_file( )..\l10n_update.check.inc:336 120.393521384352_l10n_update_locale_import_po( )..\l10n_update.inc:86 130.403621384488_l10n_update_locale_import_read_po( )..\l10n_update.locale.inc:36 14240.347621438920_l10n_update_locale_import_one_string( )..\l10n_update.locale.inc:139 15240.347721439016_l10n_update_locale_import_one_string_db( )..\l10n_update.locale.inc:338 16240.349321441624InsertQuery_mysql->execute( )..\l10n_update.locale.inc:434 17240.349521442288DatabaseConnection->query( )..\query.inc:36 18240.349721444264DatabaseStatementBase->execute( )..\database.inc:680

Earlier Apache error logs pointed to the same database.inc line 680. I'm guessing but this seems to be a timeout problem.

can I just edit database.inc and increase the time?

ThomS’s picture

judging from the amount of posting on the subject, it would seem Drupal is actually incapable of importing a translation. https://drupal.org/node/569004

that would have been nice to know before i committed to using drupal to build a multilingual site.

I bet that if I had a million dollars to give away as a prize no one would be able to write the definitive procedure to get drupal to install another language, where all the strings were accessible to translate, without having to install 312 contributed modules, fix bugs and hack core in order to produce a truly bilingual site. I mean it's possible, i've seen them. But not without a lot of spit and bailing wire and that makes drupal very clunky and junky.

Really? Importing another language into Drupal is really that hard?

ThomS’s picture

The solution turns out to be changing the value of drupal_set_time_limit(); to 1800 in both /includes/locale.inc line 635 and /sites/all/modules/l10n_update/l10n_update.locale.inc line 27.

I still haven't tried this solution out on top-heavy i18n yet, but I hope this will be the end of this issue.

koosdonk’s picture

This solution proves working on a top translation on drupal-7.34.nl.po of size 656kB.

nellngun’s picture

Said too soon, was working for 5 sec but
THANKS

ThomS’s picture

The language French has been created and can now be used. More information is available on the help screen.
19 projects updated: admin_menu, crumbs, ctools, devel, drupal, entity, entity_translation, extlink, i18n, l10n_update, link, module_filter, panels, pathauto, readmorecontrol, token, transliteration, variable, views.
French translation strings added: 8875, updated: 0, deleted: 0.

So it works with a full compliment of modules as well.

thekraken22’s picture

thank you for this, excellent work! :)