On a fresh multisite environment with the latest Trellis / Bedrock, I receive an error when provisioning with Vagrant. The error output at TASK [wordpress-install : Setup Permalink Structure]:
"stderr": "WordPress database error Table 'mysite_dev_development.wp_blogs' doesn't exist for query SELECT * FROM wp_blogs WHERE domain = 'mysite.dev' AND path = '/' made by include('phar:///usr/bin/wp/php/boot-phar.php'), include('phar:///usr/bin/wp/php/wp-cli.php'), WP_CLI\\Runner->start, WP_CLI\\Runner->load_wordpress, require('phar:///usr/bin/wp/php/wp-settings-cli.php'), require('wp-includes/ms-settings.php'), get_site_by_path\nError: Site mysite.dev/ not found.", "stdout": "", "stdout_lines": [], "warnings": []}
Thanks for looking into this. I’ve manually changed the command in my finalize-after.yml file as per your PR. However on a fresh vagrant up I still receive the same error.
@richardwilis oh sorry looking at it more closely you have the same error but in a different place. The error I fixed was during deploys, not the wordpress-install role. I’ll add the fix there as well.
Did anyone manage to resolve this error with a multisite installation using subdirectories? I have been rocking my head over this past 24 hours without any success.