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.
Trying to install the Open Outreach distro using the pt-br translation i've got the following error in the instalation process at the Translation configuration step.
SQLSTATE[42S02]: Base table or view not found: 1146 Table 'outreach.languages' doesn't exist
Comment | File | Size | Author |
---|---|---|---|
install_error_pt-br.png | 37.05 KB | revagomes |
Comments
Comment #1
peerv CreditAttribution: peerv commentedHad the same issue installing the Dutch language file.
Comment #2
rosemarymann CreditAttribution: rosemarymann commentedSimilar issue on Open Atrium: #2429875: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'intranet.languages' doesn't exist.
Comment #3
nedjoI'm looking for the source of this bug. Here's where I'm at so far.
When Drupal is installing, the order of install tasks includes:
install_select_locale()
, the screen to select the installation language;install_load_profile()
, where information about he install profile is loaded, including dependencies (which modules to enable).In
install_load_profile()
, the 'locale' module is conditionally enabled depending on the second argument, which is supposed to be the language code as selected in the previous screen.But that's not happening, so when the
install_import_locales()
("Set up translations") screen is reached, the required Locale module is not enabled.I'll look further to figure out why this bug is being triggered.
Meanwhile, a quick workaround before installing would be to edit the file profiles/openoutreach/openoutreach.info and add the following line:
dependencies[] = locale
That would make sure the Locale module is enabled.
Comment #5
nedjoThis was due to two stray calls to install_get_profile(), one in Open Outreach and one in Subprofiles see (#2444675: Call to install_profile_info() breaks non-English installs).
Both are now removed, fixing the issue.
Comment #6
nedjo