Is no one else having this issue? I’ve just given it another try and got all the errors listed above. There’s clearly something wrong with the setting up of Redis caching/local Redis caching.
To aid any attempts to fix this bug, here’s the docker-compose up
error I receive when trying to ee site create example.com --type=wp --cache
( no --with-local-redis
which if included creates a site but doesn’t enable local Redis caching so it white screens because of the PHP errors in my post above).
[02-12-2018 15:20:27] ee.DEBUG: -----------------------
[02-12-2018 15:20:27] ee.INFO: Starting site's services.
[02-12-2018 15:20:27] ee.DEBUG: -----------------------
[02-12-2018 15:20:27] ee.DEBUG: COMMAND: docker-compose up -d nginx postfix
[02-12-2018 15:20:28] ee.DEBUG: STDERR: Service "nginx" uses an undefined network "global-backend-network"
[02-12-2018 15:20:28] ee.DEBUG: RETURN CODE: 1
[02-12-2018 15:20:28] ee.DEBUG: -----------------------
[02-12-2018 15:20:28] ee.INFO: ======================== site cleanup start ========================
[02-12-2018 15:20:28] ee.WARNING: There was some error in docker-compose up.
[02-12-2018 15:20:28] ee.WARNING: Initiating clean-up.
The code - https://github.com/EasyEngine/site-type-wp/blob/develop/src/WordPress.php - that deals with caching setup…
$this->cache_type = \EE\Utils\get_flag_value( $assoc_args, 'cache' );
$this->site_data['site_ssl'] = \EE\Utils\get_flag_value( $assoc_args, 'ssl' );
$this->site_data['site_ssl_wildcard'] = \EE\Utils\get_flag_value( $assoc_args, 'wildcard' );
$this->site_data['php_version'] = \EE\Utils\get_flag_value( $assoc_args, 'php', 'latest' );
$this->site_data['app_admin_url'] = \EE\Utils\get_flag_value( $assoc_args, 'title', $this->site_data['site_url'] );
$this->site_data['app_admin_username'] = \EE\Utils\get_flag_value( $assoc_args, 'admin-user', \EE\Utils\random_name_generator() );
$this->site_data['app_admin_password'] = \EE\Utils\get_flag_value( $assoc_args, 'admin-pass', \EE\Utils\random_password() );
$this->site_data['db_name'] = \EE\Utils\get_flag_value( $assoc_args, 'dbname', str_replace( [ '.', '-' ], '_', $this->site_data['site_url'] ) );
$this->site_data['db_host'] = \EE\Utils\get_flag_value( $assoc_args, 'dbhost', GLOBAL_DB );
$this->site_data['db_port'] = '3306';
$this->site_data['db_user'] = \EE\Utils\get_flag_value( $assoc_args, 'dbuser', $this->create_site_db_user( $this->site_data['site_url'] ) );
$this->site_data['db_password'] = \EE\Utils\get_flag_value( $assoc_args, 'dbpass', \EE\Utils\random_password() );
$this->locale = \EE\Utils\get_flag_value( $assoc_args, 'locale', \EE::get_config( 'locale' ) );
$local_cache = \EE\Utils\get_flag_value( $assoc_args, 'with-local-redis' );
$this->site_data['cache_host'] = '';
if ( $this->cache_type ) {
$this->site_data['cache_host'] = $local_cache ? 'redis' : 'global-redis';
}
… seems okay.
Any help getting this fixed would be much appreciated - at the moment v4 is unusable for me.