Warnings shown in production (Trellis)

In some rare cases I noticed (no pun intended) that warnings are shown in production (Trellis).
How could this be enabled? environments/production.php contains the default configuration that should prevent the output of warnings and notices on production.

The dot env file and the env variable determines wich file to select. If warning are thrown in production site either the env env var is not production or the production.php is set to display errors.

You can find the env file in /srv/www/sitename/current/.env

If you don’t have your site in production mode you’ll also block crawlers (by default).

1 Like

Correct, there is a .env file for that site and it contains a line WP_ENV='production'.
There is also the config/environments/production.php with default config that shouldn’t result in warnings being printed.

This topic was automatically closed after 42 days. New replies are no longer allowed.