WordPress / meta-environment

A collection of scripts that provision the official WordPress.org websites into a Varying Vagrant Vagrants installation.
190 stars 69 forks source link

PHP error when starting meta-environment #168

Open psmits1567 opened 3 years ago

psmits1567 commented 3 years ago

After starting the meta-environment I noticed an error about a missing table This might be the root cause of the other errors regarding $locale->english_name

[25-Oct-2021 10:10:28 UTC] WordPress database error Table 'wordpressorg_dev.wporg_locales' doesn't exist for query SELECT locale FROM wporg_locales made by require('wp-blog-header.php'), require_once('wp-load.php'), require_once('/srv/www/wordpress-meta-environment/meta-repository/wordpress.org/public_html/wp-config.php'), require_once('wp-settings.php'), do_action('plugins_loaded'), WP_Hook->do_action, WP_Hook->apply_filters, WordPressdotorg\LocaleDetection\init, WordPressdotorg\LocaleDetection\Detector->__construct, WordPressdotorg\LocaleDetection\Detector->get_active_locales [25-Oct-2021 10:10:28 UTC] WordPress database error Unknown column 'locale' in 'field list' for query SELECT locale, all AS all_count, waiting AS waiting_count, current AS current_count, fuzzy AS fuzzy_count FROM translate_project_translation_status WHERE project_id = 2 AND locale_slug = 'default' made by require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), do_action('template_redirect'), WP_Hook->do_action, WP_Hook->apply_filters, gp_run_route, GP_Router->route, WordPressdotorg\GlotPress\Routes\Routes\Index->get_locales, WordPressdotorg\GlotPress\Routes\Plugin::get_translation_status [25-Oct-2021 10:10:28 UTC] PHP Notice: Trying to get property 'slug' of non-object in /srv/www/wordpress-meta-environment/meta-repository/wordpress.org/public_html/wp-content/plugins/wporg-gp-customizations/templates/index-locales.php on line 43

psmits1567 commented 3 years ago

After creating the table with missing fields there is another php error in the next table

[25-Oct-2021 10:59:35 UTC] WordPress database error Unknown column 'locale' in 'field list' for query SELECT locale, all AS all_count, waiting AS waiting_count, current AS current_count, fuzzy AS fuzzy_count FROM translate_project_translation_status WHERE project_id = 2 AND locale_slug = 'default' made by require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), do_action('template_redirect'), WP_Hook->do_action, WP_Hook->apply_filters, gp_run_route, GP_Router->route, WordPressdotorg\GlotPress\Routes\Routes\Index->get_locales, WordPressdotorg\GlotPress\Routes\Plugin::get_translation_status