Skip to content
This repository was archived by the owner on Sep 26, 2022. It is now read-only.
This repository was archived by the owner on Sep 26, 2022. It is now read-only.

VIP Support user creation fails with errors under wp core install #87

Open
@makkaq

Description

@makkaq

Line 67 of vip-support/class-vip-support-role.php generates a stream of WordPress database error Table 'wordpress.wp_options' doesn't exist for query INSERT INTO 'wp_options' ... errors when you run wp core install (see wp-core-install.log for the full list of errors).

add_action( 'init', array( $this, 'action_init' ) );

Line 67 calls action_init, which simply calls self::add_role(); to create the VIP support user. I assume the problem is a race condition and that the init hook is being fired before the database tables have been created.

Steps to reproduce

I am using Chris Zarate's Docker-based VIP Go development environment - https://github.com/chriszarate/docker-wordpress-vip-go. The setup process:

  1. Downloads Docker images for Wordpress and MariaDB
  2. Clones the VIP plugins from https://github.com/Automattic/vip-go-mu-plugins into wp-content/mu-plugins.
  3. Runs wp core install --title="Project" --admin_user="wordpress" --admin_password="wordpress" --admin_email="[email protected]" --url="http://project.test" ---skip-email

If I run the setup unchanged I get 41 database errors on running wp core install. If I comment out line 67 of vip-support/class-vip-support-role.php then I get no database errors.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions