Dev on local - vagrant - WP_MEMORY_LIMIT in wp-config.php

Hi All,

I am using trellis with basic setup (no modification).

Adding WP_MEMORY_LIMIT, WP_DEBUG, WP_DEBUG_DISPLAY, DISABLE_WP_CRON, etc or whatever constant I wanted is resulting in the following warning message. (or similar ones)
( ! ) Notice: Constant WP_MEMORY_LIMIT already defined in /srv/www/example.com/current/web/wp-config.php on line 13

Any documents that describes about how I can handle those kind of constants or env variables with yaml files or php files directly from site(bedrock) folder?

Thanks in advance

It looks like you’ve modified your Bedrock installation, though.

You should never modify web/wp-config.php, it should look like this: https://github.com/roots/bedrock/blob/ef090b63ca0b772390a1db03cc7c118af20e8733/web/wp-config.php

To answer your questions: https://roots.io/bedrock/docs/configuration-files/

1 Like

There’s some existing threads on this you can search too: