Problem/Motivation

Unable to update database due to schema error - locale

Steps to reproduce

Update Drupal 8.8 (Multilingual modules not enabled) to Drupal 8.9.16
Update - OK
Enable Multilingual modules
WSOD
Go back to module listing - Multilingual modules enabled and usable
Update - error

Missing updates for: Interface Translation
The installed version of the Interface Translation module is too old to update. Update to a version prior to 9.0.0 first (missing updates: locale_post_update_clear_cache_for_old_translations).

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

Comments

cruze72 created an issue. See original summary.

cilefen’s picture

What was the logged exception when the WSOD occurred?

cruze72’s picture

Insufficient memory whilst installing the modules i believe. I increased the ini_set memory limit, page refreshed and the modules installed.

It looks like the system complained about locales_source already exisiting.

Drupal\Core\Database\SchemaObjectExistsException: Table 'locales_source' already exists. i Drupal\Core\Database\Schema->createTable() (rad 614 av /home/clinic21/public_html/core/lib/Drupal/Core/Database/Schema.php).

I am guessing the install failed mid install due to lack of memory.

That said how do i get rid of that error message and run an update?

Version: 8.9.x-dev » 9.2.x-dev

Drupal 8 is end-of-life as of November 17, 2021. There will not be further changes made to Drupal 8. Bugfixes are now made to the 9.3.x and higher branches only. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.2.x-dev » 9.3.x-dev

Version: 9.3.x-dev » 9.4.x-dev

Drupal 9.3.15 was released on June 1st, 2022 and is the final full bugfix release for the Drupal 9.3.x series. Drupal 9.3.x will not receive any further development aside from security fixes. Drupal 9 bug reports should be targeted for the 9.4.x-dev branch from now on, and new development or disruptive changes should be targeted for the 9.5.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

quietone’s picture

Category: Bug report » Support request
Priority: Major » Normal
Status: Active » Postponed (maintainer needs more info)
Issue tags: +Bug Smash Initiative

@cruze72, Did you resolve this problem? If so what did you do?

Thanks

cilefen’s picture

Status: Postponed (maintainer needs more info) » Closed (outdated)
norman.lol’s picture

For me the problem was I did not drush sql:drop before drush sql:sync the new database down. 🤦🏻‍♂️