Hi,

I just updated the module on an old site.
I ran into that issue during the updb:

Drush command terminated abnormally due to an unrecoverable error. [error]
Error: Call to undefined function l10n_update_ensure_htaccess() in l10n_update_update_7010() (line 351 of (...)/l10n_update/l10n_update.install).

I fixed it by adding

module_load_include('module', 'l10n_update');

inside l10n_update_update_7010()

I'll try to provide a patch asap.

Sébastien

Comments

SebR-Smile created an issue. See original summary.

tamarpe’s picture

Version: 7.x-1.2 » 7.x-2.x-dev
Status: Active » Needs review
StatusFileSize
new379 bytes
new379 bytes

I had it as well with the 7.x-2.3 version.

Thanks for the input! I created the patches - update-db-failes-3088241-1.patch from 7.x-2.x branch and update-db-failes-1-3088241-1.patch from 7.x-1.x branch.

seb_r’s picture

Thanks tamarpe!

szeidler’s picture

Priority: Normal » Major

The patch was also needed for me, to being able to run the database updates.

  • tamarpe authored 80e6dde on 7.x-2.x
    Issue #3088241 by tamarpe: update l10n_update_update_7010 fails
    
sutharsan’s picture

Status: Needs review » Fixed

Thanks all. Now committed.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

pfrenssen’s picture

The patch for 7.x-2.x has been applied, but the problem also exists for 7.x-1.x. This is the second patch. Would it be possible to commit this as well?

sutharsan’s picture

I have now committed to 7.x-1.x.

Aldu_boy’s picture

Drupal 7.69 upgarded from 6.38
The issue is still there with the latest version of
Localization update 7.x-2.3

fixed by adding
module_load_include('module', 'l10n_update');

to

function l10n_update_update_7210() {
l10n_update_ensure_htaccess();
}

sutharsan’s picture

@Aldu_boy, This has been fixed in the development release for quite some time. Sorry for the inconvenience, I created a 7.x-2.4 release now.