Multisite Setup and Deploy

I have a WordPress multisite setup that is currently working.

When I try to deploy to Kinsta, I receive the following error:

non-zero return code
PHP Fatal error:  Uncaught
Roots\WPConfig\Exceptions\ConstantAlreadyDefinedException: Aborted trying to
redefine constant 'MULTISITE'. `define('MULTISITE', ...)` has already been
occurred elsewhere. in
/www/****_805/public/releases/20201108144227/vendor/roots/wp-
config/src/Config.php:106
...

The multisite definitions are found in trellis>roles>deploy>files>tmp_multisite_constants.php

<?php
error_reporting(E_ALL & ~E_NOTICE);
define('MULTISITE', false);
define('SUBDOMAIN_INSTALL', false);
define('WPMU_PLUGIN_DIR', null);
define('WP_PLUGIN_DIR', null);
define('WP_USE_THEMES', false);

Why are these settings here and how do I deploy a multisite? Do I need to comment out this code?

Any help would be appreciated as I’m still stuck on this and can’t get multsite to work.

According to the docs here:

I need to set up my config and multisite variables, which I did. It then says after provisioning your remote server, you need to ssh in and install wordpress. This workflow confuses me, but I can’t even get to that stage because upon trying. to provision the server/deploy I get the above errors, so I can’t provision my server.

What needs to be done in order for me to deploy a multisite install?

This may be useful: https://github.com/roots/trellis/issues/1025#issuecomment-579132975

1 Like

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