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

After installng the meta environment and starting translate.wordpressorg.test there are several php errors #164

Open psmits1567 opened 3 years ago

psmits1567 commented 3 years ago

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

psmits1567 commented 3 years ago

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!

psmits1567 commented 3 years ago

The above comment about "english_name" is incorrect. Looking into the code it is a public var that seems not to be populated conditionally.