meta-environment
meta-environment copied to clipboard
After installng the meta environment and starting translate.wordpressorg.test there are several php errors
It has probably something to do with an empty database, as there are not projects loaden Notice: Trying to get property 'english_name' of non-object in /srv/www/wordpress-meta-environment/meta-repository/wordpress.org/public_html/wp-content/plugins/wporg-gp-routes/inc/routes/class-index.php on line 36
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
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 33
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 34
Notice: Trying to get property 'native_name' 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 34
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 35
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 41
Notice: Trying to get property 'wp_locale' 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
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 50
Looking at what is installed in myPhpAdmin, there is no field "English_name" in the table translate_translation_sets
currently installed!!
After changing this to "name" in the code these errors are gone!
The above comment about "english_name" is incorrect. Looking into the code it is a public var that seems not to be populated conditionally.