humanmade / Cavalcade

A better wp-cron. Horizontally scalable, works perfectly with multisite.
https://engineering.hmn.md/projects/cavalcade/
Other
515 stars 46 forks source link

Possible error during installation #73

Closed andyzito closed 4 years ago

andyzito commented 5 years ago

When attempting to install WP on my wp-local-docker environment, I get the following error:

WordPress database error Table 'wordpress.wp_options' doesn't exist for query INSERT INTO `wp_options` (`option_name`, `option_value`, `autoload`) VALUES ('cavalcade_db_version', '2', 'no') ON DUPLICATE KEY UPDATE `option_name` = VALUES(`option_name`), `option_value` = VALUES(`option_value`), `autoload` = VALUES(`autoload`) made by include('phar:///usr/local/bin/wp/php/boot-phar.php'), include('phar:///usr/local/bin/wp/php/wp-cli.php'), WP_CLI\bootstrap, WP_CLI\Bootstrap\LaunchRunner->process, WP_CLI\Runner->start, WP_CLI\Runner->load_wordpress, require('wp-settings.php'), do_action('plugins_loaded'), WP_Hook->do_action, WP_Hook->apply_filters, HM\Cavalcade\Plugin\bootstrap, HM\Cavalcade\Plugin\create_tables, update_site_option, update_network_option, add_network_option, add_option

The problem appears to be line 98 in inc/bootstrap.php, within the create_tables function: update_site_option( 'cavalcade_db_version', DATABASE_VERSION );

The error is being caused by exactly what it says on the tin -- the wp_options table is not in existence at the time that this function call is made. It's possible that this is something wrong with my docker environment, but I note that no other plugins cause issues.

System details: