Skip to content

Stream does not check database tables exist #1284

Closed
@tomjn

Description

@tomjn

Bug Report

Stream only creates database tables on plugin activation, then never checks they exist.

Expected Behavior

Use Stream in an environment here plugin activation occurs.

Stream sees that the tables don't exist and creates them.

Actual Behavior

Stream does not create the tables because you did not load the plugin by activating it.

Additionally, the reset database tables link in settings does not create the tables if they do not exist

Steps to Reproduce the Problem

  1. Install Stream using a method that does not involve plugin activation. E.g. as an MU Plugin
  2. Try to use it
  3. Be constantly told that the database tables do not exist

System Information

  • Stream plugin version:
  • WordPress version: 5.8
  • PHP version: 7.4
  • Browser: Chrome
  • Computer operating system: Linux

If making it auto-check isn't possible, providing a way to create the tables would also be great. Right now this is extremely frustrating and regularly causes problems with local environments on multiple projects.

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