Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The exact error message is:
Base table or view not found: 1146 Table 'cache_l10n_update' doesn't exist: TRUNCATE {cache_l10n_update} ; Array() in cache_clear_all() (line 167 of includes/cache.inc).
I need to clear my registry (using drush rr) to fix some modules that have moved around and that prevent properly running updates. However at the same time, i cannot use drush rr, because it attempts to clear the cache for a table that does not exist yet (because updates for l10n_update module have not been run yet). A vicious cycle!
I found that adding the following lines around the cache clear calls fixed things. Patch to follow.
if (db_table_exists('cache_l10n_update')) {
cache_clear_all('*', 'cache_l10n_update', TRUE);
}
Comment | File | Size | Author |
---|---|---|---|
#1 | l10n_update-check-cache-table-before-flush-2449775.patch | 569 bytes | jwilson3 |
Comments
Comment #1
jwilson3Comment #2
Sutharsan CreditAttribution: Sutharsan commentedThanks for reporting, but the cache table has been removed in #2418287: cache_l10n_update table is not used. The table was not in use and the cache clear was removed some time ago. There is nothing left to fix anymore.